-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I want to validate a jtextfield as user inputs a price of some item.
I have a perfectly working code which beeps and discard if user inputs some character that doesnt match the regular expression.(for regular expression "[0-9]+" it accepts any number of digits and beeps if a letter is given as input)
But…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
doesn't .getKeyCode( ) return the key's int value? Because i have set my jtextfield to listen to keylistener, and in the keytyped method, i check what key has been pressed. Here's a snippet of my code:
JTextField jtf = new JTextField( );
jtf.addKeyListener( this );
.
.
.
public void keyTyped( KeyEvent…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have a tabbed pane with a couple of uneditable JTextFields which I want to fill in with information from a database. However, when I set the text in the text fields to anything, it doesn't show up when I run the program. When I get the text and print it out, it does show. What could be the problem…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I am trying to have several JTextFields on a single row, but I don't want them to have the same width. How can I control the width and make some of them wider than others? I want that they together take up 100% of the total width, so it would be good if I could use some kind of weigthing.
I have…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have a JTextField that represents a day, such as "Sunday", when I left mouse click on it, it changes background color, when I right mouse click on it, a pop up menu comes up, after I click on a menu item, such as "1st of month", it gets the value, closes the menu and then change the bgcolor, my…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi there, i saw your comment about getting rid of the setText deprecated error, and using cell.textLabel.text it works perfectly for OS 4.0 but it doesn't work on 3.1.3, the app crashes at the loading screen, have you got any ideas?
Hope to hear back
Gemma
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have made this calculator program in Java. This works well only when two numbers are calculated at one time. That means to get the sum of 1+2+3 you have to go this way :
press 1
press +
press 2
press =
press +
press 3
press =
and it calculates it as 6.
But I want to program this so that I can…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi i have a problem. I have 2 viewcontroller, in the first there is a mapView that implements the function "calloutAccessoryControlTapped" to tap a button on an annotation on the mapView;
in the second there is just a UITextView.
I want to change the text of the UITextView (and show the SecondViewController)…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi there, i saw your comment about getting rid of the setText deprecated error, and using cell.textLabel.text it works perfectly for OS 4.0 but it doesn't work on 3.1.3, the app crashes at the loading screen, have you got any ideas?
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi there,
I am a Java newbie trying to maintain an application that works fine under J2SE 5.0 (32- and 64-bit) but has a very specific problem when run under Java SE 6 64-bit:
[Tims-MPB:~] tlynch% java -version
java version "1.6.0_15"
Java(TM) SE Runtime Environment (build 1.6.0_15-b03-226)
Java…
>>> More