LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 03-14-2004, 11:20 PM   #1
vdogvictor
Member
 
Registered: Feb 2004
Distribution: Arch
Posts: 498

Rep: Reputation: 31
Noobs java question on applets probably easy...sorry in advance


How do you easily change a standalone java program into a java applet insertable into HTML?....is there a convert command or do you have to change the code a bit and if so how?
 
Old 03-15-2004, 01:28 AM   #2
Guru3
Member
 
Registered: Sep 2003
Location: //home/sweden
Distribution: RedHat 9, Fedora Core 1
Posts: 360

Rep: Reputation: 31
You have to change the code. First you must realize about java's "sandbox" that is, if the application tries to access the hard drive or open a socket, the jvm for applets won't let it do that unless it has a signed security thingy. After that, you just have to add the extends applet bit and change it so that the main frame uses this in frame. That's basically how you do it in brief, may be some errors...
 
Old 03-16-2004, 11:58 AM   #3
lucasbl3
LQ Newbie
 
Registered: Feb 2004
Posts: 8

Rep: Reputation: 0
I would recommend Bruce Eckel "Thinking in Java" (which is freely downloadable in a lot of places, just search it in google). I believe that he proposes a "framework" for developing programs that could easily be changed from stand-alone applications to applets.
I would warn you that he does not comment specifically about converting one type of program into an another but rather the way of developing programs that can be´ported with little effort.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Java applets are very slow drigz Linux - Software 3 11-11-2004 11:27 AM
Writing Java applets munchies Programming 2 09-05-2004 08:44 AM
Easy Urpmi for noobs : Let's clear this up once and for all! furfurdemon666 Mandriva 8 06-21-2004 06:37 PM
java applets nOOb1kanobee Linux - Newbie 1 02-25-2004 02:47 AM
running java applets ? senthilasks Linux - Software 1 08-21-2003 04:17 AM


All times are GMT -5. The time now is 07:05 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration