1. Java JMenu and Jtextfield that only handles numbers not strings stackoverflow.comMy small converting program has a few issues that I can't fix and need help with:
|
2. JPopupMenu + JMenu + JTextField how can i edit JTextField on this structure?? coderanch.comfinal JTextField myField = new JTextField(10); myField.setFont(new Font("Arial", Font.ITALIC, 12)); myField.addMouseListener(new MouseListener() { @Override public void mouseReleased(MouseEvent e) { } @Override public void mousePressed(MouseEvent e) { } @Override public void mouseExited(MouseEvent e) { } @Override public void mouseEntered(MouseEvent e) { } @Override public void mouseClicked(MouseEvent e) { myField.grabFocus(); System.out.println("test"); } }); myMenu.add(myField); add(myMenu); |