Skip to content

Commit

Permalink
Set default mouse buttons.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisleung committed Jan 31, 2008
1 parent 9d99714 commit a64656a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/powerreader/OptionsUI.form
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@
<StringItem index="3" value="Do nothing"/>
</StringArray>
</Property>
<Property name="selectedIndex" type="int" value="2"/>
</Properties>
</Component>
<Component class="javax.swing.JComboBox" name="m_combo_rightClick">
Expand All @@ -208,6 +209,7 @@
<StringItem index="3" value="Do nothing"/>
</StringArray>
</Property>
<Property name="selectedIndex" type="int" value="1"/>
</Properties>
</Component>
<Component class="javax.swing.JButton" name="m_okButton">
Expand Down
2 changes: 2 additions & 0 deletions src/powerreader/OptionsUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,10 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
m_combo_leftClick.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Focus on item", "Drag and scroll", "Read dictionary definition", "Do nothing" }));

m_combo_middleClick.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Focus on item", "Drag and scroll", "Read dictionary definition", "Do nothing" }));
m_combo_middleClick.setSelectedIndex(2);

m_combo_rightClick.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Focus on item", "Drag and scroll", "Read dictionary definition", "Do nothing" }));
m_combo_rightClick.setSelectedIndex(1);

m_okButton.setText("OK");
m_okButton.addActionListener(new java.awt.event.ActionListener() {
Expand Down

0 comments on commit a64656a

Please sign in to comment.