Re: Menu problem with launchd Java program
Re: Menu problem with launchd Java program
- Subject: Re: Menu problem with launchd Java program
- From: Patrick Malka <email@hidden>
- Date: Thu, 14 Jan 2010 14:53:35 -0500
I will try that when I have some 'free time' ;)
A sort of related question.
If I have a TableModel attached to a JTable for example. Do changes to the TableModel instance (a call to setValueAt() for example) need to be performed in the event dispatch thread as well or can I update the model and hope that the notification sub system will ensure the JTable is updated in the event dispatch thread? I can't seem to find documentation on this anywhere.
As a listener, do all events for all listeners happen on the event dispatch thread? For example tableChanged, in the TableModelListener interface.
On Tue, Jan 12, 2010 at 5:22 PM, Greg Guerin
<email@hidden> wrote:
Patrick Malka wrote:
I have a Java application that is launched by Launch Services using a Launch Agent plist, with the following "ProgramArguments":
0 "java"
1 "-Xdock:icon=..."
2 "-jar"
3 "path\to\myJar.jar"
Launching a GUI app as a command-line seems like a bad idea to me.
Put your app in a valid app-bundle, with a valid Info.plist, and see if it works better.
If you do this, you can launch it with a LaunchAgent plist that contains:
1 /usr/bin/open
2 -b
3 your.app-bundle-identifier.Here
In fact, I have done exactly this, but as a timed launch of a Java app, and it works fine. I suspect the weirdness you're seeing has more to do with the command-line nature of the launch. However, I could be wrong, so if it malfunctions as a bundled app, then please repost.
BTW, I hope you don't really have "path\to\myJar.jar" in the launch agent plist. Mac OS X doesn't recognize backslashes.
-- GG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden