jtextfield
JTextField size
I have a JPanel like this: GridBagConstraints constPanelInfo = new GridBagConstraints(); panelInfo = new JPanel(new GridBagLayout());[详细]
2023-03-15 01:43 分类:问答Updating text in a JTextField
K, so unlike with my last question, I\'ve been proactive about trying to deal with this problem a number of times, and it\'s still not working.[详细]
2023-03-14 14:09 分类:问答JTextField: avoid display "," in numbers
I\'m looking for 开发者_开发技巧a better solution than the one I currently have: I have a textfield for which I read and right numbers in:[详细]
2023-03-14 11:23 分类:问答How to have a dynamic width for a JTextField?
I have a JFrame with a JTextField.I want to g开发者_StackOverflowet the width of the JTextFieldincreased/decreased accordingly when the JFrame is maximized/restored.[详细]
2023-03-13 20:10 分类:问答how to set new text in JTextField after creation?
I have a jTextField , and I set it\'s value to a certain sum when I create the frame. Here is the initiation code:[详细]
2023-03-13 05:06 分类:问答Update/Fetch/Sync a JTextField input by user in a class to a JTextField of another class
public class FormattedName extends javax.swing.JFrame { /** Creates new form FormattedName */ public FormattedName() {[详细]
2023-03-11 06:46 分类:问答Incompatible types in java
I am trying to take a String from a JTextField using getText and apply it to the method SearchString but i am presented with the error Incompatible Types i cannot see anything wrong with this code how[详细]
2023-03-10 17:46 分类:问答How to have a default value on a jTextField that is being validated?
I want to validate the input of a jTextField and also have a default value set. From what I understand, this code should work, but the default value never appears. If I remove the validation code, the[详细]
2023-03-10 17:30 分类:问答Questions: controlling a Swing GUI from an external class and separating logic from user interface
UPDATE: I\'m using Netbeans and Matise and it\'s possible that it could be Matise causing the problems I describe below.[详细]
2023-03-10 05:51 分类:问答How to restrict the JTextField to a x number of characters
I have to restrict the number of characters in the JTextField. I used the following code to do that but the problem is i am feeding the data to JTextField using the virtual keyboard. So the offset is[详细]
2023-03-09 16:59 分类:问答