String[] warnings = v.getMessages(); if (warnings.length == 0) System.out.println("<none>"); for (int j=0; j<warnings.length; j++){
final String[] warnings = v.getMessages(); if (warnings.length == 0) { System.out.println("<none>");
final String[] msgs = v.getMessages(); messagesTextPane.setBackground(msgs.length == 0 ? Color.green : Color.yellow); final StringBuilder allmsgs = new StringBuilder();
String[] msgs = v.getMessages(); messagesTextPane.setBackground(msgs.length == 0? Color.green : Color.yellow); String allmsgs = "";