How To Call JFrame from another Java class

前端 未结 5 1911
渐次进展
渐次进展 2020-12-06 14:46

I am trying to do a simple Jform and call it from another class. I want to use this Jframe in a server client application, but I don\'t know how to open the JFrame class fro

5条回答
  •  死守一世寂寞
    2020-12-06 15:34

    Forgive me if this is naive, as Im not anything of a Java programmer... But isnt it just because you need to set visible?

    Calculas CAL = new Calculas();
    CAL.setVisible(true);
    

提交回复
热议问题