RH8 repaint issue. Snippets?

A bug? in Windows XP? RH 8.01? Snippets?
Unable to get RH to open/activate any pods (TOC, glossary, etc) in current project. RH HTML project goes into "not responding" state and does not repaint (part of the pod is visble, but unable to activate it with the mouse or to view completely).
The only "new" thing in the project is snippets, which replaced text on a dozen or so topics.
Several snippets do contain a TABLE; the table cells accept special formatting, and they published OK).
Also, I notice that even the "normal" paragraph (which had 9pt above & below spacing) no longer publishes with the above/below spacing on some topics (even those not using a snippet).
Reapplied template and .css to ensure they're using the same files.
Restarted RH several times.

I love the way people throw the word "bug" around as soon as something doesn't work before even testing the same issue in another project. Can we gather some solid evidence first rather than jumping at some circumstantial evidence?
Please try using one of the sample projects. Same problem?
If yes, then try a different environment. After that post back and we'll take it from there.
See www.grainge.org for RoboHelp and Authoring tips
Follow me @petergrainge

Similar Messages

  • 1.4.2_02 repaint issues

    Hi. I have a swing app that is having repaint issues on 1.4.2_02. Things like table rows being added are not always showing unless a repaint is forced by dragging the window round. It all works perfectly well in 1.4.2_01. Anyone experiencing similar issues?
    Thanks
    Glyn

    You could try setting the environment variable LD_ASSUME_KERNEL to
    2.2.5 for linux threads with a floating stack or
    2.4.1 for linux threads with out a floating stack.
    See the release notes for Linux Red Hat 9. It mentions applications
    that do not work correctly with the new threading implementation - java.
    It says you 1.4 is ok but I found I need to set this var anyway.
    Good luck.
    Maryann

  • 1.4.2 beta still has repaint issues

    Sorry guys. I know I have kvetched about this time
    and again in these forums. I know that some of you
    have found workarounds and solutions to your similar
    problems, and I am happy for you.
    I had hoped that 1.4.2 would be be better, but I just
    tested the beta version and there is no difference.
    Here is a description of the problem. It is a complex
    applet. Components within components within components.
    Initially the applet paints itself fine, but once occluded,
    it will not repaint. The only exception is the lowest
    level imbedded components, which are components inside
    a JEditorPane and do repaint. Everything else in applet will
    not repaint.
    The applet has worked fine in Java Runtime environments since
    1.1.8, and it still works fine as late as 1.3.1_06. Right now
    our customer, understandably, does not want to pay for a
    debugging effort for what is apparently a regression in the
    Java runtime. They are satisfied to stay with 1.3.1_06, though
    this does create client-side hassles and becomes less and less
    viable into the future.
    If anyone is experiencing similar problems, has a workaround,
    or a simpler test case that reproduces the problem, I would be
    grateful to know about it. Thanks.

    Ultimately, we had two problems which we needed to fix
    in order to qualify our application on 1.4.*.
    First, the repaint issue concerned some code that we had
    written to workaround issues in the ComponentView used
    inside the text pane. We had problems with the initial
    display of embedded components because at start-up time:
    the event queue had not started up, and the default
    component view had deferred some sizing computations via
    the "invokeLater" mechanism. We fixed this at the time
    by writing our own ComponentView class based on the Java
    source of the time. This approach was invalidated by changes
    to the graphics pipeline in 1.4.x. The solution was to
    write a new local version of ComponentView. We would prefer,
    of course, a more standard approach. The deferment of the
    component sizing is still an issue, and Sun has accepted this
    defect as a bug/enhancement-request (Bug Id 4851010).
    After fixing the repaint issue, we still had problems due to
    changes in the focus model on 1.4.x. We had been using a
    static JInternalFrame to float a tool palette for pumping
    special characters into our text pane. We discovered that
    this caused us to lose keyboard focus when the applet restarted.
    The solution to that was to make the tool palette non-static.
    Now we think we are ready to go with 1.4.x!
    Hope this gives you a clue you can use.

  • JTabbedPane repainting issue

    when i repaint a panel that has a tabbedPane the components from other tabs bleed through the selected one, which is indice 0
    I have a JFrame borderlayout like this
    Container c = frame.getContentPane();
    c.add("West", jList);
    c.add("Center", panel);
    the panel is borderlayout as well like this
    panel.add("North", panel2);
    panel.add("Center", tabbedPane);
    the jList has about 10 items all of which need to remove and repaint panel depending on the selected item in list.
    so I do this:
    in a valueChanged method cause i implement ListSelectionListener
    int index = jList.getSelectedIndex();
    if(index == -1) return;
    c.remove(panel);
    if(index == 0) c.add("Center", new SomeClass());
    else if(index == 1) c.add("Center", new SomeClass2());
    else if(.....) ect....
    // then i do this
    c.invalidate();
    c.validate();
    c.update(c.getGraphics());
    seems to work and i get matching content to list selection, and all components are visible. but compoenets from tabs underneath the currently selected one bleed through. when i click on one of the other tabs, and click back to the first one, the problem is gone. if i choose something else from the jList, the problem starts all over again.

    found the issue - nevermind
    seems like I had old references to objects originally displayed on the panels that sat on TabbedPane
    so when i went tried to bring back an item in jList, i had a mess of old components lingering around.

  • 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.

  • Repainting issue

    Hi all,
    I have created a frame and i have some menus in that. The menu is not visible when the frame is invoked and also the menu is placed in the correct position when the frame is painted ie when i do some operations such as maximize or minimize. and also this issue is not reprocable consistently.
    Thanks in advance for the help.
    cheers,
    Bala

    As a swing window, such as JFrame or JDialog, is not a JComponent, we will never paint directly on a window, but always on a swing component (JPanel or JComponent, for example), that we have added to the window. Swing programs should override paintComponent() instead of overriding paint(). In a system-triggered painting operation, the system requests a component to render its contents, usually for one of the following reasons:
    - The component is first made visible on the screen.
    - The component is resized.
    - The component has damage that needs to be repaired. (For example, something that previously obscured the component has moved, and a previously obscured portion of the component has become exposed).
    In all three cases, the system automatically calls the paintComponent method of the component. So it's evident that paintComponent should react quickly, and we will avoid "expensive" things, such as loading pictures, reading databases, creating new objects, and so on. The paintComponent method is responsible for painting/repainting everything what is necessary (at least the area defined by the graphic's clip rectangle).

  • JFrame add and remove panel repaint issues

    I'm not really sure what is wrong with the code. I have tried different things. What I am trying to do is to remove a panel and then add a different panel that contains a table into a frame, so the frame displays the table panel instead of the original panel. I have the following code
    viewFrame.remove(this);  // where this is the current panel
    viewFrame.invalidate();
    JTableMAView tv = new JTableMAView(viewModel);
    viewFrame.getContentPane().add(tv);
    viewFrame.validate();
    viewFrame.repaint();
    viewFrame.refreshFrame();Thanks for any help and input in advance!

    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.event.*;
    public class PanelTest extends JFrame implements ActionListener {
         JPanel one, two;
         boolean oneIsNotActive;
         Container contentPane1, contentPane2;
         JButton btnOne, btnTwo;
         public void paint(Graphics g){
              this.paintComponents(g);
         public void update(Graphics g) {
              paint(g);
         public static void main(String args[]){
              PanelTest test = new PanelTest();
              test.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              test.pack();
              test.setVisible(true);
         public PanelTest() {
              initComponents();
         public void actionPerformed(ActionEvent e){
              if(e.getActionCommand().equals("swap")){
                   swapPanels();
         public  void initComponents() {
              contentPane1 = this.getContentPane();
              btnOne = new JButton("swap");
              btnOne.addActionListener(this);
              btnOne.setActionCommand("swap");
              btnTwo = new JButton("test");
              btnTwo.addActionListener(this);
              btnTwo.setActionCommand("swap");
              oneIsNotActive = false;
              one = new JPanel(new FlowLayout());
              one.add(btnOne);
              contentPane1.setLayout(new FlowLayout());
              contentPane1.add(one);
              two = new JPanel(new FlowLayout());
              two.add(btnTwo);
         private void swapPanels() {
              oneIsNotActive = !oneIsNotActive;
              if(oneIsNotActive){
                   getContentPane().remove(one);
                   getContentPane().add(two);
                   this.repaint();
              else{
                   getContentPane().remove(two);
                   getContentPane().add(one);
                   this.repaint();
    }

  • Transparent JSplitPane repaint issue

    Hi,
    I have a split pane added to the content pane of a JFrame and an image loaded in a layer below that of the content pane. All components including the content pane are set to transparent.
    This frame loads up fine, but as soon as the splitter bar is moved, the split pane components mess up.
    Looks like on repaint, the underlying image is not being repainted. I'm using JDK1.4.2_06. Does anyone know how I can get this to repaint right?
    Thanks in advance,
    Regards,
    Pramod
    A sample program that shows this problem:
    import java.awt.Color;
    import javax.swing.ImageIcon;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JSplitPane;
    import javax.swing.JTree;
    public class TSplitter
         extends JFrame
         public TSplitter() {
              init();
         private void init() {
              // Left component is a tree within a scroll pane, all
              // transparent
              JTree tree = new JTree();
              tree.setOpaque(false);
              JScrollPane leftComponent = new JScrollPane();
              leftComponent.getViewport().add(tree);
              leftComponent.getViewport().setOpaque(false);
              leftComponent.setOpaque(false);
              // Right side component is just a line of text, with a
              // transparent background
              JLabel rightComponent = new JLabel();
              rightComponent.setText("Right side text");
              rightComponent.setOpaque(false);
              // Split pane constructed with a zero alpha value background,
              // to make this too transparent
              JSplitPane splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,
                        leftComponent, rightComponent);
              splitPane.setBackground(new Color(0, 0, 0, 0));
              // Split pane added to the content pane, and the content pane
              // too made transparent.
              getContentPane().add(splitPane);
              ((JPanel)getContentPane()).setOpaque(false);
              // Add a background image into the layered pane of the JFrame
              try {
                   ImageIcon ii = new ImageIcon("C:\\watermark.jpg");
                   JLabel imageLabel = new JLabel(ii);
                   imageLabel.setSize(ii.getIconWidth(), ii.getIconHeight());
                   // Load image in a layer below FRAME_CONTENT_LAYER
                   this.getLayeredPane().add(imageLabel, new Integer(-30001));
              catch (Exception ex) {
                   System.out.println("Failed to load watermark... : " + ex);
                   ex.printStackTrace();
              // Position and show
              setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              setBounds(100, 100, 400, 400);
              show();
         public static void main(String[] args) {
              new TSplitter();
    }

    I've never had luck using alpha values, especially an alpha value of 0. Get rid of that and you will see an improvement.
    However it still won't work. When all you components are transparent the background doesn't get repainted correctly. So instead of using a LayeredPane to paint your image, you can add the image directly to the content pane as follows:
    final ImageIcon ii = new ImageIcon("mong.jpg");
    JPanel panel = new JPanel(new BorderLayout())
         protected void paintComponent(Graphics g)
              super.paintComponent(g);
                   g.drawImage(ii.getImage(), 0, 0, null);
    setContentPane( panel );Note, it may be even easier to override the paintComponent() method of the splitPane to paint the image. That way you don't have to play with the contentPane, other than to change its background color.

  • Repaint() Issues with component

    Hi.
    I'm creating a Swing GUI using a JTree component. The particular setup I want is a JSplitPane
    containing some functions in the top pane and the actual JTree displaying some data and possibly the resulting changes when any of these functions are used.
    The problem I was having was in trying to update the JTree object after the user presses one of the
    function JButtons on top. I have a call to repaint() as part of my event-handling code after the JButton's
    procedure completes. However, since the JTree is generated using a separate method (i.e. im passing
    in a TreeNode), the repaint() doesn't do anything.
    The one thing that I've considered is extending the JTree class and overriding its repaint() method to
    include that separate method call, but Is there any more elegant or standard way to do this that I'm not seeing?
    Thanks in advance.

    There is paintImmediately() method. You can also try to use
    SwingUtilities.invokeAndWait call to let your tree be repainted.
    regards,
    Stas

  • Switching apps when using safari repaint issue

    I can't seem to find whethere or not this has already been discussed in the forum. When using safari if I switch to an underlying app window that is covered by safari then sometimes the app window has the portion of safari that was over it painted onto the app. I have to minimize the app and restore it for it to repaint normally. This happens often if iTunes is behind the safari window and only sometimes on other apps.
    I am using the latest nvidia drivers for 8x00 series cards. No other apps cause this problem with underlying windows.
    Sorry for not explaining it clearly.
    Thanks for any help.

    It's up to Windows GUI to update your skin/theme/windows for your apps when you move windows around, and it will rely on your drivers.
    The latest Nvidia drivers are beta drivers. Try the WHQL drivers.
    Have you seen this on XP or Vista, or just Windows Server 2003?

  • Drawing graphs and repaint issues

    Hi, I'm trying to create a simple scrollable graph. Everything works fine unless I scroll it very slowly or really, really fast. It's all gets messy then - lines to do not seem to be continous, but rather have a lot of empty space. Especially when I press an arrow on the scrollbar and simply hold it - in this case all I get is a bunch of dots.
    It looks like that I'm using an inneficient way to draw the graph (I'm simply using drawLine() method, and repaint() isn't fast enough to redraw everything. Is there another way in Java to make it more efficient?
    Here is my code:
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    import java.math.*;
    import java.util.*;
    import java.awt.Color;
    public class TestGraph2 extends JFrame{     
    JScrollBar vb = new JScrollBar();
    int v = ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER;
    int h = ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED;
    JPanel panel = new JPanel();
    Graph graph = new Graph();
         public TestGraph2() {
              addWindowListener(new WindowAdapter()
              {     public void windowClosing(WindowEvent ev)      
                   {     dispose();               System.exit(0);}});     
    JScrollPane jsp = new JScrollPane(graph, v, h);
    setSize(750,550);     
    getContentPane().setLayout(new GridLayout(1,1));
    getContentPane().add(panel);
    panel.setLayout(new FlowLayout());
    jsp.setPreferredSize(new Dimension(600,500));     
    panel.add(jsp);
    graph.setPreferredSize(new Dimension(4000, 500));
    setVisible(true);                    
         public class Graph extends JPanel
              Graphics2D G;
              public Graph() {
    public void paintComponent(Graphics g) {
         super.paintComponent(g);
         G = (Graphics2D) g;
         G.setColor(Color.white);
         G.fillRect(40,40,graph.getWidth()-80,graph.getHeight()-80);
    int xold=39;
    int xnew=0;
    int yold=graph.getHeight()-39;
    int ynew=0;
              for(int i=39; i<=4000; i=i+10){
              xnew=i;
              int temp = (int)(Math.random() * graph.getHeight()-39);     
              ynew = graph.getHeight()-39-temp;
              if (ynew<39)
                   ynew=39;
              if(ynew>graph.getHeight()-39)
                   ynew=graph.getHeight()-39;
         G.setColor(Color.red);     
              G.drawLine(xold, yold, xnew, ynew);
              xold=xnew;
              yold=ynew;}
    public static void main (String[] args) {     
                                  new TestGraph2();}
         

    Anyone, please?

  • Repaint a JEditorPane after inserting data in the Document

    Hi,
    I have a button that inserts some text in a Document using the method insert(int offset, ElementSpec[] data)After that insert, the View recalculates the heights of the text lines, but they don't get refreshed on the JEditorPane. I have to manually insert a new line to make the JEditorPane get updated with the new line height.
    I have tried using invalidate() and repaint() but nothing happens. Is there another way to refresh the contents of the JEditorPane?
    Thanks!!

    revalidate() didn't work. I still have to press "enter" in any part of the document in order to have the line height changed. The method that recalculates the height of the line is View.getPreferredSpan(int) but it isn't called until I insert a new line by pressing enter.
    I think now it's not a repainting issue, I move the window outside the screen and back again and it still doesn't update. The problem is that getPreferredSpan() is not called when it repaints.
    Thanks for your response. I will try to find out how to have the view's size recalculated when I insert content.

  • RH8 hangs with 100% CPU when closing a topic. Resource Manager to blame?

    Please refer to the following thread for background information: http://forums.adobe.com/thread/734972?tstart=0
    I'm re-listing this issue, as it has rasied its ugly head again, and I've no resolution this time.
    Summary:
    The original issue was that RH8 would hang whenever I closed a topic for anywhere between 15-30 seconds before allowing me to interact with the application again. Attempting to interact with the GUI during this freeze would result in the 'Not Responding' message at the upper-left of the application window (suffice it to say I'm on a PC with Windows).
    After much investigation it was suggested to me that my profile may be corrupt, and in order to test this, another user should log on and see whether they experienced the same problem. As it is, they did not. So I had my Systems Admin recreate my domain profile, and everything worked just fine.
    ...until now.
    Last week we all upgraded from Windows XP to Windows 7 (32 bit). We also changed our anti-virus software. The awful hanging issue in RH has returned.
    We've attempted the solution from last time, by recreating my profile on the domain, to no avail. We have in fact gone to the extent of reformatting the hard drive and reinstalling Windows, the anti-virus software and RH8 (plus all available patches) from scratch. In case anyone is wondering, we've tried running RH without the antivirus installed, and when installed have also tried excluding the RH application folder and all my project folders, just in case it was the anti-virus software at fault. Regardless, the RH problem exists.
    I can't understand why I'm now having this problem. Truth be told, I never really understood why recreating my domain profile in the first place resolved the problem last time.
    However, I have now discovered something else...
    In my RH Resource Manager I have a few thousand images in the Image folder. Not much I can do about this - the applications I write Help for have many screens users can access, and I write the Help for half a dozen applications. When I delete the contents of the images folder within the Resources Manager, RH works perfectly - no hanging whatsoever. As soon as I import the images into this folder again, the hanging is back. I have tested this a few times now, and have rebooted and had another user log on to confirm, and it happens every time. I'm dumbfounded of course, particularly because the same set of images has been sitting in the Resource Manager for months (since my original post about this issue, last year), and RH has been working perfectly.
    I've also tried Peter Grainge's suggestion to create an empty BaseCSS_res.dll file (http://www.grainge.org/pages/authoring/rh8/using_rh8.htm), but as I've installed all the RH8 updates, this shouldn't be an issue.
    I've also tried deleting the CPD file without success.
    Thanks in advance.

    It seems this has been resolved!
    Many thanks for all the suggestions. Peter ultimately forwarded the solution - something that he'd sourced from a rep at Adobe, as follows:
    Every file/folder change in the root folder of RH8 Resource Manager triggers a rescan of all the sub-folder/files. That is why in case of thousand image it will take time. Like xxxx said we may ask user for root folder, it should not be project folder or frequently changing folder.
    Probably he is using the default path given in the root folder and RoboHelp changes a temporary css file in that folder very frequently, in fact with every topic close.
    That is causing the slowness and it should be easy to reproduce in the default scenario. This is RH8 only issue.
    So, to fix my issue:
    Open the Resource Manager Pod.
    Click the Add/Edit Categories icon. The Add/Edit Categories window appears.
    Within this window, change the 'Root Folder' path to something other than the default. In my case, I create a new folder on my root hard drive, outside of the Robohelp folder, just to be sure.
    So far this is working perfectly - no 'hanging'. I'll keep an eye on it.
    I love the comment "This is RH8 only issue."
    Oh?! Is it? Was it fixed in a patch, Adobe? Please don't tell me that it was fixed in RH9, because there's no way known I should have to pay for an upgrade to resolve something that certainly looks like a bug. As happy and grateful I am to have this resolved, it has cost me a week's work.

  • 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.

  • Repainting problem

    hi
    Am new to the group and i kindly need a solution for the problem am reporting.
    I have developed an Swing UI with a mainscreen having images and three buttons each opening a subwindow when clicked.when a button to open the subscreen is cliked the window get opens loading with its own images and a close button. But when i click on that close button to get back to the mainwindow, it gets delayed to get back to the main window.Its basically a type or flickering.I have set the DoubleBuffered to true on all the swing components.but that doesnt help much.can anyone suggest in this repainting issue,
    Thanks

    hi
    Thanks a lot for the reply.I dont know about SwingWorker class.but just now tried to use that by going thru it.Actually am invoking the subwindow object when one of the button on mainwindow is clicked.I used the swing worker class in one of buttons actionperformed.This class is not the main class.But its not the propery way you asked me to do i guess.Is that
    private void markLocationButtonActionPerformed(java.awt.event.ActionEvent evt) {
    final SwingWorker worker = new SwingWorker()
    public Object construct()
    markLocation = new DigitalGrafittiMessages(this, true, vs, rssLinkStatus);
    //return someValue;
    worker.start(); //required for SwingWorker 3
    }

Maybe you are looking for