Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

how to print from an applet to console

843807Dec 29 2004 — edited Dec 30 2004
Hi,
I'm passing my applet a parameter then I'm trying to print it using System.out.println but I don't see any output. My web app is deployed in weblogic 7. From the html page I pass in applet param but I don't see any out put in weblogic console.How can I see the output. here is what I have in my html page.

<APPLET codebase="classes" code="taqDingHILoNew.class" width=550 height=420
archive="../../../lib/EspressAPI.jar">
<PARAM name="cabbase" value="../../../lib/EspressAPI.cab">
<PARAM NAME=FontName VALUE="Arial" >
</APPLET>

And here is code for my applet. Any help would be greatly appreciated.
public class taqDingHILoNew extends Applet implements ActionListener{
TextField tf;
public static void main(String argv[]){
taqDingHILoNew chartFrame = new taqDingHILoNew();
Frame frame = new Frame();
frame.setLayout(new BorderLayout());
frame.add("Center", chartFrame.createComponent2(null));
frame.pack();
frame.show();
}

public void init() {
setLayout(new BorderLayout());
String param = this.getParameter("FontName");
System.out.println("GOT APPLET PARAM " + param);
add("Center", createComponent2(this));
}

Component createComponent2(Applet applet) {
QbChart.setChartServerUsed(false);
setLayout(new BorderLayout());
// primary axis value column 3
// secondary axis value column 2
// ColInfo(series, category, sumby, primary_value, secondary_value)
QbChart chart;
String param = this.getParameter("FontName");
System.out.println("GOT APPLET PARAM " + param);
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 27 2005
Added on Dec 29 2004
5 comments
357 views