how to create own file with icon that inherit from JFrame icon, that I set it, in java and my own file use FileOutputStream and ObjectOutputStream
问题 I want to create my own file with icon that inherit from JFrame icon, that I set it, in java and my own file use FileOutputStream and ObjectOutputStream try { ObjectOutputStream oos; //I create own file with own extension in drive D: FileOutputStream fos = new FileOutputStream("D:/myFile.ckl"); oos = new ObjectOutputStream(fos); //Write Document in JTextPane to File oos.writeObject(jTextPane.getStyledDocument()); oos.close(); fos.close(); } catch (Exception exp) { JOptionPane