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 6 of 6

Thread: Problems with JFrame

  1. #1
    Junior Member
    Join Date
    Sep 2013
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Problems with JFrame

    Hello!

    I want to create a program which has three buttons : DrawRectangle, DrawOval and Clear. When click DrawRectangle it draws a rectangle in a textfield. When click clear everything to be cleared. Please help i cannot start at all.


  2. #2
    Super Moderator jps's Avatar
    Join Date
    Jul 2012
    Posts
    2,642
    My Mood
    Daring
    Thanks
    90
    Thanked 262 Times in 231 Posts

    Default Re: Problems with JFrame

    Take it one step at a time.
    Start out getting a JFrame to show up on the screen at a decent size.
    Then perhaps get a canvas in the main display and some buttons off one of the edges. BorderLayout provides this functionality, which happens to be the default for JFrame.
    Continue on with adding functionality to the buttons one at a time.

  3. #3
    Junior Member
    Join Date
    Sep 2013
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Problems with JFrame

    I have problems with functionality of the buttons please write the whole code!

  4. #4
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    3,402
    My Mood
    Mellow
    Thanks
    83
    Thanked 472 Times in 463 Posts

    Default Re: Problems with JFrame

    Newbie_in_manners, too.

  5. #5
    Super Moderator jps's Avatar
    Join Date
    Jul 2012
    Posts
    2,642
    My Mood
    Daring
    Thanks
    90
    Thanked 262 Times in 231 Posts

    Default Re: Problems with JFrame

    Quote Originally Posted by newbie_in_java View Post
    ... please write the whole code!
    Please read The problem with spoonfeeding

  6. #6
    Member
    Join Date
    May 2011
    Location
    west palm beach, FL
    Posts
    189
    My Mood
    Tired
    Thanks
    41
    Thanked 11 Times in 10 Posts

    Default Re: Problems with JFrame

    lol jps gives you the info you needed to help yourself and you yell to make the code for you...you are asking for free help sorry not help cause that is what jps provided you are yelling for someone to do it for you...good luck with that

Similar Threads

  1. problem with my JFrame; JFrame not closing and stay in background
    By golominator in forum What's Wrong With My Code?
    Replies: 1
    Last Post: November 6th, 2012, 07:20 AM
  2. Comparing two coinflips, in JFrame, lots of problems need advice!!!
    By mindfcked in forum What's Wrong With My Code?
    Replies: 4
    Last Post: October 20th, 2012, 07:43 PM
  3. using objects from one jFrame on a different jFrame
    By Taskeen in forum AWT / Java Swing
    Replies: 3
    Last Post: September 14th, 2011, 08:51 AM
  4. connecting jframe to another jframe
    By ajtambalo in forum Member Introductions
    Replies: 2
    Last Post: May 11th, 2011, 11:24 AM
  5. Problems with focussing JFrame
    By ozymann in forum AWT / Java Swing
    Replies: 3
    Last Post: June 30th, 2010, 12:40 PM