Public Member Functions | |
XmlValidatorFrame (String fileName) throws HeadlessException | |
void | writeLine (String s) |
void | setWarning () |
Package Attributes | |
final String | eol = System.getProperty("line.separator") |
JTextArea | report |
JTextAreaWriter | writer |
Definition at line 45 of file XmlValidatorFrame.java.
|
Creates a new
Definition at line 57 of file XmlValidatorFrame.java. References org.objectweb.cjdbc.console.wizard.XmlValidatorFrame.writeLine(). 00058 { 00059 super(WizardTranslate.get("init.validator.frame")); 00060 GuiConstants.centerComponent(this, WizardConstants.VALIDATOR_WIDTH, 00061 WizardConstants.VALIDATOR_HEIGHT); 00062 this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); 00063 report = new JTextArea(); 00064 writer = new JTextAreaWriter(report); 00065 report.setForeground(new Color(9498256)); 00066 this.getContentPane().add(report); 00067 this.pack(); 00068 this.setVisible(true); 00069 writeLine(WizardTranslate.get("init.validator.echo", fileName)); 00070 }
|
|
Append a line to the text area
Definition at line 77 of file XmlValidatorFrame.java. Referenced by org.objectweb.cjdbc.console.wizard.XmlWizard.validateDocument(), and org.objectweb.cjdbc.console.wizard.XmlValidatorFrame.XmlValidatorFrame(). 00078 { 00079 try 00080 { 00081 writer.write(s + eol); 00082 writer.flush(); 00083 report.repaint(); 00084 } 00085 catch (IOException e) 00086 { 00087 e.printStackTrace(); 00088 } 00089 }
|