开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜