@@ -49,7 +49,7 @@ public MainFrame() {
4949 // Checkbox
5050 JPanel checkPanel = setUpPanel (2 );
5151
52- resizable = new JCheckBox ("Resizable via mouse and maximize/restore button" );
52+ resizable = new JCheckBox ("Resize with mouse and maximize/restore button" );
5353 resizable .setFocusable (false );
5454 resizable .setOpaque (false );
5555 resizable .addActionListener (this );
@@ -79,11 +79,9 @@ public void actionPerformed(ActionEvent e) {
7979 widthSize = Integer .parseInt (widthTextField .getText ().replaceAll ("\\ s" , "" ));
8080 heightSize = Integer .parseInt (heightTextField .getText ().replaceAll ("\\ s" , "" ));
8181 } catch (Exception exception ) {
82- JOptionPane .showMessageDialog (null ,
83- String .format (
84- "Textfields/textboxes cannot be empty nor have any letters, decimals, symbols, or a number larger than %s!" ,
85- Integer .MAX_VALUE ),
86- "CANNOT RESIZE" , JOptionPane .ERROR_MESSAGE );
82+ JOptionPane .showMessageDialog (null , String .format (
83+ "Empty textfields/textboxes, letters, decimals, symbols, or numbers larger than %s are not allowed!" ,
84+ Integer .MAX_VALUE ), "CANNOT RESIZE" , JOptionPane .ERROR_MESSAGE );
8785 } finally {
8886 this .setSize (widthSize , heightSize );
8987 }
0 commit comments