Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Need a java program with GUI. Please Help me out

  1. #1
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: Need a java program with GUI. Please Help me out

    Don't post duplicate topics. It doesn't help. We won't do the work for you.


  2. #2
    Member GoodbyeWorld's Avatar
    Join Date
    Jul 2012
    Location
    Hidden command post deep within the bowels of a hidden bunker somewhere under a nondescrip building
    Posts
    161
    My Mood
    Stressed
    Thanks
    14
    Thanked 25 Times in 25 Posts

    Default Re: Need a java program with GUI. Please Help me out

     
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JLabel;
     
    public class YourGUI extends JFrame
    {
     
    public YourGUI()
    {
    super("GUI");
     
     
    JPanel jp = new JPanel();
     
    setContentPane(jp);
     
    jp.add(new JLabel("I'm not doing your assignment for you!"));
     
    setDefaultCloseOperation(EXIT_ON_CLOSE);
     
     
    }
     
     
     
     
    }


    On a more serious note, please be more specific and show us what you have tried and what type of GUI you might need.

Similar Threads

  1. Need a java program with GUI
    By venu4frds in forum What's Wrong With My Code?
    Replies: 2
    Last Post: October 18th, 2013, 11:50 PM
  2. Need a java program with GUI
    By venu4frds in forum What's Wrong With My Code?
    Replies: 1
    Last Post: October 18th, 2013, 11:50 PM
  3. Replies: 2
    Last Post: January 18th, 2013, 11:12 AM
  4. Java GUi program Execution
    By Rajan in forum AWT / Java Swing
    Replies: 2
    Last Post: April 19th, 2010, 08:48 PM
  5. How do you add GUI to this java program?
    By leyla in forum AWT / Java Swing
    Replies: 1
    Last Post: October 18th, 2009, 01:32 PM