Results 1 to 2 of 2
  1. #1
    Ghozia is offline Member
    Join Date
    Nov 2011
    Posts
    1
    Rep Power
    0

    Default An image drawn by drawimage on top of Swing application flikers and not stable

    I have a Swing Java application, the interface consists of a mainframe, menuBar that contains many drop menus. At the top right corner, I draw a logo using drawImage(). the logo spans over the menuBar and the mainPanel as well.

    When I open some(not all) components from the drop down menus in the menuBar, the logo starts to appear/disappear(flash).

    The idea to put the logo as an icon for JLabel and add the JLabel to a panel does not work with me because I want the logo to span over the menubar and part of the mainpanel.

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

    Default Re: An image drawn by drawimage on top of Swing application flikers and not stable

    I want the logo to span over the menubar and part of the mainpanel.
    Bad idea. Probably doable, like most things in programming, but certainly not trivial. Certainly not easily doable via custom painting.

    To get better help sooner, post a SSCCE (Short, Self Contained, Compilable and Executable) example that demonstrates the problem. Note that the first 'S' stands for Short.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. DrawImage with transparency ?
    By mrhid6 in forum AWT / Swing
    Replies: 2
    Last Post: 10-01-2011, 11:58 PM
  2. drawImage im 13 plz help
    By pseudohawtcakes in forum New To Java
    Replies: 3
    Last Post: 05-17-2011, 08:07 PM
  3. Replies: 0
    Last Post: 04-21-2011, 09:51 AM
  4. get the min X and min Y of an image drawn on the window
    By bizzareshishir in forum New To Java
    Replies: 3
    Last Post: 01-22-2011, 01:03 PM
  5. How do erase image drawn
    By fernando in forum New To Java
    Replies: 1
    Last Post: 08-06-2007, 05:26 AM

Tags for this Thread

Posting Permissions

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