The Java Tutorials have been written for JDK 8. Examples and practices described in this page don't take advantage of improvements introduced in later releases and might use technology no longer available. See Java Language Changes for a summary of up
Finally, you can use the methods that the JTextArea class inherits from the JTextComponent class to set properties such as the caret, support for dragging, or color selection. The following code taken from TextSamplerDemo.java demonstrates initializing an
I have a jTextField , and I set it's value to a certain sum when I create the frame. Here is the initiation code: totalTextField.setText( itemsPriceTextField.getText() + Float.toString(orderDetails.delivery) ); This textfield should show a sum of item
Post a Comment:
Showing 0 Comments: