Results 1 to 2 of 2
  1. #1
    stuckonjava is offline Senior Member
    Join Date
    Jan 2012
    Rep Power

    Default GUI Structure question

    Ok so I've become really confused recently in the structure of making a GUI.

    Some programs that I have seen make them solely in the main method where the class doesn't extend JFrame.

    Others are declared outside of the main method and in the class constructor and these extend JFrame.

    Could someone please explain to me the differences and why when they are made in the main method, does the class not need to extend JFrame?


  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Blog Entries
    Rep Power

    Default Re: GUI Structure question

    Didn't we already go through with this in this thread? I asked you to show me code that confuses you but you never replied. Let's not start a separate thread when you already have an active link on the subject as it's not fair to the volunteers here to unnecessarily split a discussion. Locking this thread.

Similar Threads

  1. classes structure
    By stuckonjava in forum New To Java
    Replies: 4
    Last Post: 03-17-2012, 01:07 PM
  2. Tree Structure
    By chiku in forum New To Java
    Replies: 2
    Last Post: 01-27-2011, 08:31 PM
  3. Control Structure Question
    By ibanez270dx in forum New To Java
    Replies: 1
    Last Post: 11-12-2007, 10:10 PM
  4. Use if then else structure, help
    By paul in forum New To Java
    Replies: 1
    Last Post: 08-07-2007, 05:00 AM
  5. Help with Structure
    By Albert in forum New To Java
    Replies: 1
    Last Post: 07-13-2007, 03:27 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