Cocoa and Java and Menus Oh my...
Cocoa and Java and Menus Oh my...
- Subject: Cocoa and Java and Menus Oh my...
- From: Mike Jackson <email@hidden>
- Date: Fri, 21 Feb 2003 16:01:54 -0500
Trying to write a small app using java-cocoa so not sure if this is the
correct list, but it might get me started.
Essentially, as a learning exercise I was trying to write an app like CPU
meter except for Network activity. Some one turned my onto using netstat as
a child process and parsing the output to get the values. This part works
fine. It is when I start using BufferedImage from the standard java packages
to draw the activity that problems start. The first thing (there are more)
is that an extra menu that appears after the program gets going creating the
images (inside of a BufferedImage class). If I comment out all the drawing
code (thus leaving a useless class) the extra menu does not appear.
So what I have for the menus is....
NetMeter___Window__Help and when the offending code is run....
NetMeter___Window__Help__NetMeter
Under the extra window is just one dimmed menu "About NetMeter"
Anyone know of any caveats using Java with cocoa that would produce these
results?
I had a working app that used all Cocoa/Java specific classes (NSView,
NSData..) but the object was to produce a dynamic dock icon like CPU meter
instead of having another window on my screen. The Dynamic Dock icon
actually works, but this extra menu is causing problems.
After this, there are some other questions about Java Threads and such....
Thanks in advance for any helpful tips/pointers/URLS and the like.
Mike Jackson
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.