Hello every one i have a simple problem here i want to separate this code so that my code will become more easy to read. im using netbeans hear is my code
public class NewJFrame extends javax.swing.JFrame{ boolean logstart = false; public NewJFrame() throws IOException { initComponents(); // it is hard to develop application if the code are long so i want to separate this to another //external class plss help... //Start here ---------------------------------------- setContentPane(jPanel1); try{ int x = Integer.parseInt(new propAct().readSetting("locatefx")); int y = Integer.parseInt(new propAct().readSetting("locatefy")); String auto = new propAct().readSetting("auto"); if(auto.equals("true")){ automaticsignin.setSelected(true); String user = new propAct().readSetting("pu") ,pass = new propAct().readSetting("wp"); String usnam_decrypt = new cryptobrk().decrypt(user), pass_decrypt = new cryptobrk().decrypt(pass); System.out.println(usnam_decrypt); System.out.println(pass_decrypt); } String user = new propAct().readSetting("pu"); String usnam_decrypt = new cryptobrk().decrypt(user); jTextField1.setText(usnam_decrypt); setLocation(x,y); }catch(Exception e){ new propAct().newSetting("pu", ""); new propAct().newSetting("wp", ""); } //End here ---------------------------------------------------------------- } @SuppressWarnings("unchecked") //Generated Code
Note i mean that i want to separate the code into another java file. from NewJFrame.java to initialize.java