Results 1 to 3 of 3
  1. #1
    fwilliams is offline Member
    Join Date
    Jun 2010
    Rep Power

    Angry setWindowOpaque causes problems at windows login.

    Hi all,

    Ii have an issue with setWindowOpaque(frame, false)l

    I have a JFrame which is something like a Toolbar with shortcuts on it that when clicked will execute an application in a Process. The Toolbar by requirement needs to have rounded corners so we set the JFrame to opaque = false then add a background image so that we have perfectly antialiased rounded corners. Works fantastic until we lock the workstation and log back in only to find an empty toolbar with a white background. We can minimize the Toolbar and it updates / refreshes the UI and as well when clicking the buttons on the toolbar they update. If I comment out the line of code that sets the window none opaque we don't get these issues.

    This can be easily replicated by creating a JFrame like so..

    public void init () {
    JFrame frame = new JFrame();
    JPanel panel = new JPanel() {
    public void paintComponent(Graphics g) {
    Graphics2D g2d = (Graphics2D)g;
    g2d.drawImage(image, 0, 0, null);
    panel.setSize(200, 200);
    AWTutilities.setWindowOpaque(frame, false);

    now lock your workstation and log back in again. You should see a sqare shape in your desktop which isn't updating the UI. If anyone has seen this issue before I would really appreciate a work around or a fix..


  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Madgaon, Goa, India
    Rep Power

  3. #3
    fwilliams is offline Member
    Join Date
    Jun 2010
    Rep Power

    Default Correct

    Darryl is absolutely right...

    If anyone has any answers to my problem please just update the thread

    Swing - setWindowOpaque and AWTUtilities questions

    Many thanks

Similar Threads

  1. Login validation problems!
    By syferite in forum AWT / Swing
    Replies: 3
    Last Post: 03-18-2011, 07:27 AM
  2. login.jsp
    By roo7 in forum Enterprise JavaBeans (EJB)
    Replies: 5
    Last Post: 12-02-2008, 04:58 PM
  3. Replies: 0
    Last Post: 06-25-2008, 01:41 PM
  4. problems with my JSP login page
    By ilangocal in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 04-28-2008, 07:40 PM
  5. problems with Login
    By Peter in forum Java Servlet
    Replies: 2
    Last Post: 06-12-2007, 02:50 PM

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