Results 1 to 3 of 3

Thread: JDesktoppane?

  1. #1
    skatefreak is offline Member
    Join Date
    Jan 2009
    Posts
    18
    Rep Power
    0

    Default JDesktoppane?

    Hello all there.
    Well, I'm starting a project for the sake of learning a little more about java and consolidating what I think i already know :)
    soo....

    I'm looking to make a little program that will allow me to inventory a bunch of things (My garage at home's full of modeling stuff) so when I clear it out I can record what I have, what condition its in etc. So I want to create a stand alone application of a fixed size that I can basically just interface with a simple database with drop down menus that will open fixed JFrames within the main frame to show the data...

    My real question is though,
    I'v been playing with JDesktoppane and I'm starting to think its not as appropriate as I was thinking... Everything (frames wise) is to adjustable and I'd rather keep the frames of a pre-determined size (filling the internal frame, non-adjustable etc)...

    Are there any other areas/approaches anyone can suggest I look into that may prove more fruitful or have i completely missed a resource that contradicts my assumption that JDesktoppane cannot be set to be restricted?

    Best regards

    -Jvr

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    Have you looked at the JInternalFrame (which is what I think you really are referring to here) API? If not, you may wish to have a peek and search it for the term "resize". It might give you a helpful method or two.

    Best of luck!

  3. #3
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    Also, is your desire to display multiple panes at once, or would you rather only display a pane of data at certain points of the program, then cover it up with another pane of data?

    If the latter, then perhaps you're right JDesktopPane/JInteralFrames are not what you want. Instead perhaps you want JTabbedPane or a JPanel that uses the CardLayout (to use to swap other JPanels)

Similar Threads

  1. How to clear JDesktopPane
    By hendrix79 in forum New To Java
    Replies: 12
    Last Post: 12-10-2008, 11:25 PM
  2. JDesktopPane demo
    By Java Tip in forum javax.swing
    Replies: 0
    Last Post: 06-26-2008, 07:43 PM
  3. How to add SystemTray to JDesktopPane
    By elisabethkron@yahoo.co.uk in forum Advanced Java
    Replies: 0
    Last Post: 04-07-2008, 08:37 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
  •