Hi,
I have a swing based
java application
I am accessing through Xmanager from Linux box ,when I open some window in the application by clicking on some button , this error prints in console..and window opens up ..(shows wrong data coz of Exception)
Exception in
thread \"AWT-EventQueue-0\" java.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0
"ERROR", "0", "11", at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:99
but when I double click once again on the button from which window was opened , there will be no exception
and the window shows correct data..
I have tried the following by adding into /etc/profile file.....but no gain.
# Start the X virtual frame buffer (Xvfb)
if [ -f /usr/X11R6/bin/Xvfb ]; then
/usr/X11R6/bin/Xvfb :1 -screen 0 1024x768x16
fi
can anyone please tell me why does this behaviour
Thanks in advace