Haizea O'Brien

Greenhorn
+ Follow
since Nov 06, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Haizea O'Brien

Here's a modified version of your code:
import java.awt.*;
import java.awt.event.*;

class Box extends Frame
implements ActionListener
{
private Frame fMain;

public Box(){
fMain = new Frame();
fMain.setTitle("Test"); //setting the text in the Title bar
fMain.setSize(250,150);
Label info = new Label("Informations sur l'auditoire");

info.setAlignment(Label.CENTER);
info.setForeground(Color.WHITE);
info.setBackground(Color.BLACK);

Button bAvgr = new Button("Calculer la moyenne");
Button bPass = new Button("No# d'etudiant reussi");
Panel p = new Panel(new FlowLayout());
TextField tf = new TextField("10");

p.add(new Label("Points:"));
p.add(tf);
fMain.setLayout(new GridLayout(4,1));
fMain.add(info);
fMain.add(bAvgr);
fMain.add(bPass);
fMain.add(p);

fMain.setVisible(true);
fMain.pack();
}

public void actionPerformed(ActionEvent e)
{
}
}
15 years ago
To everybody who had spent their time and effort in posting and answering my question, thank you very much, specially to rakesh sugirtharaj, Campbell Ritchie, Amit Ghorpade, arulk pillai and felicia adedotun. Now, I understand classpath better. Again, thank you and more power.
15 years ago
Thanks for the warm welcome and for the speedy reply. I tried what you said and unfortunately, it didn't work.
15 years ago
Hi. I'm not virtually a newbie in Java, (I've been programming using Java for almost half a year from now) but I still struggle with this classpath thing. I can program both in a text editor and IDE and so far, I don't have any problems in compiling not until I started creating packages and tried to compile them using the command line. I've went to Java's official site and searched for "Setting Java Classpath" (http://java.sun.com/j2se/1.3/docs/tooldocs/win32/classpath.html), but I still didn't get it. Can somebody please teach me and explain to me how to set up Java Classpath in command line. My OS is Windows XP.


Thank you very much and more power!
15 years ago