Hi,
I understand you work with Swing. I have a question with resizing my swing
applet as the browser gets resized.
Have you done anything like this, if so could you suggest a solution. My
problem in detail:
I am using VCafe 3.0c on NT, Plugin 1.2.1, JWS 1.1.3, IE 5.0 and NS 4.6
The applet is developed using only Swing Components. The original size of
the applet is 700 /500 .
When the browser is resized the user has to scroll horizontally or
vertically. While doing so i get horizontal or
vertical line in IE and the applet gets Distorted, The applet scrolls well
in Netscape - no problem.
I used the Javascript code to resize that i found at JavaWorld Tip 80. ( I
am attaching the code ). This code
works fine with an AWT applet, but when i try for the Swing applet i get the
error at line :
document.appletName.appletMethodName()
error mesg is ------ " is not an object"
A bug report at Sun's site suggested using < PARAM NAME = "SCRIPTABLE VALUE
= "TRUE " >
This did not fix my problem even.
What i am trying to do is get the width and height of the resized browser
and pass it as parameter to a method inside
the java applet. I am calling this method from the html file using
javascript, And it is at this line i get the error that it
is not an object.
The method inside my applet does this
public void getnews(int wid, int hei )
{
super.setSize( wid , hei );
validate();
}
I have tried all of Sun's newsgroups and various others not solution so far.
Any suggestions highly appreciated .
Thanks
Vais
----- Original Message -----
From: G Sreekant <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 15, 1999 2:29 AM
Subject: Re: swing help
> No it doesnt provide ...
> There are beans available to do the same
> http://ldkohl.home.mindspring.com/homepage/java/Calendar.html
>
> alternatively there are javascripts also available to do so
> www.javascript.com
>
> but in swing you need to use the Gregorian Calendar class
> and write one on your own
>
> Shoot back in case of further queries
>
> Sreekant
>
>
>
>
>
>
> jk <[EMAIL PROTECTED]> on 12/15/99 12:41:41 PM
>
> Please respond to "A mailing list for discussion about Sun Microsystem's
Java
> Servlet API Technology." <[EMAIL PROTECTED]>
>
> To: [EMAIL PROTECTED]
> cc: (bcc: G Sreekant/MLs/TCSCHENNAI)
>
> Subject: Re: swing help
>
>
>
>
> hi all
> sorry for an offbeat question
> does swing provide datechooser component like the filechooser component.
> we should also be able to set the calendar for the particular year and
month
> if it is not there can any one suggest me some sites.
>
> thanx in advance
> jk
>
>
> Giri Lingamarla wrote:
>
> > JDBC API Tutorial and Reference (Second Edition) by White, Fisher,
Cattell
> > at el. Addison-Wesley
> >
> > Carlos Orrego <[EMAIL PROTECTED]>@JAVA.SUN.COM> on 12/13/99 01:36:11 PM
> >
> > Please respond to "A mailing list for discussion about Sun Microsystem's
> > Java Servlet API Technology." <[EMAIL PROTECTED]>
> >
> > Sent by: "A mailing list for discussion about Sun Microsystem's Java
> > Servlet API Technology." <[EMAIL PROTECTED]>
> >
> > To: [EMAIL PROTECTED]
> > cc:
> >
> > Subject: JDBC books?
> >
> > can anyone recomend me the best jdbc book out there?
> >
> > specially if it covers java2 and jdbc2.0
> >
> > thanks very much
> >
> >
___________________________________________________________________________
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > Resources: http://java.sun.com/products/servlet/external-resources.html
> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
> >
> >
___________________________________________________________________________
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > Resources: http://java.sun.com/products/servlet/external-resources.html
> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
Title: 800 X 600 Class File