Results 1 to 4 of 4
  1. #1
    bartolay13's Avatar
    bartolay13 is offline Member
    Join Date
    May 2010
    Rep Power

    Default General Logic in Swing

    Hi there,

    i am hard coding a swing gui, Jframe, mainmenu, toolbar, etc...
    my question is whats the logic when navigating through the menus?

    example i call a menu on my mainmenu, how can i change the contents below, im asking for the proper structure and advice on how to do it properly, i might be doing it the wrong way.. Thank you.

  2. #2
    Webuser is offline Senior Member
    Join Date
    Dec 2008
    Rep Power


    quite strange question but anyway...

    you should write JMenu (JFrame) and the functional methods separate.

    your menu should just ref for methods it need to activate. It is one way...
    You can also write all things together but it is a porrige way and makes debugging as a real headache =)
    moreover docs gen is better in sep way ;)
    So first plan your structure and then fill it with your code =)
    If my answer helped you. Please click my "REP" button and add a comment
    Have a Good Java Coding :)

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Madgaon, Goa, India
    Rep Power


    Read the API for JMenu and follow the links to the relevant Swing tutorials from there.


  4. #4
    j2me64's Avatar
    j2me64 is offline Senior Member
    Join Date
    Sep 2009
    Zurich, Switzerland
    Rep Power

Similar Threads

  1. General Question about Java
    By bayan in forum New To Java
    Replies: 6
    Last Post: 05-26-2010, 11:16 AM
  2. general advice needed
    By mac in forum New To Java
    Replies: 1
    Last Post: 03-18-2010, 04:25 PM
  3. making a general tree
    By sAntA199 in forum New To Java
    Replies: 23
    Last Post: 12-04-2009, 11:10 AM
  4. General Discussion on Abstract
    By sanjeevtarar in forum Advanced Java
    Replies: 15
    Last Post: 05-06-2008, 06:16 AM
  5. How to set General options in NetBeans IDE
    By JavaForums in forum NetBeans
    Replies: 0
    Last Post: 08-02-2007, 12:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts