Commit 2526faff authored by claes's avatar claes

Component repaint() used to redraw

parent 744d702d
/*
* Proview $Id: GeDynAnalogShift.java,v 1.3 2005-11-02 14:02:18 claes Exp $
* Proview $Id: GeDynAnalogShift.java,v 1.4 2005-11-04 11:40:46 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -19,6 +19,8 @@
package jpwr.jop;
import jpwr.rt.*;
import java.awt.*;
import javax.swing.*;
public class GeDynAnalogShift extends GeDynElem {
String attribute;
......@@ -82,6 +84,10 @@ public class GeDynAnalogShift extends GeDynElem {
break;
}
}
if ( dyn.repaintNow) {
((JComponent)dyn.comp).repaint();
dyn.repaintNow = false;
}
if ( firstScan)
firstScan = false;
}
......
/*
* Proview $Id: GeDynDigShift.java,v 1.2 2005-09-01 14:57:50 claes Exp $
* Proview $Id: GeDynDigShift.java,v 1.3 2005-11-04 11:41:13 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -19,6 +19,8 @@
package jpwr.jop;
import jpwr.rt.*;
import java.awt.*;
import javax.swing.*;
public class GeDynDigShift extends GeDynElem {
String attribute;
......@@ -75,6 +77,8 @@ public class GeDynDigShift extends GeDynElem {
dyn.comp.setFirstPage();
dyn.repaintNow = true;
}
if ( dyn.repaintNow) // Test
((JComponent)dyn.comp).repaint();
oldValue = value0;
}
}
......
/*
* Proview $Id: GeDynAnalogShift.java,v 1.3 2005-11-02 14:02:18 claes Exp $
* Proview $Id: GeDynAnalogShift.java,v 1.4 2005-11-04 11:40:46 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -19,6 +19,8 @@
package jpwr.jop;
import jpwr.rt.*;
import java.awt.*;
import javax.swing.*;
public class GeDynAnalogShift extends GeDynElem {
String attribute;
......@@ -82,6 +84,10 @@ public class GeDynAnalogShift extends GeDynElem {
break;
}
}
if ( dyn.repaintNow) {
((JComponent)dyn.comp).repaint();
dyn.repaintNow = false;
}
if ( firstScan)
firstScan = false;
}
......
/*
* Proview $Id: GeDynDigShift.java,v 1.2 2005-09-01 14:57:50 claes Exp $
* Proview $Id: GeDynDigShift.java,v 1.3 2005-11-04 11:41:13 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -19,6 +19,8 @@
package jpwr.jop;
import jpwr.rt.*;
import java.awt.*;
import javax.swing.*;
public class GeDynDigShift extends GeDynElem {
String attribute;
......@@ -75,6 +77,8 @@ public class GeDynDigShift extends GeDynElem {
dyn.comp.setFirstPage();
dyn.repaintNow = true;
}
if ( dyn.repaintNow) // Test
((JComponent)dyn.comp).repaint();
oldValue = value0;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment