File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -49,6 +49,8 @@ class Menu extends JFrame
4949 JButton subCenterX ;
5050 JButton addCenterY ;
5151 JButton subCenterY ;
52+ JSlider complexDetail ;
53+ JSlider mandelbrotDetail ;
5254 double lastTime ;
5355 public Menu (Panel panelInit )
5456 {
@@ -149,6 +151,13 @@ public void actionPerformed(ActionEvent e) {
149151 panel .maxCoordY -= 0.1 ;
150152 }
151153 });
154+ complexDetail = new JSlider (1 , 50 , 20 );
155+ complexDetail .setInverted (true );
156+ this .add (new JTextField ("Complex equation detail:" ));
157+ this .add (complexDetail );
158+ mandelbrotDetail = new JSlider (10 , 10000 , 100 );
159+ this .add (new JTextField ("Mandelbrot set detail:" ));
160+ this .add (mandelbrotDetail );
152161 /*addZoom = new JButton("+");
153162 subZoom = new JButton("-");
154163 addZoom.addActionListener(new ActionListener() {
@@ -278,4 +287,4 @@ public Paint getPaint(double value) {
278287 float scaledH = H1 + scaledValue * (H2 - H1);
279288 return Color.getHSBColor(scaledH, 1f, 1f);
280289 }*/
281- }
290+ }
You can’t perform that action at this time.
0 commit comments