0

I want to make an internal frame in the main frame and when a button in the main frame pressed, it should hide the internal frame and another internal frame should visible in the same position of first internal frame

Zoe
  • 27,060
  • 21
  • 118
  • 148
Arun B R
  • 21
  • 7

1 Answers1

0

I want to make an internal frame in the main frame

A JInternalFrame is added to a JDesktopPane.

So you just make the first internal frame invisible and add the second internal frame and make it visible. Or you just make the second internal frame the active frame and it will paint on top of the other frame.

Read the swing tutorial on How to Use Internal Frames for more information and working examples.

If you are not talking about a JInternalFrame, then fix your question and make sure you use proper terminology (ie class name) when you ask a question so we don't have to guess what you are talking about.

camickr
  • 321,443
  • 19
  • 166
  • 288
  • The idea of desktop pane is worked. But the code which helped me is below https://www.youtube.com/watch?v=AH4v_rQRyAk – Arun B R Aug 12 '18 at 15:38