Results 1 to 3 of 3
  1. #1
    nicocannon is offline Member
    Join Date
    Dec 2014
    Posts
    24
    Rep Power
    0

    Post How to make custom shaped JFrames

    I want to know if it is possible to create a custom shaped JFrame. I'm not talking about a circle or anything more like joining differently sized rectangular JFrames kind of like photo shop how they kind of a frame around the photo with the tools on it. Is this possible with swing?

  2. #2
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    4,508
    Rep Power
    7

    Default Re: How to make custom shaped JFrames

    Yes. It sounds like you want to have a bunch of JPanels inside a large frame, each panel providing some sort of wizard capability. You can also use internal frames. See the tutorials in my signature.

    And you can also have a frame in pretty much any shape you want. But it can't be decorated. So that makes it more like a window.

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,719
    Rep Power
    20

    Default Re: How to make custom shaped JFrames

    If you're trying to make a MDI application, JDesktopPane and JInternalFrame would be your best option. There's a section about their usage in the tutorial that Jim mentioned.

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

Similar Threads

  1. How to make custom collision shapes
    By Wesley.laferriere in forum New To Java
    Replies: 0
    Last Post: 11-25-2012, 11:06 PM
  2. How to make a custom JComboBox or JList
    By Xzar in forum New To Java
    Replies: 3
    Last Post: 11-15-2012, 12:36 AM
  3. Custom shaped JDialog needs smooth edges
    By Kligham in forum AWT / Swing
    Replies: 3
    Last Post: 04-23-2010, 01:54 PM
  4. Shaped Windows
    By nick2price in forum AWT / Swing
    Replies: 2
    Last Post: 02-12-2009, 08:02 AM
  5. Ring Shaped Shell in SWT
    By Java Tip in forum SWT Tips
    Replies: 0
    Last Post: 07-25-2008, 02:28 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
  •