Mac Widgets for Java
September 8, 2008
I’ve just released Mac Widgets for Java version 0.9.0. The Source List component (pictured below) is the only component fully ready to use. You can download the library here and you’ll find the documentation here. Feedback and comments are welcome. More widgets are on the way!
![]()
![]()
Possibly related posts: (automatically generated)
September 8, 2008 at 12:30 pm
Very nice!
Thanks for taking the trouble to release this as a library.
I definitely have to try this sometime…
Uwe
September 8, 2008 at 12:34 pm
No problem Uwe! Be sure to let me know how the library works for you.
-Ken
September 8, 2008 at 3:25 pm
Dude, this is fantastic. Nice work. I think I might have to try this out…
September 8, 2008 at 4:07 pm
this is totally awesome. keep it up
obinna
(Nigeria)
September 8, 2008 at 4:53 pm
[...] finally, Ken Orr has announced the Mac Widgets for Java project. The goal of this project is to provide a collection of widgets [...]
September 8, 2008 at 10:25 pm
Looks great. Now I’m trying to think of excuses to introduce this element into an application. :)
September 8, 2008 at 11:46 pm
Looking forward to more components. Do you plan to make the sources available on google code?
September 8, 2008 at 11:47 pm
Hi Robert,
The code will be available at the Google Code project sometime this week. I’ll post a comment here when its up.
-Ken
September 9, 2008 at 10:22 pm
Very nice.
September 10, 2008 at 5:39 am
hey boss, i appreciate your asking for clarification about my earlier post..
i’m glad that you’re utilizing apple’s hig and that you’re sharing those best practices.. based on the posts, it looks as though many of those benefiting the most are the ones that unlike you and i, code outside of the cocoa world.
everyone benefits whenever there is a contribution to the community, especially with a license as permissive as the lgpl..
the issue i have with your project is the use and inclusion of non-free apple assets.. the hig is a set of guidelines designed to maintain a consistent experience within the cocoa environment; it isnt a free pass to use their graphics _outside_ of cocoa.
when say, i code an application using cocoa ui widgets and elements, i’m actually only using references to libraries already installed in os x (*.rsrc) – i am not repacking them when they are distributed.. if you are going to release a project like this under the lgpl, you’ve got to use your own assets (or say, swing’s) if it leaves cocoa.. you know how apple is about their look and feel being used outside of the mac os.
thats my only issue – the graphics are not yours to redistribute. and no, i’m not going any further (ie google, apple) with this than this blog lol..
but anyways, i like what you’re doing and have subscribed to your blog – the world needs more ui evangelists.
/sorry for the lateness
September 10, 2008 at 5:42 am
oh yeah.. about my last sentence above.. umm.. yeah.. you need a rss button (or i need a better monitor).. i cant find it lol
September 10, 2008 at 10:51 am
Hi Lowell,
I’m not sure if you’ve misunderstood my project – it only uses Java Graphics 2D and component customization (no native libraries are involved). My target audience is Java Mac developers. The fact that my API works on other platforms is a happy coincidence.
I certainly don’t think there any legal issues with making an app look “Mac-like” on a non-mac platform. Apple has in fact done this itself with the release of iTunes and Safari for Windows. Thus, it would seem to me to be a non-issue.
Thanks for the thoughtful commentary.
-Ken
September 16, 2008 at 7:03 am
Hi Ken,
very nice work!! I must say that I am a bit jealous because such a project is on my own start-a-project whishlist for months and I didn’t find the time…
Keep up the good work! What are the next widges to come?
Christian
September 16, 2008 at 12:25 pm
Thanks Christian! Here’s what widgets are currently planned:
* Heads Up Display (HUD)
* iTunes style table
* Preferences window
Let me know if there are other widgets you’d like to see.
-Ken
May 27, 2009 at 6:10 pm
I just heard about the Mac HUD et al. But the issue is that I have been unable to use everything especially the unconvential component like the SourceList, UnifiedBar in my regular J2SE programmes.
Can you forward a sample program source code in which “these unconvential components” are used and added to a Container?
May 27, 2009 at 6:21 pm
Hi Lawal,
You’ll find example usages here:
http://code.google.com/p/macwidgets/wiki/Examples
Let know if you have further questions.
-Ken
May 28, 2009 at 7:24 pm
The examples are for the creation not for adding the conventional containers like JPanel.
I worked with the creation but I need to add it to a container to see it fully work.
Kindly send me snippets of code where they are added to a container, by “they” I mean SourceList, TriAreaComponent etc.
As a Nigerian, I really appreciate this kind gesture.
May 28, 2009 at 10:15 pm
Hi Lawal,
Use the getComponent methods like this:
SourceListModel model = new SourceListModel();
SourceList sourceList = new SourceList(model);
JPanel myPanel = new JPanel(new BorderLayout());
myPanel.add(sourceList.getComponent(), BorderLayout.CENTER);
-Ken