Missing repaint()

Hi
I am making a GUI for the movement of a virtual robot in a maze... the function is supposed to refresh the position after making a change in position by calling repaint()
but the updation of the GUI takes place only after the whole traversal is done...
the decision for the new position is taking place in a different class which has a reference to the Frame which has the reference to a canvas...
on placing out.println() in paint I found that it was being run only in the end...
I m totally at loss of understanding as to how to rectify it ..
Urgent help is needed
Thanx for helping...
Amit

post a simplified version of your code so we can all ponder it. If your code is properly written, the only reason this would be happening is if the movements happens so damn fast, the first time it actually repaints all thestransitions are complete. If that's the case, sleep the thread for a few milliseconds to give repaint a chance to do it's repaints

Similar Messages

  • JTree Display keeps Repainting and Missing Information

    I have a JTree that has objects for each node. When I try to send regular Text in the toString of the object, I have no issues with the display of the Tree. When I send HTML, the screen has issues with the repaint?? I expand the Tree and some of the rows are missing.. Anyone had this experience before.
    public String toString() {
    String Display = "<html><body><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td width=\"160\">"+category+"</td><td width=\""+(MaxWidths[1]*6)+"\">"+problem+"</td><td width=\""+(MaxWidths[2]*6)+"\">"+goal+"</td><td width=\""+(MaxWidths[3]*6)+"\">"+parameter+"</td></tr></table></body></html>";
    return(Display);
    I am using tables to format the width of the columns. Does someone else use a different formating method?

    1. set the height of rows to a value of less than or equal 0 so that the renderer is used to determine the rowheight of each row (note that for rendering purposes the tree is mapped on rows. Use
    JTree.setRowHeight(0);for setting the row height.)
    2. ensure that the renderer calculates the height of each cell correctly. I think you shouldn't have to when using JLabel or subclasses as renderers...
    Regards,
    Fritz

  • Problem with window repaint and scrollbars in edit mode (LabVIEW 8.0.1)

    I am running LabVIEW 8.0.1 in Windows XP SP3.  For my main VI, I ran into a strange problem about 5 months ago.  The front panel window - in both edit mode and run mode - stopped repainting itself on the right side which is most visible when you scroll up and down, but also visible with overlapping windows.  Coincident with the repaint problem, both scrollbars look disabled with greyed-out arrows and no boxes in the bars that you can click and drag to scroll the window.  The scrollbars still partially work if you hover the mouse over them and roll the mouse wheel but clicking and dragging doesn't work. 
    The front panel has lots of controls and indicators including tab-control containers and is larger in the horizontal and vertical directions so both scrollbars should be active.  But I deleted all elements on the front panel and everything in the block diagram and the problem persists.  So the problem is not directly related to some control/indicator display.
    I saved the simple VI with this problem (using a wide text line and a tall rounded box to test), then created a new VI and copied the two elements to the new VI.  This new VI does not have the repaint and scrollbar problem.  The two VIs differ slightly in memory usage and in revision number (the bad one is revision 1785 and the good one is revision 3), but otherwise the two VIs are identical.  I attached both VIs to this posting.  When you first open the bad VI, you'll see the disabled scrollbars whereas the good VI has active scrollbars.  To replicate the repaint problem, scroll the window up and down with your mouse wheel.  If it's fine when you first open the VI, click on another window, then click back on the VI window and try the mouse wheel again.  This clicking-away-and-back always causes the repaint problem for me.  I tried the VIs on two different computers both running Windows XP SP3 and LabVIEW 8.0.1 with identical results.
    Here's what I discovered from troubleshooting with the simple VIs:
    * scrollbars always disabled
    * repaint problem in main window for window widths larger then 680 pixels
    * repaint problem in main window menu toolbar for widths larger than 646 pixels
    * entire window becomes disabled for window widths larger than 1348 pixels
    * can repaint window by minimizing and restoring, but only repaints that one time
    * scrollbar boxes sometimes flicker into view but then disappear
    * scroll left and right by hovering mouse over horizontal scrollbar and using mouse wheel
    I found something similar on this forum (thread: Problem with front panel refresh) - it might be related to the CAR about the panel being offset internally.  I don't have access to LabVIEW 8.5 or later and don't plan to upgrade - I haven't tried the trial version as that user did.  I could try to copy and paste my entire block diagram to a new VI but the VI is so large I'm afraid something would break, plus I don't want this to happen again in a few months.  The problem seemed to occur after a certain number of saves (or revision number).  I save backup copies often and when the problem first happened, I was able to go back to a previous version, make the missing changes and save it with no problems, but this only delayed the problem and it came up later.  So maybe it's the revision number.  It didn't seem related to a particular addition or modification in the front panel or diagram.
    The image attached shows the repaint and scrollbar problems in the bad VI.
    This brings up a question I have - if this problem is a bug and was fixed in 8.5 and later, is there a way to apply bug fixes to earlier versions?  Or do I have to pay for an upgrade to fix such bugs?
    Solved!
    Go to Solution.
    Attachments:
    RepaintTest_Bad.gif ‏27 KB
    Test Repaint - From Bad VI, scrollbar and repaint problems.vi ‏7 KB
    Test Repaint - From Blank VI, no problems.vi ‏5 KB

    Seems something got corrupted with this VI. Copy things over to a fresh VI and things should be OK.
    See also this recent report of a similar issue.
    LabVIEW Champion . Do more with less code and in less time .

  • "Java-Bean: True" missing after being packed in jar file

    Hi All
    X86, Windows XP Professional, J2SDK 1.4.2
    I complied a section of code ", which is from << Thinking In Java>>(3rd).
    Created a manifest file "BangBean.tmp"
    <<
    Name: bangbean/BangBean.class
    Java-Bean: True
    >>
    And then packed class files into "BangBean.jar" with command
    "jar cfm BangBean.jar Bang BangBean.tmp bangbean".
    It's puzzling that "Java-Bean: Ture" was missing in the "BangBean.jar/META-INF/MENIFEST.MF" .
    <<
    Manifest-Version: 1.0
    Created-By: 1.4.2 (Sun Microsystems Inc.)
    Name: bangbean/BangBean.class
    >>
    What's more, after altering the"BangBean.tmp" into this
    <<
    Java-Bean: True
    Name: bangbean/BangBean.class
    >>
    and had a another try.
    I got a jar file with such MENIFEST.MF.
    <<
    Manifest-Version: 1.0
    Created-By: 1.4.2 (Sun Microsystems Inc.)
    Java-Bean: True
    Name: bangbean/BangBean.class
    >>
    This jar file worked well in BDK's beanbox.
    I've test it with JSDK 1.5.0, the same thing happened.
    And I didn't encounter such problem in other bean programs.
    I've searched " 'Java-Bean: True' missing " with google, but didn't get proper answers.
    Is there anybody who can give a prompt about why this happend?
    Thanks a lot for your help!
    code
    //: bangbean:BangBean.java
    // A graphical Bean.
    package bangbean;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.util.*;
    import com.bruceeckel.swing.*;
    public class
    BangBean extends JPanel implements Serializable {
    private int xm, ym;
    private int cSize = 20; // Circle size
    private String text = "Bang!";
    private int fontSize = 48;
    private Color tColor = Color.RED;
    private ActionListener actionListener;
    public BangBean() {
    addMouseListener(new ML());
    addMouseMotionListener(new MML());
    public int getCircleSize() { return cSize; }
    public void setCircleSize(int newSize) {
    cSize = newSize;
    public String getBangText() { return text; }
    public void setBangText(String newText) {
    text = newText;
    public int getFontSize() { return fontSize; }
    public void setFontSize(int newSize) {
    fontSize = newSize;
    public Color getTextColor() { return tColor; }
    public void setTextColor(Color newColor) {
    tColor = newColor;
    public void paintComponent(Graphics g) {
    super.paintComponent(g);
    g.setColor(Color.BLACK);
    g.drawOval(xm - cSize/2, ym - cSize/2, cSize, cSize);
    // This is a unicast listener, which is
    // the simplest form of listener management:
    public void addActionListener(ActionListener l)
    throws TooManyListenersException {
    if(actionListener != null)
    throw new TooManyListenersException();
    actionListener = l;
    public void removeActionListener(ActionListener l) {
    actionListener = null;
    class ML extends MouseAdapter {
    public void mousePressed(MouseEvent e) {
    Graphics g = getGraphics();
    g.setColor(tColor);
    g.setFont(
    new Font("TimesRoman", Font.BOLD, fontSize));
    int width = g.getFontMetrics().stringWidth(text);
    g.drawString(text, (getSize().width - width) /2,
    getSize().height/2);
    g.dispose();
    // Call the listener's method:
    if(actionListener != null)
    actionListener.actionPerformed(
    new ActionEvent(BangBean.this,
    ActionEvent.ACTION_PERFORMED, null));
    class MML extends MouseMotionAdapter {
    public void mouseMoved(MouseEvent e) {
    xm = e.getX();
    ym = e.getY();
    repaint();
    public Dimension getPreferredSize() {
    return new Dimension(200, 200);
    } ///:~
    ************************************************

    Since you didn't use code-formatting tags ([ code ] and [ /code ] without the spaces) it's kinda hard to look at it. But I'm sure it DID execute much more than just the return statement - maybe you're not closing a file or db connection, or maybe you're seeing a cached page, so it actually isn't executing ANYTHING on the server (is your browser set to never check for newer pages so it (almost) always returns from cache, for example?)

  • White windows, missing components

    I really was trying to get a solution for my problem:
    searched forums and in java2d faq:
    "Why are my Swing components not displaying properly? Why are they showing up as white windows instead? How do I fix this?"
    -the funny thing is, it was missing the answer in the faq :)
    My problem is that if I create a new Window from a MyFrame extends Frame class's function, the windows will not display correctly until the function is doing other stuff
    Demonstrative code:
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    public class WindowAndWindow extends JFrame {
         WindowAndWindow() {
              super();
              getContentPane().setLayout(new FlowLayout());
              getContentPane().add(new Label("hello baby"));
              addWindowListener(new WindowAdapter() {
                   public void windowClosing(WindowEvent we) {
                        exit();
              pack();
              setLocationRelativeTo(null);
              show();
         void exit() {
              JWindow WaitWin=new JWindow();
              WaitWin.getContentPane().setLayout(new FlowLayout());
              WaitWin.getContentPane().add(new JLabel("Please wait"));
              WaitWin.pack();
              WaitWin.setLocationRelativeTo(this);          
              WaitWin.show();          
              try {
              Thread.sleep(5000);
              } catch(Exception e) {}     
              System.exit(0);
         public static void main (String args[]) {
              new WindowAndWindow();
    I want WaitWin to get displayed as soon as I press the X button on the Frame's upper right corner (exit() function get's called). But it only comes up as a white rectangle displaying nothing until the 5 seconds of sleep finish.
    What I really want to know, is when does a window get displayed? I thought calling show() immediately displays it (I tried repaint, setvisible etc too).
    How can I achieve what I want? Do I need to create a new thread that creates and displays the window while other stuff are running from the calling function?
    I need some self-education about how these top lever containers (and the java thread mechanism) function, do you know any good reads?
    Thank you!
    Sean

    Hello,
    I found something about that stuff:
    http://www.ictp.trieste.it/~manuals/programming/Java/tutorial/uiswing/misc/threads.html
    The problem is that there is too much code in the event method, so there will be a problem within the event thread, because it is not able to handle all the code. To solve that problem on the page they create a class "SwingWorker". The link is:
    http://www.ictp.trieste.it/~manuals/programming/Java/tutorial/uiswing/misc/example-swing/SwingWorker.java
    So with this class it works fine, the JFrame is closed and for five seconds the JWindow with the message "Please wait" is displayed:
    import java.awt.FlowLayout;
    import java.awt.Label;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JWindow;
    public class WindowAndWindow extends JFrame {
    WindowAndWindow() {
    super();
    getContentPane().setLayout(new FlowLayout());
    getContentPane().add(new Label("hello baby ;-)"));
    addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent we) {
    final SwingWorker worker = new SwingWorker() {
    public Object construct() {
    // JFrame WaitWin = new JFrame();
    JWindow WaitWin = new JWindow();
    WaitWin.getContentPane().setLayout(new FlowLayout());
    WaitWin.getContentPane().add(new JLabel("Please wait"));
    WaitWin.pack();
    WaitWin.setLocationRelativeTo(WindowAndWindow.this);
    WaitWin.toFront();
    WaitWin.show();
    try {
    Thread.sleep(5000);
    } catch (Exception e) {
    System.out.println(e.toString());
    System.exit(0);
    return WaitWin;
    worker.start();
    pack();
    setLocationRelativeTo(null);
    show();
    public static void main(String args[]) {
    javax.swing.SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    new WindowAndWindow();
    protected void finalize() throws Throwable {
    super.finalize();
    I hope this will help you,
    Xarena

  • Firefox missing mouse clicks

    I have updated both my desktop (Win7) and my laptop (WinXP) to Firefox 9.0.1 (from 8.0) and both are suffering from this issue.
    about 99% of my left mouse clicks seem to get ignored, but middle and right are both perfectly find. Left button operates correctly in all other programs.
    The mouse works correctly in the taskbar/menus/tab bar/scroll bar, but stops as soon as I am inside the page display area.
    Sometimes if I click continuously for 10 seconds I get an ok click, or sometimes I have to use a different program for a minute and then come back, then I can get 1 or 2 clicks before it stops working.
    Currently navigating using tab, and shift+tab.
    This is very very annoying, has anyone else noticed this after update? or have any ideas?

    garry wrote:
    My current issue is that if the simulator is frozen (system time is cycling within a 100ms window) mouse clicks on buttons are getting lost.OK that's an entirely different kettle of fish. Firing an action does require that the mouseReleased be later than the mousePressed, and that both be over the button.
    Consider ths scenarion in any normal application that doesn't interfere with the system time. The user presses the mouse over some other component, drags over to the button and releases it. Next, the user presses the mouse over the button, drags off the button and then releases it. This isn't supposed to trigger the button's ActionListener#actionPerformed.
    With the system time looping, how does the runtime know that this isn't the case?
    I can see the button border change when I move the mouse over the button,that's rollover, triggered from mouseEntered. timing is not an issue.
    but the mouse click is lost (button does not get depressed).See above.
    Sometimes it works fine for a few mouse clicks and other times several mouse clicks will be lost in a row.See above.
    It seems random.In a way, it is.
    This seems to be more prevalent with buttons than capturing a mouse click on a panel where I do 2D drawing. Not sure why.Could be just human susceptibility to guesswork, or may actually have something to do with the occasional additional processor cycles involved in the custom painting. Since you haven't described the frequency of repainting nor its complexity, that guess is my susceptibility to guesswork ;)
    When I put the simulator into Run mode, it works perfectly, never missing a click.Of course it will.
    Anyone out there have any insights into what might be going on under the hood inside Java/Swing with mouse events and the system clock?See above.
    db

  • Repainting help needed!  vm option nopaint?

    I have a Swing app that has some substantial painting/repainting issues. Basically, I have an MDI app (JDesktopPane with several JInternalFrames). When each JInternalFrame is brought up (selected via a JTree node), everything looks fine, but if it is moved, then painting problems galore (edge of the frame trails, along with buttons close to the edge of the frame). When the moving stops, there are still painting issues (buttons and edge of the frame are still messed up).
    There are also problems with JDialogs (message boxes) that pop up on the screen. For example, when an error or other problem occurs (and can be addressed by the user), I have a JDialog pop up, ala JOptionPane.showMessageDialog(.....), etc... These dialogs are 'owned' by each JInternalFrame. Well, sometimes (not all) the edges of the frame will be missing, and even sometimes the message within the dialog will be missing.
    It has been a while since I have wrote a Swing app (couple years), but I seem to remember that there was a VM parameter of some sort that really aided with repainting glitches like this. I thought it was called nopaint or norepaint or something like that, but when I searched on it, I could find nothing of the sort. Anyone know what I am referring to?
    I realize that not having code to see presents somewhat of a barrier to helping in a situation like this, but I am not sure what code to post considering that there seems to be a lot of this problem in my app.
    If anyone has any suggestions, I would greatly appreciate it!

    Thanks for the suggestion, but unfortunately that's not it.
    I actually don't override any paint related methods (which admittedly may be part of the solution). In the few Swing apps that I have developed in the past, I never overrode any paint related methods. The problems that I had in the past were solved by calling (re)validiate() and repaint(). I also could have sworn that some of these problems were resolved by the phantom vm option that I mentioned above.
    I have used repaint and revalidate generously in this app. I have also checked the opacity of the components as well.

  • Missing pieces of components (JFileChooser, JButtons, etc) help?

    The normal window in the GUI i'm working on, works fine. When i bring up a new NetFrame (e.g. preferences) the components aren't drawn completely. None of the 3 buttons show up, a few check boxes in a tabbed pane show up (not all of them), etc. When i click where a button should be, it appears. When i switch to the other tab in the pane, its contents appear (except for a small missing bottom right corner of the border for a jtextarea), and when i switch back to the first tab, all of its contents appear. When i resize the panel, everything shows up.
    I've tried calling validate, revalidate, validateTree, repaint, show, pack, none of them do anything (pack rearranges things, but nothing new appears).
    I'm completely out of ideas!
    A previous version of the program works fine, so it is something wrong with my code (i.e. not my computer / packages etc).
    The thing that really stumps me, is that a JFileChooser appears incomplete -- only showing the file browser section, and the okay button (missing cancel button, and borders etc).
    I'm sorry i don't have any sample code to show, there too much to put it all, and i have no idea where the problem is.
    I'd appreciate any help or direction you have. THANKS!

    possibly related
    [http://forums.sun.com/thread.jspa?threadID=780103]

  • Repaint very slow!

    I am testing a few applets in Mac OS X and consitently finding that repainting is extremely
    slow. I am using IE 5.1 and OS X 10.1.5.
    The applets run no problems in Windows and Mac OS 9.2. When I am calling repaint as part of a
    MouseEvent, where it gets called many times a second, the performance gets specially poor.
    Does anyone else have similar problems? Is there a solution?
    Thanks!

    I have the same problem.
    When my applet is loaded, some images are missing : they are repainted only when an event is triggered.
    This happens particulary when I implement a double buffer (like sliders...).
    Who knows how to have a clean repaint for my double buffered image on Mac OS X?
    Thank you,
    Christophe.

  • Missing Grid!!

    Hi guys, my grid is missing! i'm currently working on a game, and tried adding menu control buttons; the menu buttons work well, but my grid is now missing!!
    This is really both funny and frustrating.. can anyone tell me what's missing with my code?
    i've already tried to make it as short as possible without actually missing out vital parts of the program (i hope they all are), so please bear with me if it's a bit long.. thanks!
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.awt.GridLayout;
    public class Test extends JFrame implements ActionListener {
    JPanel pane = new JPanel();
    JMenuBar m = new JMenuBar();
    JMenu o = new JMenu("Turns");
    JMenu l = new JMenu("View");
    JMenu h = new JMenu("Help");
    JMenuItem jhelp = new JMenuItem("Help");
    JMenuItem jclassic = new JMenuItem("Classic");
    JMenuItem jmetal = new JMenuItem("Metal");
    JMenuItem jbasic = new JMenuItem("Basic");
    JMenuItem p1 = new JMenuItem("Player 1");
    JMenuItem p2 = new JMenuItem("Player 2");
    JButton b1 = new JButton("");
    JButton b2 = new JButton("");
    JButton b3 = new JButton("");
    JButton b4 = new JButton("");
    JLabel blank = new JLabel("");
    public Test() {
    super("Test");
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    setSize(350, 400);
    setLocation(300,150);
    o.add(p1);
    o.add(p2);
    l.add(jmetal);
    l.add(jclassic);
    l.add(jbasic);
    h.add(jhelp);
    m.add(o);
    m.add(l);
    m.add(h);
    setJMenuBar(m);
    jmetal.addActionListener(this);
    jclassic.addActionListener(this);
    jbasic.addActionListener(this);
    jhelp.addActionListener(this);
    JPanel bottom = new JPanel();
    BorderLayout border = new BorderLayout();
    bottom.setLayout(new GridLayout(2,2));
    bottom.add(b4);
    bottom.add(b1);
    bottom.add(b2);
    bottom.add(b3);
    bottom.add(blank);
    pane.add(bottom);
    setVisible(true);
    public void actionPerformed(ActionEvent evt) {
    Object source = evt.getSource();
    if (source == jmetal) {
    try {
    UIManager.setLookAndFeel(
    "javax.swing.plaf.metal.MetalLookAndFeel");
    SwingUtilities.updateComponentTreeUI(this);
    } catch (Exception e) { }
    if (source == jbasic) {
    try {
    UIManager.setLookAndFeel(
    "javax.swing.plaf.basic.BasicLookAndFeel");
    SwingUtilities.updateComponentTreeUI(this);
    } catch (Exception e) { }
    if (source == jclassic) {
    try {
    UIManager.setLookAndFeel(
    UIManager.getSystemLookAndFeelClassName());
    SwingUtilities.updateComponentTreeUI(this);
    } catch (Exception e) { }
    if (source == jhelp) {
    JOptionPane.showMessageDialog(null,"Test.");
    repaint();
    public static void main(String[] arguments) {
    TestHotelo frame = new TestHotelo();
    }really need help.. thanks a lot!

    oh, right, you don't.. already removed it and simply used bottom JPanel.. thanks!
    and i found the answer to my prob.. searched for methods and i came across this one:
    this.getContentPane().add(bottom); my code's running great now; sorry for that.. i guess i was just too tired i panicked when my grid disappeared and couldn't find the answer right away.. thanks a lot anyway..
    ..and i'll try to add more details next time as well.. :p

  • Repaint issue

    Hi,
    I got an annoying problem.
    I use some JComponents for JScrollPanes RowHeader and ColumnHeader.
    So far so good.
    Those components paintComponent method paint a buffered image on the whole are...
    It implement a kind of ruler...
    If i set the zoom factor of the ruler to a new value and force to redraw the ruler, the ruler
    ist drawn correct on the current visible area of the HeaderView... but if i scroll around
    the previous not visible areas of the HeaderView are empty.
    Only if i move the mouse onto the JViewport of the scroll pane the ruler is draw on those
    areas too. Any ideas?
    I implemented many listeners for the scrollpane to call repaint on the header view components but
    without any success...
    here are some code snippets :
    protected void createRuler() {
                ruler = GraphicsUtilities.createCompatibleTranslucentImage(curW, height);
                Graphics2D g2d = ruler.createGraphics();
                int unitInc = 0;
                // Setze Schrift
                g2d.setFont(font);
                g2d.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,
                        RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
                g2d.setColor(Color.BLACK);
                g2d.drawLine(0, height - 2, curW, height - 2);
                // paint the ticks
                for (int i = 0; i < curW; i += minTGap) {
                    if ( i % unit == 0 ) {
                        tH = height;
                        g2d.drawString(Integer.toString(unitInc), i + 2, fontH - 2);
                        unitInc += Math.round(unit / zoom);
                    else if ( i % majTGap == 0 ) {
                        tH = majTH;
                    else if ( i % midTGap == 0 ) {
                        tH = midTH;
                    else {
                        tH = minTH;
                    g2d.drawLine(i, height - 2, i, height - Math.round(tH) - 2);
                g2d.dispose();
    @Override
            protected void paintComponent(Graphics g) {
                super.paintComponent(g);
                g.drawImage(ruler, 0, 0, null);
                // pointer for the current mouse position
                g.drawImage(pointer, pointerPosH, pointerPosV, null);
            }The ruler class extends JLabel
    regards,
    Olek

    OK, here is what I see from your code:
    You have an override of your paintComponent, but in that method I see where you paint your ruler and your cursor; what I don't see if where you paint your base image. What I generally see in the overridden graphic container is:
    1--Base Image display code
    2--Overlay of ruler
    3--other code.
    or
    a painting of an already rendered Image when using offscreen rendering. I don't see your base image rendering any where. This, coupled with your problem, tells me that you don't have an execution path, for your image painting/refresh, that is consistent in your application--you're missing part of your task when you get a request for screen updates from some of your events.

  • Repaint problems with an applet under Netscape 4.75

    Hello,
    I'm currently working on an applet created with VisualAge for Java, running under the standard Netscape 4.75 JVM, with Windows NT4.
    I am experiencing problems with AWT components which randomly disappear, especially Labels and sometimes Panels. When I drag a window over the missing label and then drag it back, the label appears.
    I have tried a lot of combinations with the repaint(), paint(), paintAll() and paintComponents() methods, but it has not been efficient for the moment. Introducing lots of repaint() calls on the concerned labels is even worse.
    Is there a known bug in the Netscape 4.75 JVM concerning this problem ? Do you have an idea of what can be done to solve this problem ? Changing the JVM is not an option that can be chosen. Netscape 4.75 has been defined as the only browser for the whole project.
    Thanks for your help !
    Kevin

    Well, I finally solved this problem.
    For your information, the JVM included in Netscape 4.75 running under NT4 does not like having AWT labels with either Background or Foreground not initialised. If any of these 2 properties is not defined, it could sometimes occur that the JVM can't display the label.

  • Preventing applet from repainting/refreshing on resize

    hi,
    anyone has any idea on how one can prevent an applet from repainting the GUI screen when the applet is resized (minimized, maximized etc). i have a chat applet, but whenever the applet is minimized, all the present chat transcripts are lost and a new/refreshed window is displayed. how can we prevent this from happening? in effect, i want my applet to be displayed in the same state as it was before it was minimized.
    is there something i am missing?
    thanks,
    Satyen

    hi all,
    is this doubt really difficult, or i am missing something so very obvious, that no one out there wants to point it out.
    any suggestions would be very helping. and please, i am not looking for code snippets, any pointers/suggestions to the solution of the problem would suffice.
    thanks,
    Satyen.

  • Chunks of graphics missing

    G'day folks,
    I have written a program which uses a gui, which is a number of JTabbedPanes with JPanels etc, I have the repaint() in there and the program works beautifully on the 8 different computers that I have tested it on which runs from a P150 on Win98SE to a P1.7 on XP, all have jre1.4.1_01, I am having trouble with one particular computer which is a dell P!!!833 with 256 MBRAM running on WinMe. When you click on any tab, the titles of the other tabs dissappear and chunks of graphics go missing (sometimes textfields, labels, whole/parts of panels), I have run it from the command line and there is no exceptions thrown when this is happening so I don't think it is a problem with the program(plus the fact that it works perfectly on 8 other computers). I dug through the archives and found a reference to problems with sony viao products whcih people reported as having problems with getting the blue death screen and they decided that this was due to some of the ATI chips and the 3d graphics in java not working coherently, however the symptoms are different, there is no blue death screen only chunks of graphics missing.
    The said computer runs all windows based programs flawlessly, it is only with java (but there are no exceptions thrown, which is wierd cause I've written stuff where there are graphics errors e.g. making a tabbedpane as the contentpane and then when you switch between tabs you get a whole buch of paintcomponent errors etc - there is none of this).
    I've basically narrowed it down to being a problem with this one computer and was wondering if anyone could maybe shed some light on the more technical systems networking or any other suggestions!
    the said computer has an ATI mobility Rage 128 graphics chip.
    Thanks alot for your help,
    Oz!!!!!!

    If it runs fine on 8 other computers, that should pretty much tell ya there's some problem with the video of the problem machine.
    A simple test is to right-click on screen and bring up screen Properties, go into Settings, then Advanced, then Troubleshooting panel and turn "Hardware Accelaration" all the way down.
    Usually that will fix such problems, and if it does, points to a problem in the video drivers having bugs in that machine. If that does fix it, you can try updating the Video drivers and see if that works.

  • Partner application configuration is missing error on SSO login page

    We have APEX 3.1.2 setup as a partner application and an application within APEX setup to use SSO for authentication. Following a link to the APEX application redirects to the Single Sign-On page, as it should, but it also shows "Error: The partner application configuration is missing or expired." I type in my password and username, click the Login button, and (if I entered my username and password correctly, of course!) then the APEX application is shown. So, I cannot figure out why we're getting the no_papp_err error and I have not found any solutions to that issue on Metalink or anywhere else on the Internet. Any ideas? I'm concerned that we have a misconfiguration somewhere that is causing this error and will affect any other partner application we setup in the future.
    We're on Oracle Portal 10.1.4, SSO 10.1.2, and SSL is setup on both infra and mid tiers.

    Did you try checking the partner application entries on the SSO-login server page?
    please login as orcladmin or some other user with membership in, i beleive, iasadmins group. verify that for this partner application, what you see here corresponds to the application URL. it looks like your login page call may have issues. so check for login url too.
    also check the ORASSO.WWSSO_LS_CONFIGURATION_INFO$ for entries corresponding to Apex application.

Maybe you are looking for

  • Upgradable? Help me please.. stressed now!! =(

    hi.. i have a question here.. im using Windows XP now.. and there r many errors and spywares now.. so i plan to reformat it or maybe upgrade to Windows Vista.. is this possible? and how can i upgrade my HDD? 80GB is too small for me.. and the graphic

  • Itunes Library Loaded on My Old HD

    I just installed my old HD which contains my 100's of Itunes songs on my new home PC next my new HD. I want to go back to having my Ipod automatically synchronize with my Nano, rather than running in Manual Mode. When I click on Edit/Preferences/Adva

  • [svn] 4875: Adding support for multiple @productversion tags

    Revision: 4875 Author: [email protected] Date: 2009-02-06 08:31:48 -0800 (Fri, 06 Feb 2009) Log Message: Adding support for multiple @productversion tags QE Notes: None. Doc Notes: None Bugs: SDK-19104 tests: checkintests Ticket Links: http://bugs.ad

  • Is cloud computing just a way of renting resources?

    The company I work at recently hosted a web service in Windows Azure and announced that. Now trade online magazines say lots of meaningless stuff like "company X moves to the cloud", "company X drops desktops for the cloud", etc. Looks like there're

  • Digital camera?

    hi I'm a bit new to this whole video jiggerypokery- namely because I've been unable to get anything I've videoed onto iMovie. is it possible to use a video from an ordinary digital camera as I cant afford to go out and buy an new video camera just fo