Results 1 to 4 of 4
  1. #1
    orestis125 is offline Member
    Join Date
    Jun 2012
    Posts
    13
    Rep Power
    0

    Default Java Windows GUI

    Hey everyone,

    I'm trying to make an application in java and for the GUI I'm using a JFrame. Everything works well, however the GUI doesn't look like the typical windows GUI. For example a menu bar using JMenuBar looks like this when a windows menu bar looks like this. How would I make it look like the second image?

    Same goes for the text boxes, buttons and so on.

    Thank you very much, I appreciate your help
    Orestis

  2. #2
    Lund01's Avatar
    Lund01 is offline Senior Member
    Join Date
    Sep 2010
    Location
    The Netherlands
    Posts
    149
    Rep Power
    0

    Default Re: Java Windows GUI

    Can you maybe post some of the code that makes the JFrame and the buttons / labels?

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,240
    Rep Power
    19

    Default Re: Java Windows GUI

    Go through this Lesson: Modifying the Look and Feel (The Java™ Tutorials > Creating a GUI With JFC/Swing)

    In future, AWT/Swing questions should be posted in the AWT/Swing section. I'm moving thiis thread there from New to Java.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,240
    Rep Power
    19

    Default Re: Java Windows GUI

    Also, please go through the Forum Rules -- particularly the third paragraph.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Replies: 13
    Last Post: 07-20-2012, 07:58 PM
  2. Java SDK on Windows 7
    By kbyrne in forum New To Java
    Replies: 5
    Last Post: 07-02-2011, 12:25 AM
  3. Windows java vs Windows AIX
    By sysp in forum New To Java
    Replies: 0
    Last Post: 01-26-2011, 05:32 AM
  4. Java + Windows 7
    By makeawish in forum New To Java
    Replies: 1
    Last Post: 12-30-2010, 07:53 PM
  5. java on windows 64
    By JoelOFH in forum New To Java
    Replies: 1
    Last Post: 01-27-2010, 06:27 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
  •