Results 1 to 3 of 3
  1. #1
    Confused is offline Member
    Join Date
    Feb 2010
    Posts
    3
    Rep Power
    0

    Default 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.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

    Default

    > 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

  3. #3
    Confused is offline Member
    Join Date
    Feb 2010
    Posts
    3
    Rep Power
    0

    Default

    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

  1. Swing Timers Issue.
    By killpoppop in forum AWT / Swing
    Replies: 4
    Last Post: 03-09-2009, 11:17 PM
  2. [SOLVED] Swing Timer issue
    By Doctor Cactus in forum New To Java
    Replies: 6
    Last Post: 03-03-2009, 12:25 PM
  3. Java1.5 Swing Issue
    By naveenbk in forum AWT / Swing
    Replies: 1
    Last Post: 11-23-2008, 08:03 PM
  4. Heavy and light component mixing
    By Bojevnik in forum AWT / Swing
    Replies: 2
    Last Post: 08-13-2007, 11:23 AM
  5. map javax.swing.text.Element to javax.swing.text.View
    By elizabeth in forum New To Java
    Replies: 1
    Last Post: 07-30-2007, 07:02 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •