Probelm with Undecorated in JFrame

Posted on 2007-08-10
Last Modified: 2012-06-27
When I tried to do
I am getting this exception
Exception in thread "main" java.awt.IllegalComponentStateException: The frame is
        at java.awt.Frame.setUndecorated(Unknown Source)
        at TransparentBackground.main(

Question by:sangameshrh
    LVL 24

    Accepted Solution

    ..... so you should do this BEFORE you say

    LVL 86

    Expert Comment

    You need to set that before displaying the frame
    LVL 86

    Expert Comment

    Sorry Joop
    LVL 24

    Expert Comment

    Why sorry, nobody harmed.
    Pleased to be a help.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Suggested Solutions

    Title # Comments Views Activity
    wordsFront challenge 8 47
    hasOne  challenge 59 63
    Increment alphanumeric sequence 6 54
    pairs challenge 5 29
    An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
    Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
    The viewer will learn how to implement Singleton Design Pattern in Java.
    Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now