jtextfield
temporarily disable ok button on a JDialog, accordingly to a JTextField validation
I have a JDialog created in a fashion like this, accordingly to Oracle\'s tutorial. using the JOptionPane constructor:[详细]
2023-04-12 17:43 分类:问答JTextField limit input to certains chars only
i\'d like to create JTextField with input characters limited to someting like \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVXYWZZ0123456789+&@#/%?=~_-|!:,.;\"[详细]
2023-04-11 09:07 分类:问答Alternate focus between elements of JOptionPane
I am trying to show a JOptionPane with a JTextField, which has initial focus, in it and, as soon as the user press ENTER, I want it to perform an action with the text entered in the text field.[详细]
2023-04-10 18:07 分类:问答JTextField key listener is one behind after pasting
I am trying to check that the text in a JTextField matches aperticular pattern, and if it does / doesn\'t display a message the user. This is 开发者_开发技巧what I have so far:[详细]
2023-04-10 02:17 分类:问答why aren't my JLabels and JTextFields showing up in the JPanel?
I have a JDialog and inside it I have a JPanel that uses FlowLayout now I\'ve created 3 labels and text fields using the Netbeans GUI Builder, and I want to add 2 more text fields using code[详细]
2023-04-09 07:43 分类:问答cursor does not change to I-bar on mouseover JTextField
Initially the cursor changes to i-bar on mouseover, but after clicking a button (which basically calls setEnabled(false) and then setEnabled(true) on the JTextField) ,the cursor doe not change to i-ba[详细]
2023-04-09 00:54 分类:问答How to get Console input and output from jtextArea or JEditorPane
I am trying to build a little IDE that calls a C compiler. When the C compiler compiles, I want to redirect the output to a JTextArea or JEditorPane in the IDE so the user can view the output.[详细]
2023-04-07 15:41 分类:问答Document filter is not working in Java?
In text field more than 10 characters na, i开发者_运维技巧t has to show an error. For that i used document filter:[详细]
2023-04-07 03:37 分类:问答How to check JTextField text to String?
I have a problem on ch开发者_如何学JAVAecking the text and string. public boolean Isequals(Object c){[详细]
2023-04-06 21:02 分类:问答JTextField's setText method doesn't work from a KeyListener
I\'m puzzled as to why a JTextField doesn\'t seem to just \"clear out\" by using the setText(\"\") method on it, when this is coming from a KeyListener. It works fine from an ActionListener, except th[详细]
2023-04-06 17:42 分类:问答