开发者

Where is form_load event in JInternalFrame?

I have a project which have two form. 1st is JFrame and 2nd is JInternalFrame. I make a 1st one like MDI form. When I click on menu of 1st form, The 2nd form should be showed and contain a lot of data from Ms. Access 2003 Database. I fail to add event to the 2nd form, Where is form load in JInternalFrame. I try the implement my 2nd form with WindowListener, but it is not work. Please hel开发者_如何学运维p !


From waht I understand, you have a JFrame that may contain JInternalFrame and you want a menu item to create a JInternalFrame, isn't it ?

if so, the answer is as simple as a look to the Swing tutorial : How to use menus. what you'll have to do is is to create either an Action or an ActionListener which actionPerformed(ActionEvent) method will create the new JInternalFrame and make it visible in your JDesktopPane.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜