[power-matchmaker] r2782 committed - Corrected wording and fixed a bug where the prev and next buttons woul...

0 views
Skip to first unread message

power-ma...@googlecode.com

unread,
Jan 31, 2011, 4:29:17 PM1/31/11
to matchmake...@googlegroups.com
Revision: 2782
Author: ThomasObrien95
Date: Mon Jan 31 13:28:05 2011
Log: Corrected wording and fixed a bug where the prev and next buttons
would stay disabled if you displayed all of the graphs on one screen and
then reduced the graph count to go back to paging.
http://code.google.com/p/power-matchmaker/source/detail?r=2782

Modified:

/branches/0.9.7/src/ca/sqlpower/matchmaker/swingui/MatchResultVisualizer.java

=======================================
---
/branches/0.9.7/src/ca/sqlpower/matchmaker/swingui/MatchResultVisualizer.java
Fri Jan 28 09:04:13 2011
+++
/branches/0.9.7/src/ca/sqlpower/matchmaker/swingui/MatchResultVisualizer.java
Mon Jan 31 13:28:05 2011
@@ -825,7 +825,7 @@
buttonPanel.add(resetClusterButton);
JPanel pageCountSelectorPanel = new JPanel();
pageCountSelectorPanel.setLayout(new BoxLayout(pageCountSelectorPanel,
BoxLayout.X_AXIS));
- pageCountSelectorPanel.add(new JLabel("# addresses per page"));
+ pageCountSelectorPanel.add(new JLabel("# graphs per page"));
final JTextField displayCountField = new
JTextField(Integer.toString(displayCount));
pageCountSelectorPanel.add(displayCountField);
displayCountField.addFocusListener(new FocusListener() {
@@ -999,6 +999,8 @@
startGraph =
startPoint.subtract(BigInteger.valueOf(displayCount)).add(BigInteger.ONE);
endGraph = startPoint;
}
+ prevButton.setEnabled(true);
+ nextButton.setEnabled(true);
if (startGraph.compareTo(BigInteger.ZERO) == -1) {
startGraph = BigInteger.ZERO;
}

Reply all
Reply to author
Forward
0 new messages