Logo Search packages:      
Sourcecode: fex version File versions  Download package

void fix::ErrorWindow::setSize ( String  m  )  [inline]

This method sets the ErrorWindow's size matching to the message displayed.

m The message to be displayed.

Definition at line 180 of file ErrorWindow.java.

Referenced by setMess().

            FontMetrics fm = getFontMetrics(messLabel.getFont());
            int width = fm.stringWidth(mess) + 40;
            setSize(width, this.getHeight());

Generated by  Doxygen 1.6.0   Back to index