开发者

How to set the tables in the CENTER of the window

Please,can anyone help me for this开发者_开发知识库 problem:

I have built the code in the way that each time I press one of the radio buttons on of the 5 tables I have must be visible in the window while the other 4 are invisible. The only problem I have is to make the content of this table which has 2 colomns,,,Emer and Nota in the center of the second panel,,,because I have separated the window in 3 panels,

The first panel contains the radio buttons which are ok:) The second panel contains the 5 tables,,,1 for each radioButton,,,I only need that when I press one of the buttons the selected table to show on the CENTER of the second panel. The third panel contains only one button,but it's fine;)

Plz help me. If you need the code tell me to write it here and I would like to put a print screen on it,so you can understand better...I hope so.

How to set the tables in the CENTER of the window


I can think of a few ways to solves this. The simplest being just remove the existing table from the second panel and add the table you want to see (should be in a scroll pane too). The other is to use something like a card layout and simply switch to the card that corresponds to your radio button.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜