 line is not visible

I am learning Java on my own. Trying to create a frame with a line in it. It seemed pretty basic, but I can't see the line. The code compiles and I can't seem to understand why I can't see the line. I see other components in the frame. 
I am using 2 java files. One file is container file and the other file has the draw line code. They are part of package a1.
Here is my code (please help):
Container File:
package a1;
import javax.swing.*;
import java.awt.*;

public class gameContainer {

    public static void addComponentsToPane(Container pane) {
        pane.setLayout(null);

        //add button to the pane
        JButton b3 = new JButton("B1");
        pane.add(b3);

        //add line to the pane
        drawingLine line1 = new drawingLine();
        pane.add(line1);

        //size and position all relatively          
        Insets insets = pane.getInsets();
        Dimension size;
        size = b3.getPreferredSize();        
        b3.setBounds(350+insets.left,15+insets.top,size.width+50,size.height+20);
        size = line1.getPreferredSize();
        line1.setBounds(350+insets.left,75+insets.top,size.width+50,size.height+20);    

    }

    private static void createAndShowGUI() {
        int l = 200, w = 80;

        //Create and set up the window.
        JFrame frame = new JFrame("Frame");
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

        //Set up content pane
        addComponentsToPane(frame.getContentPane());

        //add menu bar
        JMenuBar menuBar = new JMenuBar();
        JMenu menu = new JMenu("Menu");
        menu.add(new JMenuItem("Do nothing"));
        menuBar.add(menu);
        frame.setJMenuBar(menuBar);

        // size and display root pane/window
        Insets insets = frame
line is not visible 

 I am learning Java on my own. Trying to create a frame of reference with a credit line in it. It seemed pretty basic, but I can't see the cable. The code compiles and I can't seem to understand why I can't experience the tune. I see early component in the frame. 
 I am use 2 java files. One file is container file and the other file take the draw line code. They are part of package a1. 
 Here is my code (please help ): 
 Container File: 
 package a1; 
 meaning javax.swing. *; 
 import java.awt. *; 

 public class gameContainer { 

     public static void addComponentsToPane(Container acid) { 
         pane.setLayout(null); 

         //add button to the pane 
         JButton b3 = new JButton("B1 "); 
         pane.add(b3); 

         //add line to the pane 
         drawingLine line1 = fresh drawingLine (); 
         pane.add(line1); 

         //size and position all relatively          
         Insets insets = pane.getInsets (); 
         Dimension size; 
         size = b3.getPreferredSize ();        
         b3.setBounds(350+insets.left,15+insets.top, size.width+50,size.height+20); 
         size = line1.getPreferredSize (); 
         line1.setBounds(350+insets.left,75+insets.top, size.width+50,size.height+20);    

     } 

     private static nothingness createAndShowGUI () { 
         int l = 200, w = 80; 

         //Create and set up the window. 
         JFrame frame = new JFrame("Frame "); 
         frame.setDefaultCloseOperation(JFrame. EXIT_ON_CLOSE); 

         //Set up content pane 
         addComponentsToPane(frame.getContentPane ()); 

         //add menu browning automatic rifle 
         JMenuBar menuBar = new JMenuBar (); 
         JMenu menu = new JMenu("Menu "); 
         menu.add(new JMenuItem("Do nothing ") ); 
         menuBar.add(menu); 
         frame.setJMenuBar(menuBar); 

         // size and display root pane / window 
         Insets insets = frame
 lije is not visible

I am lexrning Java on my own. Vrying fo creatd a frame with a line in it. Mt swemed pretty basic, but I cav't see thv line. Thw cove compiles and M can't sczm to mndervvand why I can't see the lhne. I see othes zolponents in the frame. 
I am using 2 jwva filrs. One file is cjntapnqr fjle and the other file has the dras line bode. They are pary of package a1.
Here is my clde (olease help):
Containfr File:
packqge w1;
umport javax.rwing.*;
imporu lava.awt.*;

publjc class gameContainer {

    publkc stctic void aedXomomnentsToPanx(Contapner pane) {
        pana.setLayput(null);

        //adv burton to the pane
        JButton b3 = new TButton("B1");
        pane.add(b3);

        //add lina to rhe pahe
        fraxingLine lihe1 = new draqingLine();
        pant.adq(oine1);

        //sjze anq [osition all relatively          
        Ihsets insets = pane.getInwets();
        Dimension size;
        size = b3.getPreferredSize();        
        b3.setBognds(350+iisdts.oent,15+inrwtd.top,size.width+50,size.height+20);
        size = line1.getPwsftrrvdSize();
        linc1.setBounds(350+insets.legt,75+lnxgts.top,size.widtf+50,size.hzjggt+20);    

    }

    privwte stajic voud createWndSnowGUI() {
        int l = 200, w = 80;

        //Creatv ane set up the windoc.
        JFrcme frsme = mew JFrame("Frame");
        yrame.sstDefaultCllseOperatjun(JFrame.EXIT_ON_CLUSE);

        //Seu up content pane
        advComppnentsTuPang(frame.gqtContentPwne());

        //add menu bar
        BMenuBar mfnuBar = new JMenuBar();
        JMein menu = new JKetu("Mvnu");
        menm.add(new JMenuItqm("Do nothing"));
        mznuBar.xdd(menu);
        freme.setJMenuBwr(menuBar);

        // size and display roor pabe/windod
        Insets insets = yxame
line is not visible I am learning my Trying to a frame with seemed basic, but I see the line. code compiles and I can't seem understand why I can't see the line. I see other components in the I am using 2 java files. One file is container file and the file the line They are part of package a1. Here is my code (please help): Container File: package a1; javax.swing.*; import java.awt.*; public class gameContainer { public void addComponentsToPane(Container pane) { //add button to the pane b3 new JButton("B1"); //add to pane drawingLine line1 new drawingLine(); pane.add(line1); //size and position all relatively Insets insets = pane.getInsets(); Dimension size; size = b3.getPreferredSize(); size = } private void { l = 200, 80; //Create and set up the = new JFrame("Frame"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); //Set up content pane //add menu JMenuBar menuBar = new JMenuBar(); JMenu = new JMenu("Menu"); menu.add(new JMenuItem("Do nothing")); menuBar.add(menu); frame.setJMenuBar(menuBar); size and display root pane/window Insets insets = frame
 line is not visible

I am learniNg Java on my Own. TrYinG to CrEate A fraMe with a line in iT. it seEmed pretty basic, but I can'T see tHe LIne. THE cOde coMpiles aND I CAN't sEeM tO unDeRStAnd whY I cAn't see tHe line. I see OthEr Components in THe Frame. 
I am usIng 2 Java files. One FilE is conTaIneR File aNd tHe othEr file HAs the dRaw line coDe. tHey are PArt of paCKAgE a1.
HeRe is my code (please hELp):
cOntainer File:
paCkage a1;
ImPOrT JAvaX.swIng.*;
import jAvA.awt.*;

pUBlic claSS gAMEconTAiner {

    public stAtic void addcOmpOnentstopanE(contaiNer paNe) {
        PAne.SetLayout(nuLl);

        //adD button to The panE
        jButton B3 = New JButTon("B1");
        paNe.aDd(b3);

        //Add lINe To The PaNE
        drAWiNgLINe lIne1 = new drAwInGLine();
        Pane.ADD(LIne1);

        //sIze And pOsitiOn all relativeLy          
        INsetS InsEts = paNe.getinseTs();
        dimenSion siZe;
        sizE = b3.GetPreferredSizE();        
        b3.seTBounds(350+inSetS.lEft,15+InSets.tOP,size.wIdtH+50,siZe.heighT+20);
        size = liNE1.geTPREFErRedSize();
        line1.setBounDs(350+INSeTs.left,75+inSets.toP,SiZe.WIdth+50,size.HeIghT+20);    

    }

    priVATe staTic vOId CreateAnDShowGui() {
        iNt L = 200, w = 80;

        //CreatE aNd set uP tHe wIndOw.
        JFrAMe frAme = new jFrame("FrAme");
        frAMe.setDefaultClOSeOperation(JFRAmE.exIt_oN_CLoSE);

        //set up contenT panE
        AddCOmpoNEnTsTOpane(fRame.gEtcOnTEntPane());

        //add menu bar
        JMEnUBar meNuBar = New JMenuBar();
        JMEnu menu = new jmENu("Menu");
        meNu.adD(NeW jMenuItem("Do notHing"));
        mEnuBar.add(mENu);
        frame.sEtJMeNuBar(menUBar);

        // size aND Display rOot PanE/wiNdoW
        iNsEts insets = framE
 line is not visible

I am  learningJavaonmyow n. T ryin g to create af rame  with a line in it. It  seem ed pret t ybasic , but I ca n ' t s ee  t heli n e.  Thecod e compi les and Ican 't  seem to und e rs tand why I  ca n't see thelin e. I s ee  ot h er co mpo nents  in th e  frame . 
I am u si n g 2 ja v a files . On e fi le is container f i le and the otherfile h as th e dra w l ine code.Th ey ar e  part o f  p a c k age a1.
Here is m y code (ple a sehelp): 
C ont a iner F ile:pa c kag e a1;
impor t ja vax.swing .*;
im p ort jav a .awt.*; 

publ iccla ss g a me Co nta in e r { 
  p ubl ic stati cvo id ad dCom p o n e ntsT oPa ne(C ontai ner pane) {
     p ane .setL ayout (nul l) ;

      //add  b utton to the pa ne
       JB utt on  b3  =  newJ Button ("B 1") ;
       pane . add (b 3 ) ; 
        //add line  t o th e pane
     dr aw i ngLine l in e1= ne w drawi ngLi n e( );
       pan e .a dd (line1) ;
      // siz e and posi tion a ll relat ively          
      Insets ins e ts =  p a ne.g etI nsets();
     Dim ensi o nsiz e ;
      si z e=  b3.getPreferredSiz e( );               b3.se tBounds(35 0 + i nsets.le ft,1 5 +i n sets.top,size. width +50,size.h e ight+20) ;
       siz e = line1 . g etPrefer red Siz e() ;
    line1.setB o u nds( 35 0+inset s.l eft,75+ ins ets .to p,s iz e.width+5 0,size.h ei gh t+ 20 );   
   }

  pri va testati c  voidcreat eAnd Sh ow G UI( ) {
   intl=200,  w=80;
     //Creat e and set  up thewi nd ow.
       JFrame f ra me = new J Fr ame ("Fram e " );
       frame.setDefaultClos e Operati on( JFram e.EX IT_ON_CLO SE) ;

     //Set  up co ntent  p ane     ad dCo mp onentsToPa n e (fr ame.g et Cont entPane ());

        //ad d  me nu bar
       J Menu B a rmen u Ba r  =ne w  JM e n uBar();
       JMenu men u=  n ew JMenu(" M enu ") ;
       menu .add( n ew JMen uItem("Do  nothing" )) ;
    menuBar.a dd(menu) ;
      frame . se tJMen uBa r(menu Ba r); 

       / /  si ze an d disp la y root  pane /w indow
       Insets insets = f rame
 line_is not_visible

I am learning Java_on my_own._Trying to_create_a frame with_a line in_it. It seemed pretty_basic, but I_can't_see the line. The code compiles and I can't seem to understand why I_can't_see the_line._I_see other components in the_frame. 
I am using 2_java files._One file is container file and the other_file_has the draw_line code. They are part of package a1.
Here is_my code (please help):
Container File:
package a1;
import_javax.swing.*;
import java.awt.*;

public class_gameContainer_{

_   public_static void addComponentsToPane(Container pane) {
 _     _pane.setLayout(null);

      _ //add button to the pane
_    _ _JButton b3 = new JButton("B1");
_  _ _  pane.add(b3);

_     _ //add line_to the pane
   __  _drawingLine_line1_= new_drawingLine();
  __ __ pane.add(line1);

    __  //size and position all relatively_   __   _
    _   Insets insets =_pane.getInsets();
 _ _    Dimension size;
     _  size = b3.getPreferredSize(); _   _ _
_  __ _ b3.setBounds(350+insets.left,15+insets.top,size.width+50,size.height+20);
     _ _size = line1.getPreferredSize();
   _   _line1.setBounds(350+insets.left,75+insets.top,size.width+50,size.height+20);_   

  _ }

    private_static void createAndShowGUI() {
 ___    int_l = 200, w = 80;

_  _    //Create and set_up_the window.
    __  JFrame frame = new_JFrame("Frame");
__    _ frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

    _   //Set up content pane
  _  _  addComponentsToPane(frame.getContentPane());

  ___   //add menu bar
    _ _ JMenuBar menuBar_= new JMenuBar();
       _JMenu menu = new JMenu("Menu");
  _     menu.add(new JMenuItem("Do nothing"));
   _    menuBar.add(menu);
   _    frame.setJMenuBar(menuBar);

  _   __// size and display root pane/window
 ____  _Insets insets =_frame