//http://developer.java.sun.com/developer/onlineTraining/new2java/divelog/part1/toc.jsp /** * This class creates the content on the * Welcome tabbed pane in the Dive Log * application. * @version 1.0 */ //package divelog; import javax.swing.*; //imported for buttons, labels, and images import java.awt.*; //imported for layout manager public class Welcome extends JPanel { //Opens class Welcome // Class constructor that provides instruction on // how the Welcome object is built. public Welcome() { // Opens constructor //do something }// Closes Welcome constructor public void paintComponent(Graphics g) { // here we can paint ; similar to paint(Gra..), update(Gra..) in an Applet super.paintComponent(g); g.setColor(Color.black); g.drawLine(50, 50, 100, 100); } }// Closes class Welcome