• Post Reply Bookmark Topic Watch Topic
  • New Topic

Open new Japplet  RSS feed

 
Nuno Prudencio
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,

I created an simple japplet (Login) and i pretend open a new jpapplet (Preparation).

I used the following code:





But i get the following error: java.lang.ClassCastException: soci.Login cannot be cast to java.applet.AppletStub

Anyone can help me?

Regards,

 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch!


Did you understand what the problem is?
 
Nuno Prudencio
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Maneesh Godbole,

I posted in a wrong category. I not see the category "Applets".

I understand that meaning of the error. This code works in a applet. But if i use a japplet the neatbeans give me this error.

My question is with a japplet open a new one?

Regards
 
Campbell Ritchie
Marshal
Posts: 55793
164
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

I am afraid the correct answer about applets is to stop using them
 
Nuno Prudencio
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Campbell Ritchie,

Thanks,

Ok. What do you sugest to create web gui aplication in java? I´m starting to develop web aplications in java.

Regards
 
Campbell Ritchie
Marshal
Posts: 55793
164
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Most people don't. They use languages like Perl and ECMAScript (JavaScript/Nashorn etc) in the webpages.
 
Michael L Smith
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
+1 Campbell Ritchie. Most people develop web application using JavaScript etc. I think with the new update to Java 8 you have to get your applets signed now in order to run them in the browser, unless you had your own web server then you could just add the server to the list of exceptions.
 
Campbell Ritchie
Marshal
Posts: 55793
164
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

It was always possible to sign applets, but they have virtually fallen out of use. I know it is possible to embed JavaFX applications in all sorts of places, including webpages, but don't know how to do it.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!