Skip to content
Snippets Groups Projects
Commit db4853b5 authored by Arthur Coolen's avatar Arthur Coolen
Browse files

Task #1771: minor changes

parent 3ecc0cc3
No related branches found
No related tags found
No related merge requests found
<?xml version="1.0" encoding="UTF-8" ?> <?xml version="1.1" encoding="UTF-8" ?>
<Form version="1.3" maxVersion="1.3" type="org.netbeans.modules.form.forminfo.JPanelFormInfo"> <Form version="1.3" maxVersion="1.3" type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
<AuxValues> <AuxValues>
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<EmptySpace max="-2" attributes="0"/> <EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0"> <Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0"> <Group type="102" alignment="0" attributes="0">
<Component id="calendar" pref="294" max="32767" attributes="1"/> <Component id="calendar" pref="365" max="32767" attributes="1"/>
<EmptySpace max="-2" attributes="0"/> <EmptySpace max="-2" attributes="0"/>
</Group> </Group>
<Group type="102" alignment="0" attributes="0"> <Group type="102" alignment="0" attributes="0">
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
<Group type="102" alignment="1" attributes="0"> <Group type="102" alignment="1" attributes="0">
<Group type="103" groupAlignment="0" attributes="0"> <Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0"> <Group type="102" attributes="0">
<Component id="jLabel1" pref="52" max="32767" attributes="0"/> <Component id="jLabel1" pref="120" max="32767" attributes="0"/>
<EmptySpace min="-2" pref="44" max="-2" attributes="0"/> <EmptySpace min="-2" pref="44" max="-2" attributes="0"/>
</Group> </Group>
<Group type="102" alignment="0" attributes="0"> <Group type="102" alignment="0" attributes="0">
......
...@@ -42,7 +42,7 @@ import javax.swing.event.EventListenerList; ...@@ -42,7 +42,7 @@ import javax.swing.event.EventListenerList;
* *
* Minor changes to adepts to LOFAR * Minor changes to adepts to LOFAR
*/ */
public class DateTimeChooser public final class DateTimeChooser
extends javax.swing.JPanel { extends javax.swing.JPanel {
...@@ -340,7 +340,7 @@ public class DateTimeChooser ...@@ -340,7 +340,7 @@ public class DateTimeChooser
try { try {
aD=aDate.parse(aS); aD=aDate.parse(aS);
} catch (ParseException ex) { } catch (ParseException ex) {
ex.printStackTrace(); System.out.println(ex.getMessage());
} }
DateTimeChooser.this.setDate(aD,false); DateTimeChooser.this.setDate(aD,false);
}//GEN-LAST:event_nowActionPerformed }//GEN-LAST:event_nowActionPerformed
......
<?xml version="1.0" encoding="UTF-8" ?> <?xml version="1.1" encoding="UTF-8" ?>
<Form version="1.5" maxVersion="1.7" type="org.netbeans.modules.form.forminfo.JFrameFormInfo"> <Form version="1.5" maxVersion="1.7" type="org.netbeans.modules.form.forminfo.JFrameFormInfo">
<Properties> <Properties>
......
...@@ -11,7 +11,6 @@ ...@@ -11,7 +11,6 @@
package nl.astron.lofar.lofarutils.inputfieldbuilder.test; package nl.astron.lofar.lofarutils.inputfieldbuilder.test;
import javax.swing.JFrame;
import javax.swing.JPanel; import javax.swing.JPanel;
/** /**
...@@ -126,6 +125,7 @@ public class inputFieldBuilderTest extends javax.swing.JFrame { ...@@ -126,6 +125,7 @@ public class inputFieldBuilderTest extends javax.swing.JFrame {
*/ */
public static void main(String args[]) { public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() { java.awt.EventQueue.invokeLater(new Runnable() {
@Override
public void run() { public void run() {
new inputFieldBuilderTest().setVisible(true); new inputFieldBuilderTest().setVisible(true);
} }
......
...@@ -47,6 +47,7 @@ public class remoteFile implements remoteFileInterface{ ...@@ -47,6 +47,7 @@ public class remoteFile implements remoteFileInterface{
itsName=ext; itsName=ext;
} }
@Override
public boolean deleteTempFile(String aFileName) throws RemoteException { public boolean deleteTempFile(String aFileName) throws RemoteException {
if (aFileName != null) { if (aFileName != null) {
try { try {
...@@ -60,7 +61,6 @@ public class remoteFile implements remoteFileInterface{ ...@@ -60,7 +61,6 @@ public class remoteFile implements remoteFileInterface{
} }
} catch (Exception ex) { } catch (Exception ex) {
System.out.println("RemoteFileImpl: " + ex.getMessage()); System.out.println("RemoteFileImpl: " + ex.getMessage());
ex.printStackTrace();
return false; return false;
} }
} else { } else {
...@@ -69,6 +69,7 @@ public class remoteFile implements remoteFileInterface{ ...@@ -69,6 +69,7 @@ public class remoteFile implements remoteFileInterface{
} }
} }
@Override
public byte[] downloadFile(String aFileName) throws RemoteException { public byte[] downloadFile(String aFileName) throws RemoteException {
if (aFileName != null) { if (aFileName != null) {
try { try {
...@@ -81,7 +82,6 @@ public class remoteFile implements remoteFileInterface{ ...@@ -81,7 +82,6 @@ public class remoteFile implements remoteFileInterface{
return(buffer); return(buffer);
} catch (Exception ex) { } catch (Exception ex) {
System.out.println("RemoteFileImpl: " + ex.getMessage()); System.out.println("RemoteFileImpl: " + ex.getMessage());
ex.printStackTrace();
return(null); return(null);
} }
} else { } else {
...@@ -90,6 +90,7 @@ public class remoteFile implements remoteFileInterface{ ...@@ -90,6 +90,7 @@ public class remoteFile implements remoteFileInterface{
} }
} }
@Override
public boolean uploadFile(byte[] buffer,String aFileName) throws RemoteException { public boolean uploadFile(byte[] buffer,String aFileName) throws RemoteException {
boolean succes=false; boolean succes=false;
if (buffer != null && aFileName.length() > 0) { if (buffer != null && aFileName.length() > 0) {
...@@ -103,7 +104,6 @@ public class remoteFile implements remoteFileInterface{ ...@@ -103,7 +104,6 @@ public class remoteFile implements remoteFileInterface{
return(true); return(true);
} catch (Exception ex) { } catch (Exception ex) {
System.out.println("RemoteFileAdapter: " + ex.getMessage()); System.out.println("RemoteFileAdapter: " + ex.getMessage());
ex.printStackTrace();
return(succes); return(succes);
} }
} else { } else {
......
...@@ -85,6 +85,7 @@ public abstract class AbstractValidator extends InputVerifier implements KeyList ...@@ -85,6 +85,7 @@ public abstract class AbstractValidator extends InputVerifier implements KeyList
* validationCriteria() instead. * validationCriteria() instead.
*/ */
@Override
public boolean verify(JComponent c) { public boolean verify(JComponent c) {
// System.out.println("AbstractValidator-entered verify. Component-"+ c.getName()+" popup.visible: "+popup.isVisible()); // System.out.println("AbstractValidator-entered verify. Component-"+ c.getName()+" popup.visible: "+popup.isVisible());
popup.setVisible(false); popup.setVisible(false);
...@@ -129,6 +130,7 @@ public abstract class AbstractValidator extends InputVerifier implements KeyList ...@@ -129,6 +130,7 @@ public abstract class AbstractValidator extends InputVerifier implements KeyList
* @see KeyListener * @see KeyListener
*/ */
@Override
public void keyPressed(KeyEvent e) { public void keyPressed(KeyEvent e) {
checkPopup(); checkPopup();
} }
...@@ -137,12 +139,14 @@ public abstract class AbstractValidator extends InputVerifier implements KeyList ...@@ -137,12 +139,14 @@ public abstract class AbstractValidator extends InputVerifier implements KeyList
* @see KeyListener * @see KeyListener
*/ */
@Override
public void keyTyped(KeyEvent e) {} public void keyTyped(KeyEvent e) {}
/** /**
* @see KeyListener * @see KeyListener
*/ */
@Override
public void keyReleased(KeyEvent e) {} public void keyReleased(KeyEvent e) {}
public boolean isVisible() { public boolean isVisible() {
......
...@@ -22,6 +22,7 @@ public class BoolValidator extends AbstractValidator { ...@@ -22,6 +22,7 @@ public class BoolValidator extends AbstractValidator {
super(parent, c, message); super(parent, c, message);
} }
@Override
protected boolean validationCriteria(JComponent c) { protected boolean validationCriteria(JComponent c) {
String input = ((JTextField)c).getText(); String input = ((JTextField)c).getText();
......
...@@ -21,6 +21,7 @@ public class BoolVectorValidator extends AbstractValidator { ...@@ -21,6 +21,7 @@ public class BoolVectorValidator extends AbstractValidator {
super(parent, c, ""); super(parent, c, "");
} }
@Override
protected boolean validationCriteria(JComponent c) { protected boolean validationCriteria(JComponent c) {
String input = ((JTextField)c).getText(); String input = ((JTextField)c).getText();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment