i tried... but it doesn't work... pls give a sample code to implement the MacMetricsTheme...
To implement this in the Windows platform, in which folder can i put the file ..?
pls reply me with necessary info...
i don't know how to apply a external theme in the Program..?
Joined: Jun 10, 2005
Just place this jar file in the lib folder(if you have one, or any other folder)and set the classpath so that this jar file is in your project classpath. After that you can use the method that I just posted. This link will help you to understand how to set different L&F.
Hi Gokul, I don't think there's any way to view the screen on a PC exactly the way it would appear on a Mac.MacMetrics is a "theme that includes components sized to match their counterparts in the Mac look-and-feel. While this theme does not create applications that look like Mac applications, it gives developers a clean and easy method for verifying their graphical layouts will display properly on Mac systems that use the native LnF rather than Metal." For the screen you need to use mainly a JTabbedPane and a JToolBar.
where to get com.sun.java.swing.plaf.mac.MacLookAndFeel and com.sun.java.swing.plaf.gtk.GTKLookAndFeel ??? [ September 18, 2005: Message edited by: Gokula krishnan ]
Joined: Aug 05, 2005
is it possible to change the default properties of the Windows Frmaes...
for example, can i change the default minimize, maximize and close buttons..... and is it also change the status look... can i add a control ( Combo Box ) in the Status bar...
if u reply ,,, it may very helpful to me
Joined: Jun 10, 2005
The MacLookAndFeel no longer exists in J2SE.The com.sun.java.swing.plaf.mac package is distributed only in the Macintosh download of JFC and the Mac OS Runtime for Java, also known as MRJ. The GTK L&F can be downloaded from http://gtkswing.sourceforge.net/
For a Mac-like lnf take a look at liquid lnf homepage.
As far as I know modifying the window decorations from java is not possible. (Just a guess, pls correct if I'm wrong...) If it is really important, You can use decorationless frames (ask Your JFrame to hide them) and emulate the buttons and borders in java - but I doubt anyone really would need this.