About java GUI

A problem that some module can not be shown when open a JFrame, and when you maximum the window and then they appear.

to solve this problem, you need to put the  " frame.setVisible(true) " line in the last of you struct of the JFrame. it performs as the reflush.

so that the components you add will be display.

 

Jmenu  

i find that its function setMargin(int top, int left, int bottom, int right) does not work. I don't not why.

posted on 2011-11-27 10:49  jinshi  阅读(67)  评论(0)    收藏  举报

导航