[lobby-svn] SF.net SVN: lobby: [115] trunk/src/org/lobby/client/LobbyClientGUI.java
Brought to you by:
yuranet
From: <yu...@us...> - 2007-05-16 01:22:26
|
Revision: 115 http://lobby.svn.sourceforge.net/lobby/?rev=115&view=rev Author: yuranet Date: 2007-05-15 18:22:25 -0700 (Tue, 15 May 2007) Log Message: ----------- repaint fixed for buttons, almost Modified Paths: -------------- trunk/src/org/lobby/client/LobbyClientGUI.java Modified: trunk/src/org/lobby/client/LobbyClientGUI.java =================================================================== --- trunk/src/org/lobby/client/LobbyClientGUI.java 2007-05-16 00:57:59 UTC (rev 114) +++ trunk/src/org/lobby/client/LobbyClientGUI.java 2007-05-16 01:22:25 UTC (rev 115) @@ -1134,7 +1134,7 @@ public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { - return table.getCellEditor(row,column).getTableCellEditorComponent(table, value, isSelected, row, column); + return table.getCellEditor(row,column).getTableCellEditorComponent(table, value, true, row, column); } } @@ -1182,6 +1182,9 @@ showError(e.getMessage()); } + + cancelCellEditing(); + } }); @@ -1196,6 +1199,8 @@ state = (Integer)table.getValueAt(row,column); + if (!isSelected) { table.getSelectionModel().setSelectionInterval(row,row); } + switch( state.intValue() ) { case Game.STATE_CAN_NOTHING: return null; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |