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.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论