Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: Topless JFrame

  1. #1
    New Coder
    Join Date
    Oct 2008
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Topless JFrame

    Hello,

    How can I get rid of the header of a JFrame or a JInternalFrame?

    For example, instead of having this kind of window:

    =========
    Title [-][x]
    =========

    Content

    =========

    I would like something like this

    =========

    Content

    =========

    I just need a container with borders which can be resizable by the user.

    Just to elaborate the main problem that I'm looking for a solution now: I have a number of JInternalFrames inside a JDesktopPane which in turn is inside a JApplet. What I would like to do now is to get rid of the headers whilst the user could still drag them about, and resize them. It would not matter, for now, whether the desktop pane should be the parent or the applet should be the parent of the topless frames.

    Some have advised me to use JWindows, however apparently they can't be child components of an applet. The .setUndecorated(true) method works only for a JFrame which again cannot be added into a JApplet. JInternalFrames do not possess .setUndecorated(boolean boo) method.

    Any further ideas?

    Thanks,
    LD

  • #2
    Regular Coder DELOCH's Avatar
    Join Date
    Apr 2006
    Location
    Canada
    Posts
    537
    Thanks
    4
    Thanked 2 Times in 2 Posts
    Perhaps you should look up JWindow.

    however, the part where you resize it by dragging borders must be custom as far as i know...

  • #3
    New Coder
    Join Date
    Oct 2008
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I have been discussing on the same topic in another forum. Please visit this link for more information.

    I apologize for not posting it earlier: http://forums.sun.com/thread.jspa?th...7727&tstart=15

  • #4
    New Coder
    Join Date
    Oct 2008
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The problem has been solved and an example is given in Sun's forums. Please follow the link above if you're interested.

    Regards,
    LD


  •  

    Posting Permissions

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