As is known to learn java ... I stalled with the schedule and plotting .... Specifically dont quite know where to start
I have one example according to everything I want to trace. Ofcourse I need a lot of serious work to make an example by the bottom, but it does not work and I dont know whereabouts roots ..... Any suggestions??
package bandom;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class Piesiam extends JPanel {
public void paintCommponent(Graphics g) {
super.paintComponent(g);
g.setColor(Color.BLUE);
g.drawString("Vn", 300,200);
g.fillRect(20,35,80,40);
}
public static void main(String args[]) {
JFrame fr = new JFrame();
Piesiam p = new Piesiam();
fr.getContentPane().add(p);
fr.setSize(500,500);
fr.setVisible(true);
fr.addWindowListener(new WindowAdapter(){
public void windowClosing(WindowEvent e){
System.exit(0);
}
});
}
}
This post has been edited by hakeris4: 14 April 2009 - 01:50 AM

Start a new topic
Add Reply




MultiQuote
| 


