I Have a swing application that works fine in my faster pc but behaves unexpectedly in the clients slower pc. I have verified that the jre used is same on both the machines.
My application has a topMain , centreMain and bottomMain JPanel which are inside a mainPanel which uses border layout.
topMain panel has three other JPanels in it with labels and buttons all have layouts attached.
centreMain has a JTabbedPane which has two tabs each havinh a Jpanel which has a TableModel.
bottomMain has two buttons.
THe problem is that in the clients machine when the application is resized or moved or a native window is opened on top of the application the topPanel and bottomPanel do not repaint properly.
That is the buttons are invisible the colour of the top panel is not refreshed and I cannot see any content of the top and bottom panels either. The tabbed pane is visible though.
If I hover mouse over the bottom buttons they appear again. INterestingly as soon as I click on one of the tabs of the JtabbedPane the whole application refreshes and I can again view everything.
What can be the problem? I am not calling repaint in my code anywhere. THis code has worked for years in the same client machine and the problem has started only after I added a JTabbedPane recently. Also it works perfectly in my machine.
Any ideas on the possible cause will be appreciated. I can not paste the code unfortunately.
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…