• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Apple Look and Feel

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How is this question different from the one you posted yesterday ?
 
Gokula krishnan
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Gokula krishnan
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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/
 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic