|
Technical Interview Questions
Javascript Interview Questions
Oracle Interview Questions
J2EE Interview Questions
C++
Interview Questions
XML
Interview Questions
EJB
Interview Questions
JSP
Interview Questions
.........More
Programming Source Codes
Java Source Codes
Html Source Codes
CSS Source Codes
C Source Codes
.........More
Soft Skills
Communication Skills
Leadership Skills
.........More
|
|
Java Source Codes
applet
public line()
{
JToolBar tb=new JToolBar();
JButton b1=new JButton("OPEN");
tb.add(b1);
b1.addActionListener(this);
Container contentPane =getContentPane();
contentPane.setLayout(new BorderLayout());
contentPane.add(tb,BorderLayout.SOUTH);
ImageIcon ic=new ImageIcon("Follow.jpg");
JLabel l=new JLabel(ic);
contentPane.add(l,BorderLayout.CENTER);
}
public void actionPerformed(ActionEvent ae)
{
if((ae.getActionCommand()).equals("OPEN"))
{
}
}
public void mousePressed(MouseEvent me)
{
/*i need the code here*/
}
<<<----- Return to
Java Source
Code Questions Page.
Have a Question ?
post your questions here. It
will be answered as soon as possible.
Check
Java Interview
Questions for more Java Interview Questions with answers
Check
Servlet Interview
Questions for more Servlet Interview Questions with answers
Check
Structs Interview
Questions for more Structs Interview Questions with answers
|