As shown in figure, I want to use Python jpype module to run a Java graphical interface, how all not line, the final treatment have a shell jframe, or to the errors, so need help, can add me QQ3037860956, paid, as long as you can run a whiteboard jframe can
CodePudding user response:
Post code and so on bosses is a better wayCodePudding user response:
The Java graphical interface the source of all sorts of adjustment are not, should not code problem1.
import javax.swing.JFrame;
Public class JFrame1 extends JFrame {
Private JFrame JFrame=new JFrame ();
Public JFrame1 () {
,0,1250,600 jFrame. SetBounds (0);
JFrame. SetDefaultCloseOperation (jFrame. EXIT_ON_CLOSE);//
//jFrame. SetLayout (new FlowLayout ());//
JFrame. SetVisible (true);//
}
Public static void main (String [] args) {
JFrame1 jf1=new JFrame1 ();
//jf1. SetTitle (" jf ");
}
}
2.
import javax.swing.JFrame;
Public class Ce3 extends JFrame {
//private JFrame JFrame=new JFrame ();
Public Ce3 () {
JFrame JFrame=new JFrame ();
,0,1250,600 jFrame. SetBounds (0);
JFrame. SetDefaultCloseOperation (jFrame. EXIT_ON_CLOSE);//
//jFrame. SetLayout (new FlowLayout ());//
JFrame. SetVisible (true);//
}
Public static void main (String [] args) {
Ce3 Ce3=new Ce3 ();
}
These are not
}
CodePudding user response:
import javax.swing.JFrame;Public class Ce5 {
//private JFrame JFrame=new JFrame ();
Public Ce5 () {
}
Public void createJFrame () {
JFrame JFrame=new JFrame ();
,0,1250,600 jFrame. SetBounds (0);
JFrame. SetDefaultCloseOperation (jFrame. EXIT_ON_CLOSE);//
//jFrame. SetLayout (new FlowLayout ());//
JFrame. SetVisible (true);//
}
Public static void main (String [] args) {
Ce5 ce4=new Ce5 ();
Ce4. CreateJFrame ();
}
Can't}