Results 1 to 12 of 12
Like Tree7Likes
  • 1 Post By gimbal2
  • 3 Post By gimbal2
  • 1 Post By gimbal2
  • 1 Post By gimbal2
  • 1 Post By gimbal2

Thread: JFrame

  1. #1
    tedy_pro is offline Member
    Join Date
    Jun 2014
    Posts
    11
    Rep Power
    0

    Default JFrame

    Hi all.
    I want to use java swing, what should I do to install library and how to install this library?

  2. #2
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,016
    Rep Power
    6

    Default Re: JFrame

    Nothing. Its part of the core JDK.
    tedy_pro likes this.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  3. #3
    tedy_pro is offline Member
    Join Date
    Jun 2014
    Posts
    11
    Rep Power
    0

    Default Re: JFrame

    Thank you for you reply. what is meaning this error
    JFrame-1.jpg

  4. #4
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,016
    Rep Power
    6

    Default Re: JFrame

    Basically that you need to get a good book on Java and learn it. The constructor needs to have the same name as the class, and yours really does not.
    SurfMan, Tolls and tedy_pro like this.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  5. #5
    tedy_pro is offline Member
    Join Date
    Jun 2014
    Posts
    11
    Rep Power
    0

    Default Re: JFrame

    dear gimbal2

    i'm following java programing book. this example in book. when about 3 weeks ago i write this example code it is worked well.
    now what is problem here

    JFrame-2.jpg

  6. #6
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,016
    Rep Power
    6

    Default Re: JFrame

    I already told you what's wrong. I suggest you re-read everything since three weeks ago because apparently you forgot it all.
    tedy_pro likes this.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  7. #7
    tedy_pro is offline Member
    Join Date
    Jun 2014
    Posts
    11
    Rep Power
    0

    Default Re: JFrame

    dear gimbal2

    Sorry example is here.

    JFrame-3.jpg

  8. #8
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,016
    Rep Power
    6

    Default Re: JFrame

    Yes, that import statement is wrong; Eclipse is not lying to you so stop ignoring its helpful information. It is very simple to figure out what is the correct package.

    Google: java JFrame
    First hit: JFrame (Java Platform SE 7 )

    At the very top you see that the package is actually 'javax.swing'.

    Since you're using Eclipse, you can simply hit CTRL+SHIFT+O and Eclipse will fix the imports for you.
    tedy_pro likes this.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  9. #9
    tedy_pro is offline Member
    Join Date
    Jun 2014
    Posts
    11
    Rep Power
    0

    Default Re: JFrame

    Dear gimbal2

    Thank you very much. it is worked well. but still error in JFrame how to solve this error.

    JFrame-4.jpg

  10. #10
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,016
    Rep Power
    6

    Default Re: JFrame

    I can't know if you don't show the error you get.
    tedy_pro likes this.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  11. #11
    tedy_pro is offline Member
    Join Date
    Jun 2014
    Posts
    11
    Rep Power
    0

    Default Re: JFrame

    Dear gimbal2

    it's not error message in here. Thank you very much :-)

  12. #12
    tedy_pro is offline Member
    Join Date
    Jun 2014
    Posts
    11
    Rep Power
    0

    Default Re: JFrame

    Dear gimbal2

    now no more error here:-) thank you


    JFrame-5.jpg

Similar Threads

  1. Click in JFrame Titlebar sets the JFrame Opaque
    By tim8w in forum AWT / Swing
    Replies: 1
    Last Post: 02-02-2013, 07:29 AM
  2. Transferring information from one JFrame to Another JFrame
    By cherylminor85 in forum AWT / Swing
    Replies: 4
    Last Post: 05-24-2012, 05:24 AM
  3. Replies: 3
    Last Post: 11-27-2011, 05:18 AM
  4. Replies: 5
    Last Post: 06-14-2010, 06:10 PM
  5. Replies: 4
    Last Post: 04-22-2009, 11:02 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
  •