Results 1 to 3 of 3
- 02-20-2010, 08:50 PM #1
Member
- Join Date
- Feb 2010
- Posts
- 3
- Rep Power
- 0
AWT/Swing Mixing Still and issue on MAC OSX?
Hi I'm new here and registered onto this forum out of desperation for a solution to a strange problem.
I work at my local university as a research assistant and my main task is developing a GUI application in java (I am one of two developers and I am the only one tasked in this area). The Java software I'm working on uses both Swing and AWT components from processing.core package.
Now to my knowledge mixing lightweight and heavyweight components was fixed in Java 6 Update 12. I believed that this fix was universal across all platforms. Note: I am a primary windows user and do not own a machine with OSX.
Unfortunately it appear not to be true. The other day I was handed a OSX machine and discovered that a lightweight component such as the popup from a combo box or a tooltip will be covered by heavy weight components.
Initially I thought I could fix this problem using the setLightWeightPopupEnabled(boolean flag); methods in both ToolTipManger and JComboBox to false. But this creates a whole new problem on Mac OSX causing all heavyweight components to flicker gray as they are repainted whenever a popup action is called.
Note: Strangely calling JPopup by it self does cause any problems at all.
Notice non of these issue appear on my Windows Machine just OSX. Has Java 6 update 12 been released for OSX? Its quite an old update to my knowledge.
Can anyone help me with some advice? My higherups tell me that the software I'm developing will mostly be used by students using Macs with OSX.
- 02-21-2010, 01:17 AM #2
> Now to my knowledge mixing lightweight and heavyweight components was fixed in Java 6 Update 12.
News to me. But why do you want to mix HW and LW components in the same GUI? What's lacking in Swing?
db
- 02-21-2010, 08:34 PM #3
Member
- Join Date
- Feb 2010
- Posts
- 3
- Rep Power
- 0
In regards to the mixing l/h components: See the following
A Farewell to Heavyweight/Lightweight Conflicts | Javalobby
Bug/RFE fixed in current JDK 6u12 build
The main graphical component of the application is being created from scratch using a PApplet which is an extension of AWT.
PApplet
The GUI component is a Swing Component used as a Tool/Navigation Panel. The problem is that dropdown menus and other popup like components stretch into the PApplet painting space.
Again I'd like to emphasis the fact that this only happens on OSX and the same code running on Windows running the latest Java is fine.
Similar Threads
-
Swing Timers Issue.
By killpoppop in forum AWT / SwingReplies: 4Last Post: 03-09-2009, 11:17 PM -
[SOLVED] Swing Timer issue
By Doctor Cactus in forum New To JavaReplies: 6Last Post: 03-03-2009, 12:25 PM -
Java1.5 Swing Issue
By naveenbk in forum AWT / SwingReplies: 1Last Post: 11-23-2008, 08:03 PM -
Heavy and light component mixing
By Bojevnik in forum AWT / SwingReplies: 2Last Post: 08-13-2007, 11:23 AM -
map javax.swing.text.Element to javax.swing.text.View
By elizabeth in forum New To JavaReplies: 1Last Post: 07-30-2007, 07:02 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks