Ask Question Forum:
C
O
M
P
U
T
E
R
2
8
- Underline
- Bold
- Italic
- Indent
- Step
- Bullet
- Quote
- Cut
- Copy
- Paste
- Table
- Spelling
- Find & Replace
- Undo
- Redo
- Link
- Attach
- Clear
- Code
Y-position of the mouse cursor
Attachment:===
JFram and Japplet in Jave

webpage in IE. instead of on standlone chart result on JFrame window.
THe FinanceDemo.java file is attached which is standalone java program using JFlame to display the chart result. I have modified the code and used Japplet at java.swing.* instead of Applet java.applet.* that should okay , RIght ? Both are similar ? After the following modification in the orginal code of "FinanceDemo.java" I have passed javac and java command without any error with -classpath=" vendor_chart .jar;." included
I have modified all code as dollows :
1-public class FinanceDemo extends JFrame by public class FinanceDemo extends JApplet
2- I delete the code for close JFlame windows coding like as follows
// End application upon closing main window
if (closeOnExit)
{
addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {System.exit(0);} });
}
3- I deleted the code for pack() which is for re-size the Frame
4- Delete code for settitle() function for JFlame
But after completing the javac, the chart display cannot be shown by Appletviewer
Only Applet windows is there and nothing and blank display inside the window.
I have looked into the all code of FinanceDemo.java. Besides item1-4 I modfiied
the rest of the code should be no any issue at all for Japplet. The code could be re-used. I am looking into drawChart(chartViewer1) function in the code; there should be compatiable to Japplet.
If possilbe, please point out my mistake and direction to solve code from Jframe to Japplet.
Be Reminded the modified code is passed everything besides no display in
Applet windows by Appletviewer. Only blank Applet windows is on. Please kindly
advise it.
Best Regards
Duncan
Attachment:FinanceDemo.java
:-) what is that mean , E.T. come home ? Anyway, I need to sleep one more hour, now at
7:00AM at my side and go to work at 8:30 AM on time .
:-) what is that mean , E.T. come home ? Anyway, I need to sleep one more hour, now at
7:00AM at my side and go to work at 8:30 AM on time .
:-) what is that mean , E.T. come home ? Anyway, I need to sleep one more hour, now at
7:00AM at my side and go to work at 8:30 AM on time .
:-) what is that mean , E.T. come home ? Anyway, I need to sleep one more hour, now at
7:00AM at my side and go to work at 8:30 AM on time .
:-) what is that mean , E.T. come home ? Anyway, I need to sleep one more hour, now at
7:00AM at my side and go to work at 8:30 AM on time .
:-) what is that mean , E.T. come home ? Anyway, I need to sleep one more hour, now at
7:00AM at my side and go to work at 8:30 AM on time .
:-) what is that mean , E.T. come home ? Anyway, I need to sleep one more hour, now at
7:00AM at my side and go to work at 8:30 AM on time .
:-) what is that mean , E.T. come home ? Anyway, I need to sleep one more hour, now at
7:00AM at my side and go to work at 8:30 AM on time .
:-) what is that mean , E.T. come home ? Anyway, I need to sleep one more hour, now at
7:00AM at my side and go to work at 8:30 AM on time .
:-) what is that mean , E.T. come home ? Anyway, I need to sleep one more hour, now at
7:00AM at my side and go to work at 8:30 AM on time .
:-) what is that mean , E.T. come home ? Anyway, I need to sleep one more hour, now at
7:00AM at my side and go to work at 8:30 AM on time .
:-) what is that mean , E.T. come home ? Anyway, I need to sleep one more hour, now at
7:00AM at my side and go to work at 8:30 AM on time .
:-) what is that mean , E.T. come home ? Anyway, I need to sleep one more hour, now at
7:00AM at my side and go to work at 8:30 AM on time .
:-) what is that mean , E.T. come home ? Anyway, I need to sleep one more hour, now at
7:00AM at my side and go to work at 8:30 AM on time .
:-) what is that mean , E.T. come home ? Anyway, I need to sleep one more hour, now at
7:00AM at my side and go to work at 8:30 AM on time .
:-) what is that mean , E.T. come home ? Anyway, I need to sleep one more hour, now at
7:00AM at my side and go to work at 8:30 AM on time .
:-) what is that mean , E.T. come home ? Anyway, I need to sleep one more hour, now at
7:00AM at my side and go to work at 8:30 AM on time .
:-) what is that mean , E.T. come home ? Anyway, I need to sleep one more hour, now at
7:00AM at my side and go to work at 8:30 AM on time .