Close Button to Panel

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aryan24
    New Member
    • Aug 2007
    • 8

    #1

    Close Button to Panel

    Can anyone please provide the solution to add minimize and close buttons to each panel ., embedded in a frame...
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Originally posted by aryan24
    Can anyone please provide the solution to add minimize and close buttons to each panel ., embedded in a frame...
    Are you sure you don't want JInternalFrames in a JDesktopPane?

    kind regards,

    Jos

    Comment

    • aryan24
      New Member
      • Aug 2007
      • 8

      #3
      Originally posted by JosAH
      Are you sure you don't want JInternalFrames in a JDesktopPane?

      kind regards,

      Jos
      As part of the project , in one of the modules ., i have 4 panels . In one panel i have a tool bar and in another panel i have a JeditorPane and so on .. so i need the functionality to close and minimize each panel.

      Comment

      • JosAH
        Recognized Expert MVP
        • Mar 2007
        • 11453

        #4
        Originally posted by aryan24
        As part of the project , in one of the modules ., i have 4 panels . In one panel i have a tool bar and in another panel i have a JeditorPane and so on .. so i need the functionality to close and minimize each panel.
        You can't 'minimize' JPanels and when you close them you'll mess up the layout
        of the other panels (if they're stored in the same JFrame). You either need to
        store your editor and toolbar in a JFrame or JDialog or in a JINternalFrame as I
        suggested earlier.

        kind regards,

        Jos

        Comment

        Working...