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">
<AuxValues>
......@@ -20,7 +20,7 @@
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="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"/>
</Group>
<Group type="102" alignment="0" attributes="0">
......@@ -30,7 +30,7 @@
<Group type="102" alignment="1" attributes="0">
<Group type="103" groupAlignment="0" 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"/>
</Group>
<Group type="102" alignment="0" attributes="0">
......
......@@ -42,7 +42,7 @@ import javax.swing.event.EventListenerList;
*
* Minor changes to adepts to LOFAR
*/
public class DateTimeChooser
public final class DateTimeChooser
extends javax.swing.JPanel {
......@@ -340,7 +340,7 @@ public class DateTimeChooser
try {
aD=aDate.parse(aS);
} catch (ParseException ex) {
ex.printStackTrace();
System.out.println(ex.getMessage());
}
DateTimeChooser.this.setDate(aD,false);
}//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">
<Properties>
......
......@@ -11,7 +11,6 @@
package nl.astron.lofar.lofarutils.inputfieldbuilder.test;
import javax.swing.JFrame;
import javax.swing.JPanel;
/**
......@@ -126,6 +125,7 @@ public class inputFieldBuilderTest extends javax.swing.JFrame {
*/
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
@Override
public void run() {
new inputFieldBuilderTest().setVisible(true);
}
......
......@@ -47,6 +47,7 @@ public class remoteFile implements remoteFileInterface{
itsName=ext;
}
@Override
public boolean deleteTempFile(String aFileName) throws RemoteException {
if (aFileName != null) {
try {
......@@ -60,7 +61,6 @@ public class remoteFile implements remoteFileInterface{
}
} catch (Exception ex) {
System.out.println("RemoteFileImpl: " + ex.getMessage());
ex.printStackTrace();
return false;
}
} else {
......@@ -69,6 +69,7 @@ public class remoteFile implements remoteFileInterface{
}
}
@Override
public byte[] downloadFile(String aFileName) throws RemoteException {
if (aFileName != null) {
try {
......@@ -81,7 +82,6 @@ public class remoteFile implements remoteFileInterface{
return(buffer);
} catch (Exception ex) {
System.out.println("RemoteFileImpl: " + ex.getMessage());
ex.printStackTrace();
return(null);
}
} else {
......@@ -90,6 +90,7 @@ public class remoteFile implements remoteFileInterface{
}
}
@Override
public boolean uploadFile(byte[] buffer,String aFileName) throws RemoteException {
boolean succes=false;
if (buffer != null && aFileName.length() > 0) {
......@@ -103,7 +104,6 @@ public class remoteFile implements remoteFileInterface{
return(true);
} catch (Exception ex) {
System.out.println("RemoteFileAdapter: " + ex.getMessage());
ex.printStackTrace();
return(succes);
}
} else {
......
......@@ -85,6 +85,7 @@ public abstract class AbstractValidator extends InputVerifier implements KeyList
* validationCriteria() instead.
*/
@Override
public boolean verify(JComponent c) {
// System.out.println("AbstractValidator-entered verify. Component-"+ c.getName()+" popup.visible: "+popup.isVisible());
popup.setVisible(false);
......@@ -129,6 +130,7 @@ public abstract class AbstractValidator extends InputVerifier implements KeyList
* @see KeyListener
*/
@Override
public void keyPressed(KeyEvent e) {
checkPopup();
}
......@@ -137,12 +139,14 @@ public abstract class AbstractValidator extends InputVerifier implements KeyList
* @see KeyListener
*/
@Override
public void keyTyped(KeyEvent e) {}
/**
* @see KeyListener
*/
@Override
public void keyReleased(KeyEvent e) {}
public boolean isVisible() {
......
......@@ -22,6 +22,7 @@ public class BoolValidator extends AbstractValidator {
super(parent, c, message);
}
@Override
protected boolean validationCriteria(JComponent c) {
String input = ((JTextField)c).getText();
......
......@@ -21,6 +21,7 @@ public class BoolVectorValidator extends AbstractValidator {
super(parent, c, "");
}
@Override
protected boolean validationCriteria(JComponent c) {
String input = ((JTextField)c).getText();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment