java - Recursive tree GUI -


New to this site, therefore please forgive me in the way of my nose.

I am trying to make more buds on the GUI tree given to me.

I have been working so hard to get this right over the last three days, but every time I change something, it destroys the entire drawing !! code:

  public class recursive Tiarimpshn Jepianel (private Dratrtl T; private static final width = 400; private static final intensity height = 400; public recursive tree (eg ) {super.setPreferredSize (new dimension (width, height)); t = new Dratrtl (width, height), draw ();} void draw () {int s = 100; t.back (s); embedded sample ( S, 5);} Zero embedded sample (int size, int oter) {if (size> 0 & amp; amp; and iter> gt; 0) Iforn (size); t.right (45); embedded sample (size / 2, Aitr -1); t.left (90); embedded sample (size / 2, Aitr -1); t.right (45); embedded sample (size / 4, Aitr + 3); t.back (size);}} public void Pentgtk (graphics page) {super.paintComponent (page); Tkdraw (page);} public static void main (string [] Arges) {JFrame frame = new JFrame add ( "turtle"); Frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE); Jepinl turtle = new Punravartitry example ();. Frame.getContentPane () (turtle); frame.pack () ; Frame.setVisible (true); }}  


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -