Well, may be i am little bad with explaining all this. Let me quote an example here.
import javax.swing.*;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import...
Type: Posts; User: Mr.777
Well, may be i am little bad with explaining all this. Let me quote an example here.
import javax.swing.*;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import...
Well, you must add all the components in the frame and then,
Container whateverObj = frameName.getContentPane();
Becuase containers are the top level and JFrame, JPanel etc extends Container,...
Yes coz you are adding buttons to the panel, and panel in the container and where are you adding conatianer to Frame?
Read OP's problem description first, before giving such a bad advices.
@AlexAndHalf: You need to read about Swing. And as far as javac is an issue, check, if java is installed or not. If yes,...