开发者

java JTable cell change

I have a java JTable, when users click a cell, it will change to a dropdown or textField, users can make chan开发者_JS百科ge. Then users can click a save button, that cell will go back a label.

How to implement this ? a simple example will be better.

Thanks.


A good starting point for such questions is Sun/ Oracle's tutorial:

http://download.oracle.com/javase/tutorial/uiswing/components/table.html

Have a look at cell renderers, cell editors, table models and events.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜