I am in love with stackoverflow’s single-color “click-to-close’ hovering dialog boxes that greet a user when they try to vote and aren’t logged in or use the site incorrectly. Any idea how and/or what technology Jeff used to implement these neat little devices? EDIT: I’m specifically talking about the SQUARE dialog boxes that say “Click […]
Category: dialog
Java save function doesn’t work
hey, I have this code that should save a java.util.Vector of custom serializable classes: if(filename.equals(“”)){ javax.swing.JFileChooser fc = new javax.swing.JFileChooser(); if(fc.showSaveDialog(this) == javax.swing.JFileChooser.APPROVE_OPTION){ filename = fc.getSelectedFile().toString(); } } try{ java.io.FileOutputStream fos = new java.io.FileOutputStream(filename); java.io.ByteArrayOutputStream baos = new java.io.ByteArrayOutputStream(); java.io.ObjectOutputStream oos = new java.io.ObjectOutputStream(baos); oos.writeObject((Object)tl.entities); baos.writeTo(fos); oos.close(); fos.close(); baos.close(); }catch(java.io.FileNotFoundException e){ javax.swing.JOptionPane.showMessageDialog(this, “FileNotFoundException: Could not […]