display the System.out.print msgs

Reply

Join Date: Jan 2008
Posts: 26
Reputation: abdulraqeeb33 is an unknown quantity at this point 
Solved Threads: 0
abdulraqeeb33 abdulraqeeb33 is offline Offline
Light Poster

display the System.out.print msgs

 
0
  #1
May 10th, 2008
i have a program running with lot of system.out.println statements.. i want to display this in a javaframe...can anyone tel me the steps to go abt it
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 18
Reputation: freshface001 is an unknown quantity at this point 
Solved Threads: 1
freshface001 freshface001 is offline Offline
Newbie Poster

Re: display the System.out.print msgs

 
0
  #2
May 12th, 2008
The following code is used for creating java frame.
import java.awt.*;
import java.awt.event.*;
class test extends Frame implements WindowListener{
test(){
setTitle("Java Frame");
setSize(400,250);
addWindowListener(this);
setVisible(true);
}

public void windowOpened(WindowEvent e){}

public void windowClosing(WindowEvent e){
System.exit(0);
}

public void windowClosed(WindowEvent e){}

public void windowIconified(WindowEvent e){}

public void windowDeiconified(WindowEvent e){}

public void windowActivated(WindowEvent e){}

public void windowDeactivated(WindowEvent e){}

public static void main(String ars[]){
test t = new test();
}
}
------------------------------------------------------------------
this code is used to print the string in the frame
Graphics g;
g.drawString(variable_name,x,y);
variable_name -> print string
x -> x axis in the frame
y -> y axis in the frame
this code is used to print the string in the frame
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 45
Reputation: alpe gulay is an unknown quantity at this point 
Solved Threads: 0
alpe gulay's Avatar
alpe gulay alpe gulay is offline Offline
Light Poster

Re: display the System.out.print msgs

 
-1
  #3
May 13th, 2008
.,ahuh!
i see..
.,'Baby Pro'.,
what you are today!
it's because on what you did yesterday'
what you did today!
is what in future you will be...'
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the Java Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC