aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Apple Look and Feel Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Apple Look and Feel" Watch "Apple Look and Feel" New topic
Author

Apple Look and Feel

Gokula krishnan
Greenhorn

Joined: Aug 05, 2005
Posts: 12
Hi,

I want to implement Apple Look and Feel in Windows Platform.

where cani get the Look and Feel Packages..?

let me know ur useful reply

regards,
Gokulakrishnan


Gokulakrishnan.M
Charu Singh
Greenhorn

Joined: Jun 10, 2005
Posts: 20
Hi

If you just need to check the component sizes as they would appear on MAC, you can use this http://examples.oreilly.com/jswing2/code/goodies/misc.html.
You use the MacMetrics like this: javax.swing.plaf.metal.MetalLookAndFeel.setCurrentTheme(new MacMetricsTheme());

Otherwise, you can also use an OS-Emulator like VMWare to check how your application looks on different Operating systems.

I hope this will help.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42927
    
  68
How is this question different from the one you posted yesterday ?
Gokula krishnan
Greenhorn

Joined: Aug 05, 2005
Posts: 12
Hi Charu,

Thanks for kind reply...

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..?


regrds,
Gokulakrishnan>m
Charu Singh
Greenhorn

Joined: Jun 10, 2005
Posts: 20
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.

http://java.sun.com/docs/books/tutorial/uiswing/misc/plaf.html#programmatic

All the best.
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15300
    
    6

Gokul

We don't have too many rules around here but we do have a Naming Policy. Please adjust your display name accordingly. You can do so by clicking here.

Thanks.


GenRocket - Experts at Building Test Data
Gokula krishnan
Greenhorn

Joined: Aug 05, 2005
Posts: 12
Hi Charu / all,

I worked by ur idea...

i didn't get... sorry to say this..

with this mail, i attached a scrren design what i want to develop by using Java in the Windows Platform...

what are the things i need to do..?

Click the below link to see the Screen Design... Screen Design is done in Photoshop

Photo Bucket

pls give ur suggestion...
Charu Singh
Greenhorn

Joined: Jun 10, 2005
Posts: 20
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.

For adding images you can use
void addImage(JPanel p, String url) throws MalformedURLException {
p.add(new JLabel(new ImageIcon(new URL(url))));
}
Gokula krishnan
Greenhorn

Joined: Aug 05, 2005
Posts: 12
Hi,

Thank u Charu...

I will try based up on ur idea...

i will get back u if i struk anywhere.....

thanks for ur kind reply..

charu... one doubt...

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 ]
Gokula krishnan
Greenhorn

Joined: Aug 05, 2005
Posts: 12
Hi all,

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
Charu Singh
Greenhorn

Joined: Jun 10, 2005
Posts: 20
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/
Gergo Csaki
Greenhorn

Joined: Sep 24, 2005
Posts: 13
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.
Ahmet Aksoy
Ranch Hand

Joined: Apr 04, 2005
Posts: 30
Hi,
There is a nice PLAF (Pluggable Look And Feel) installer at the following address:
http://www.moniundthomaskuenneth.de/tkplafutility/
You can install new LAF's to your system. (I tried for LiquidLookAndFeel on WinXP. It works OK. )
Ahmet Aksoy
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Apple Look and Feel