> Hi,
> Following is a code which i use to invoke a JDialog on Red Hat 7.0
> using blackdowns jdk1.2.2. But the Dialog doesn't seem to be visible.
> I see that it is being created at the status bar,but it still doesn't
> show up
> The same code works perfectly well on Windows NT. Can anybody tell me
> the reason behind it.
> Note: The following code is in an applet.
> /*Code Start*/
> JDialog npd=new JDialog(Dialog d,String s);
> npd.show();
> npd.setSize(250,250);
> /*Code End*/
>
> Q)Why there is diference between presentation of applets in windows
> and linux?



Hi all,
Thanks for your responces.
I found the solution for this one. I just shifted functions show and
setSize in the code and got the JDialog visible.
Original code:
/*Code Start*/
JDialog npd=new JDialog(Dialog d,String s);
npd.show();
npd.setSize(250,250);
/*Code End*/
Changed code:
JDialog npd=new JDialog(Dialog d,String s);
npd.setSize(250,250);
npd.show();

Well I cant make out the reason behind this.
Now a real question :Is java 100% platform independant? I know its a
foolish question to ask after you have seen results like this.

For the second question of applets on windows and Red Hat Linux i am
specific about the look and feel of GUI . Is awt,swings applets
behaviour dependant on platforms. Is there any such info available form
blackdown or anyone else.

Thanks and Regards
Amol



----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to