This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

iTunes like interface with Swing?  RSS feed

 
b newton
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to make an modern mac os x interface with Swing on Mac OS X? (like Mail or iTunes).
If there any docs or books on this topic that one could point me to would be greatly appreciated.
 
Kaydell Leavitt
Ranch Hand
Posts: 690
Eclipse IDE Firefox Browser Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
iTunes was actually developed using WebObjects which has a relationship with Java:

wikipedia.org on WebObjects

Kaydell
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Kaydell Leavitt:
iTunes was actually developed using WebObjects which has a relationship with Java:


This sounds odd, since WebObjects is a server-side framework. I believe the iTunes Store is done with WebObjects, though.

The MacOsxFaq points to Greg Guerins software, who has Java adapters for several OS X core libraries (e.g. drawers). Using those would definitely give the app an OS X touch.

Apples Java also has partial support for a brushed metal look-and-feel.
[ June 13, 2007: Message edited by: Ulf Dittmer ]
 
Kaydell Leavitt
Ranch Hand
Posts: 690
Eclipse IDE Firefox Browser Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
...WebObjects is a server-side framework.

Thanks for correcting me Ulf.

Here is something that should be useful.

When you install Apple's developer tools on your hard drive, there will be some Java sample code for developing desktop applications: For example, see SwingSet2:

/Developer/Examples/Java/JFC/

Apple also provides a default "look-and-feel" as Aqua for their implementation of Java SE.

Apple also provides a simple Mac OS X Swing application template. Even if you don't plan to use XCode, you can open XCode, choose "New Project...", and choose the "Swing Application" project and see Apple's idea of a simple Swing app.

Apple provides the following interface and classes that are useful to make a Mac applicatioin be more "Mac-like":

import com.apple.eawt.Application;
import com.apple.eawt.ApplicationEvent;
import com.apple.eawt.ApplicationListener;

The above imports can be used to receive 7 standard Apple Events and to provide an about box, and a Preferences menu-item in the Mac OS X application menu as Mac users would expect them to be.

Kaydell
[ June 19, 2007: Message edited by: Kaydell Leavitt ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!