C:\Test>javac home.java
home.java:75: cannot resolve symbol
symbol : class loadPanel
location: class home
loadPanel page = new loadPanel();
^
home.java:75: cannot resolve symbol
symbol : class loadPanel
location: class home
loadPanel page = new loadPanel();
^
2 errors
And when u are extending applet try to rename the methid loadpanel by init() and call the init.
Putting the ui part in init will help the applet UI to be build automatically when running in an applet viewer.(say internet explorer)
One suggestion :: in future try naming ur class name with a Capital Letter like this class should have been named as Home rather.Will not cause any effect on performence but then java conventions.... :) David any comments :) cheers
HI i replaced the code in main by the code that u sent me. The applet is opening but giving the following error
Exception in thread "main" java.lang.IllegalArgumentException: adding a window t o a container at java.awt.Container.addImpl(Unknown Source) at java.awt.Container.add(Unknown Source) at homepage.main(homepage.java:82)
The reason i am writing this is, i have 2 java applications which are to be called from any page or another applet. I have tried with a html page but could not. SO i tried to write another application (i donno if i am right) and had 2 buttons on clicking who starts the other applications. If u have any other suggestions where i can do easily, please help me.
Also, can anyone suggest a good book or any link that helps me with linked lists and pointers(for C Programming).
The error is C:\ChemvizCD>java homepage Exception in thread "main" java.lang.IllegalArgumentException: adding a window t o a container at java.awt.Container.addImpl(Unknown Source) at java.awt.Container.add(Unknown Source) at homepage.main(homepage.java:82)
Hi THanks for your help.This works just perfect except for a small problem. My buttons"offwaltz" and "nanocad" doesnot work. Any suggestions??? No action is being performed. My idea is to start the other two applications ( offwaltz and nanocad) with these buttons.
I tried a batch file ( "exe.bat") replacing java -jar offwaltz.jar in the code with exe.bat
The batch file is given bleow ( nothing in that actually)
> Also, can anyone suggest a good book or any link that > helps me with linked lists and pointers(for C > Programming).
Bruce Eckel's Thinking in C++ covers linked lists; you can find the paper edition pretty easily at a bookstore, library, Amazon.com, etc. and you can get it electronically from his site, http://www.mindview.net. If you really want it in C, not C++, I think there is also a Thinking in C, which probably also covers linked lists (I don't know for sure), but maybe it is only available on the CD that comes with Thinking in C++ and/or Thinking in Java.
Of course, probably most books on C programming cover linked lists. Since linked lists are not exactly bleeding edge technology, you can probably find several C books at your local library that would suffice.