using swing components
User enters a value in JFormattedText
, I need to get this value and put it in class definition
private static final int x = <here must be entered variable>;
And how to put System.out.println
result to JTextArea
( or may开发者_如何学Cbe I should use another component?)
private static final int x = <here must be entered variable>;
No way. You can't assign a user entered value to a static final field. private static final
is the Java way of declaring a system wide constant value.
ANd how to put system.outprinln result to JtextArea
See the Message Console for one way.
精彩评论