Thank you, but how does one set values or text for variables in the new JFrame from the original JFrame? (private access limitations!) e.g. full_screen_reader.jTextPane_fullscreen_reader.setText("TEST TEXT"); is not allowed
@programmingoflife2267
3 жыл бұрын
You can use form constructor method to send data from orginal form to new form.
@zakaria262
Жыл бұрын
thank you ❤❤
@toff2.024
Жыл бұрын
thank you!
@programmingoflife2267
Жыл бұрын
You're welcome!
@snehaselvakumar465
3 жыл бұрын
thank you.. that worked
@aminahadam1495
3 жыл бұрын
hi, I'm using java eclipse but why I cannot find any setVisible method in (f2.setVisible(true))
@programmingoflife2267
3 жыл бұрын
It doesn't matter Eclipse or NetBeans. f2 means a form instance of your second JFrame. Check with your second JFrame name. then you can instantiate the object like this : JFrameName f2=new JFrameName();
@programmingoflife2267
3 жыл бұрын
Let me know if you need any help with this and you can subscribe this channel to see more videos. Thank you.
@aminahadam1495
3 жыл бұрын
@@programmingoflife2267 thanks for reply, i already check my second frame and the name is correct, but it seem i cannot find the setVisible method. however it work when i use the JFrameName.showWindow(), but the window still did not appear even i set the method for the frame.setVisible(true).
@programmingoflife2267
3 жыл бұрын
@aminah adam can I see the source code and frames screen captures.
@aminahadam1495
3 жыл бұрын
i already got a touch on how to change into another frame. Thank you for the help.
Пікірлер: 14