Results 1 to 10 of 10
  1. #1
    Heracles Choe is offline Member
    Join Date
    Apr 2008
    Posts
    2
    Rep Power
    0

    Angry Java Application Interface similar with Windows Themes

    Hi
    I'm a beginer to develop application using Java.
    But I have some problem using Java.
    The dialogs and menu bar and so on is not similar with Windows XP/VISTA.
    What i say is that the application which is made by Java differs from Windows Application.
    I wanna solve this problem.
    Is this available?
    Help me
    Last edited by Heracles Choe; 04-07-2008 at 10:51 AM.

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default

    First of all, welcome to our community. :)

    Actually what you have say is not correct. If you the javax.swing package, all the component looks similar to the operating systems themas.

    Can you post a code you have workout.

  3. #3
    Heracles Choe is offline Member
    Join Date
    Apr 2008
    Posts
    2
    Rep Power
    0

    Default AWT/Swing

    The Java source what i work is made by using AWT.
    but the app ui is not so good.
    so What i want is changing themes of Apps which is based on AWT not swing.
    Is this available?

  4. #4
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default

    I don't think it is possible.

    Why don't you workout with Swing? Anything you have done using AWT, possible to do in Swing too.

  5. #5
    Zosden's Avatar
    Zosden is offline Senior Member
    Join Date
    Apr 2008
    Posts
    384
    Rep Power
    7

    Default

    look up ui look and feel and try that you can change the look and feel of your component to look like windows.
    My IP address is 127.0.0.1

  6. #6
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default

    Quote Originally Posted by Zosden View Post
    look up ui look and feel and try that you can change the look and feel of your component to look like windows.
    You mean is there a way to make looks like Windows of AWT?

  7. #7
    Zosden's Avatar
    Zosden is offline Senior Member
    Join Date
    Apr 2008
    Posts
    384
    Rep Power
    7

    Default

    I'm not sure about awt but I know it works in swing, I don't really use awt that much.
    My IP address is 127.0.0.1

  8. #8
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default

    Yep, that's what I say in my first post. ;) Normally AWT used for Linux, UNIX systems. AWT interfaces much similar to those OS UI.

  9. #9
    lonelyShoes is offline Member
    Join Date
    May 2008
    Posts
    6
    Rep Power
    0

    Default

    To use the LAF used by the native OS:
    UIManager.setLookAndFeel(UIManager.getSystemLookAn dFeelClassName());

    Code from Sun's Swing Tutorial, look here for more detail.

    Yes, this is Swing only, not AWT. And as a user of both Windows and Linux systems: while AWT bore a passing resemblance to GTK a few years ago, GTK looks very different these days. Also, AWT doesn't have to be used on Unix/Linux, those systems will run Swing applications just fine. (I am a Swing developer, and use Ubuntu 8.04 :D)

  10. #10
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

Similar Threads

  1. how to run java app on windows in a cron like on unix
    By rockie12 in forum Advanced Java
    Replies: 7
    Last Post: 05-23-2008, 02:39 PM
  2. Replies: 0
    Last Post: 02-06-2008, 03:07 PM
  3. Check if Windows application is already open
    By mpiaser in forum Advanced Java
    Replies: 1
    Last Post: 12-07-2007, 10:56 PM
  4. First windows application
    By tha_crazy in forum New To Java
    Replies: 1
    Last Post: 08-13-2007, 04:22 PM
  5. Help with windows in java
    By lenny in forum AWT / Swing
    Replies: 1
    Last Post: 08-07-2007, 07:22 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
  •