public TwoStopsGradient(){
  super("Two Stops Gradient");
  JPanel panel=new JPanel(new GridBagLayout());
  JButton button;
  panel.add(button=new DepthButton("New"),new GridBagConstraints(0,0,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.NONE,new Insets(3,3,3,3),0,0));
  button.setFocusPainted(false);
  panel.add(button=new DepthButton("Open"),new GridBagConstraints(1,0,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.NONE,new Insets(3,3,3,3),0,0));
  button.setFocusPainted(false);
  panel.add(button=new DepthButton("Save"),new GridBagConstraints(2,0,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.NONE,new Insets(3,3,3,3),0,0));
  button.setFocusPainted(false);
  add(panel);
  setSize(320,240);
}

public TwoStopsGradient ( ) { super ( "Two Stops Gradient" ) ; JPanel panel = new JPanel ( new GridBagLayout ( ) ) ; JButton button ; panel . add ( button = new DepthButton ( "New" ) , new GridBagConstraints ( 0 , 0 , 1 , 1 , 0.0 , 0.0 , GridBagConstraints . CENTER , GridBagConstraints . NONE , new Insets ( 3 , 3 , 3 , 3 ) , 0 , 0 ) ) ; button . setFocusPainted ( false ) ; panel . add ( button = new DepthButton ( "Open" ) , new GridBagConstraints ( 1 , 0 , 1 , 1 , 0.0 , 0.0 , GridBagConstraints . CENTER , GridBagConstraints . NONE , new Insets ( 3 , 3 , 3 , 3 ) , 0 , 0 ) ) ; button . setFocusPainted ( false ) ; panel . add ( button = new DepthButton ( "Save" ) , new GridBagConstraints ( 2 , 0 , 1 , 1 , 0.0 , 0.0 , GridBagConstraints . CENTER , GridBagConstraints . NONE , new Insets ( 3 , 3 , 3 , 3 ) , 0 , 0 ) ) ; button . setFocusPainted ( false ) ; add ( panel ) ; setSize ( 320 , 240 ) ; }
creates a new instance of twostopsgradient
