开发者

using swing components

开发者 https://www.devze.com 2023-02-07 00:30 出处:网络
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>;

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消