Category: dialog

How would I implement stackoverflow’s hovering dialogs?

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 […]

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{ fos = new; baos = new; oos = new; oos.writeObject((Object)tl.entities); baos.writeTo(fos); oos.close(); fos.close(); baos.close(); }catch( e){ javax.swing.JOptionPane.showMessageDialog(this, “FileNotFoundException: Could not […]