¡@

Home 

java Programming Glossary: tf2

How to request focus synchronously in Swing?

http://stackoverflow.com/questions/11268936/how-to-request-focus-synchronously-in-swing

public Testing JTextField tf1 new JTextField 5 JTextField tf2 new JTextField 5 JTextField tf3 new JTextField 5 JButton b1.. 5 JButton b1 new JButton B1 JButton b2 new JButton B2 tf2.setEnabled false focusList new Component tf1 b1 tf2 b2 tf3 JPanel.. B2 tf2.setEnabled false focusList new Component tf1 b1 tf2 b2 tf3 JPanel panel new JPanel new GridLayout 5 1 panel.add..

Sorting Table is wrong when the sort button be pressed more than once?

http://stackoverflow.com/questions/16661998/sorting-table-is-wrong-when-the-sort-button-be-pressed-more-than-once

implements ActionListener JTable table JTextField tf1 tf2 tf3 tf4 JButton b1 b2 b3 b4 b5 b6 b7 Vector rows collumns temp.. l1 new JLabel Nama t l1.setBounds 530 50 90 25 add l1 tf2 new JTextField tf2.setBounds 640 80 90 25 add tf2 JLabel l2.. Nama t l1.setBounds 530 50 90 25 add l1 tf2 new JTextField tf2.setBounds 640 80 90 25 add tf2 JLabel l2 new JLabel Nim l2.setBounds..

FocusEvent doesn't get the last value of JFormattedTextField, How I can get it?

http://stackoverflow.com/questions/6803976/focusevent-doesnt-get-the-last-value-of-jformattedtextfield-how-i-can-get-it

it gets the previous value. For example tf1 has 0 and tf2 has 0 at first. I write 2 to tf1 and when focusLost result tf1.. 0 at first. I write 2 to tf1 and when focusLost result tf1 tf2 become still 0. when I change any of them the result becomes.. on focusLost Here is my code JFormattedTextField tf1 tf2 NumberFormat format NumberFormat.getNumberInstance tf1 new JFormattedTextField..

How to find a button source in AWT (calculator homework)

http://stackoverflow.com/questions/7441625/how-to-find-a-button-source-in-awt-calculator-homework

p4 components private Label l1 l2 l3 private TextField tf1 tf2 tf3 private Button bAdd bSub bMul bDiv bClear public SimpleCalculator.. new Label Second l3 new Label Result tf1 new TextField 15 tf2 new TextField 15 tf3 new TextField 15 bAdd new Button bSub new.. the Panel FlowLayout p1.add l1 p1.add tf1 p2.add l2 p2.add tf2 p3.add l3 p3.add tf3 p4.add bAdd p4.add bSub p4.add bMul p4.add..

create hot keys for JButton in java using swing

http://stackoverflow.com/questions/8588145/create-hot-keys-for-jbutton-in-java-using-swing

'N' JLabel Regno new JLabel RegNO JTextField tf2 new JTextField 20 Regno.setLabelFor tf2 Regno.setDisplayedMnemonic.. RegNO JTextField tf2 new JTextField 20 Regno.setLabelFor tf2 Regno.setDisplayedMnemonic 'R' JLabel Mark1 new JLabel Mark1.. JPanel p new JPanel p.add Name p.add tf1 p.add Regno p.add tf2 p.add Mark1 p.add tf3 p.add Mark2 p.add tf4 p.add b1 p.add b2..