Using JInternalFrame and some button

前端 未结 2 1446
灰色年华
灰色年华 2020-11-29 14:07

Can we use a JInternalFame with a button in the main frame? The frame contains a JDesktopPane, of course. The button should open up the JInternalFrame

2条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-29 14:35

    I don't really understand the question so I will just make some observations.

    a) a JInternalFrme is like a frame in that you can add any component to it that you want

    b) A JButton works the same whether it is added to an internal frame or a frame

    I suggest you start by reading the Swing tutorial for working examples. You might start with the sections on "How to Use Internal Frames" and "How to Use Buttons".

    If you still have problems then post your SSCCE that shows what you have tried.

提交回复
热议问题