Jonathan Culloty

Greenhorn
+ Follow
since Apr 22, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Jonathan Culloty

Hi Rob, I got it to work, finally.
IconImage was the way to go.
Thanks for your help and patience.
/Jon


14 years ago
file:/Users/jonathanculloty/forge/BBUM/bin/bbum/img/leftside.gif
file:/Users/jonathanculloty/forge/BBUM/bin/bbum/img/rightside.gif
14 years ago
Hi Rob, I was trying like that except I either saw a completely clear or completely black icon depending on the BufferedImage .TYPE I use... Thanks


14 years ago
One last question about Images. I have 2 gifs, both are 8 pixels wide and 16 pixels high.
I want to put one gif on the left side of a system tray icon and the other on the right side.
Sort of like below, is this possible to do? I've been try to get it to work without success for the last while.

Thanks,
Jon

ooooooooxxxxxxxx
ooooooooxxxxxxxx
ooooooooxxxxxxxx
ooooooooxxxxxxxx
ooooooooxxxxxxxx
ooooooooxxxxxxxx
ooooooooxxxxxxxx
ooooooooxxxxxxxx
ooooooooxxxxxxxx
ooooooooxxxxxxxx
ooooooooxxxxxxxx
ooooooooxxxxxxxx
ooooooooxxxxxxxx
ooooooooxxxxxxxx
ooooooooxxxxxxxx
ooooooooxxxxxxxx
14 years ago
Thanks for the suggestions guys, I tried using HTML to format it but its not supported for trayicon tooltips.
Its only supported for normal graphics...
Space between \n and Result did help either..

I'll try String.format later but I suspect it'll be the same result.

Cheers,
Jon
14 years ago
A bit of an obscure problem here but someone might have an idea...

I've a multiplatform app that displays some info in the system tray...
When a user hovers the mouse over the tray icon a tooltip is displayed.
The info in my tooltip requires newlines to make it readable...
Windows and OSX have no problem with the newlines, but newlines are not shown in the tooltip when I'm running on ubuntu.
My code looks something like this...

Anyone have any suggestions, this is driving me mad :-)
Thanks,
Jonathan
14 years ago
Thanks guys for the suggestions.
I went with the writing to .reg file and calling Runtime on it.
Works nicely
14 years ago
Hi!

I've a small java program that displays info in the windows system tray.
I want the program to start on bootup so I've manually added it to the registry under:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run

This works nicely but I'd like to automate the registry update if possible, so its easier for people I distribute my program too.
Can anyone suggest a neat way to do this? I'm currently considering
1. Write an installation .bat file to update registry
2. Do the registry update from within my code

Any suggestions or tips much appreciated.
Thanks,

Jonathan
14 years ago
One last quick one, I am currently only able to display 2 characters in the icon using this method.
Is there anyway to squeeze more chars in here, or am I limited to just two?
I guess the 16x16 pixel size of the icon limits the space...
Thanks,
Jon
15 years ago
thank you very much Rob, it worked perfectly....

15 years ago
Hi, I'm using the Java SystemTray http://java.sun.com/javase/6/docs/api/java/awt/SystemTray.html to display a parameter.
I want to read this parameter hourly and display the value in the system tray.
My problem is that I can only display a trayicon and not a string.
I know I can add a popup to the tray icon which contains a string but i wanted the user to see teh string without any interaction.

any ideas how to get around this?
Thanks,

Jonathan
15 years ago
Hello,

I'm trying to figure out how I should list the rooms based on the available date.

Should I just list rooms available within the next 48 hours? If I go with this option I'm afraid that the examiner will not see any bookings available when the client is launched with the default db file.

OR....

Should I list all non-booked rooms and make the rooms outside of the 48 hour period non-selectable? Could anyone give me a hint how o make certain rows in a jtable selectable/non-selectable?

Thanks,
Jon
Thanks Jared, I'm going with one Jar file (runme.jar) inside another one (all artifacts).

When building runme.jar, should i include the .java files in the jar? Or only the .class files? Since the .java files are not needed at runtime and the .java files will be inside the overall jar anyways.

Cheers !

All elements of your submission must be packaged in a single JAR file. The JAR file must have the following layout and contents in its root:

* The executable JAR containing the programs. This must be called runme.jar.



Hello,
The following instructions were in my project spec regarding packaging. Does this mean that I should have one jar file (runme.jar) wrapped up in an overall jar file (containing all artifacts)? Can I call the overall jar file anything I want. I'm worried that the instructor might try to run the overall jar file instead of digging the runme.jar one out first and running that.
Any help appreciated here.
Thanks,
Jon