Results 1 to 4 of 4
  1. #1
    matpj is offline Member
    Join Date
    Sep 2008
    Posts
    42
    Rep Power
    0

    Default Creating a GUI - which method

    Hi,

    I need to create a GUI for users to kick off my java program.
    In my training course we covered AWT and SWING which seem to have classes extending Applet and JApplet respectively.

    On my travels through 'Java for Dummies' and other publications I have seen reference to JFrame.

    Can anyone tell me which, in your opinion, is the best tool to use?
    or what is the preferred way of acheiving what I am looking to do?

    I need it to include a drop down list or two, a file browser and a button!!

    thanks,
    Matt

  2. #2
    angryboy's Avatar
    angryboy is offline Senior Member
    Join Date
    Jan 2009
    Posts
    742
    Rep Power
    6

    Default

    Swing is the best tool to use. but what are you trying to achieve? Are you programming for cell, or desktop, or web, etc...?

  3. #3
    matpj is offline Member
    Join Date
    Sep 2008
    Posts
    42
    Rep Power
    0

    Default

    I'm programming for a desktop. It will be run by several users, each one opening an application on their desktop.

    with Swing, do I just extend JApplet to do what i'm doing? or is JFrame part of Swing (and if so, what is the difference between JApplet and JFrame)?

  4. #4
    angryboy's Avatar
    angryboy is offline Senior Member
    Join Date
    Jan 2009
    Posts
    742
    Rep Power
    6

    Default

    JFrame is for win application. JApplet is for web application. From what you said, its best to use JFrame.

Similar Threads

  1. Replies: 2
    Last Post: 03-26-2010, 05:12 PM
  2. Creating a New Method for Square Root Loop
    By SapphireSpark in forum New To Java
    Replies: 14
    Last Post: 02-25-2009, 01:21 PM
  3. Replies: 29
    Last Post: 09-25-2008, 07:55 PM
  4. Creating a new equals() method help
    By Dave0703 in forum New To Java
    Replies: 2
    Last Post: 09-21-2008, 05:32 PM
  5. cannot call private method from static method
    By jon80 in forum New To Java
    Replies: 3
    Last Post: 05-07-2008, 08:37 AM

Posting Permissions

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