首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

取得焦点

2012-09-10 
获得焦点表头:(getBillCardPanel().getHeadItem(head1).getComponent()).setFocusable(true) or(getBil

获得焦点

表头:(getBillCardPanel().getHeadItem("head1").getComponent()).setFocusable(true); or(getBillCardPanel().getHeadItem("head1").getComponent()).requestFocus();表体:getBillCardPanel().getBillTable().requestFocus();getBillCardPanel().getBillTable().setRowSelectionInterval(1, 1);getBillCardPanel().getBillTable().setColumnSelectionInterval(2, 2);或   javax.swing.SwingUtilities.invokeLater(new Runnable(){                                                        public void run() {                                                                // TODO Auto-generated method stub                                                                getBillTable("table").editCellAt(mRow, mCol);                                                                getBodyItem(mKey).getComponent().requestFocus();                                                        }                                                                                                        });
?

热点排行