Home > Back-end >  Don't know why there are always white under the TAB bar, turn to how to eliminate the white lac
Don't know why there are always white under the TAB bar, turn to how to eliminate the white lac

Time:09-23


Don't know why there are white in the above, for help how to remove the white border, don't know something wrong with the code
ImageIcon img1=new ImageIcon (" SRC/my4/mainbk1. JPG ");
JLabel jumpers jl1=new JLabel (img1);
JPanel j1=new JPanel ();
JFrame frameregister=new JFrame (" home page ");
Frameregister. SetContentPane (j1);
J1. Add (jumpers jl1);
JPanel jj1=new JPanel ();
Jumpers jl1. Add (jj1);
Frameregister. SetSize (1700, 1000);
Frameregister. SetLocationRelativeTo (null);//window centered
Jj1. SetSize (1700, 1000);/* * set size/
Jj1. SetOpaque (false);/* will be in charge on the control panel is set to */
Frameregister. SetResizable (false);//whether can zoom window
Frameregister. SetVisible (true);//display window
Frameregister. SetDefaultCloseOperation (WindowConstants. EXIT_ON_CLOSE);
  • Related