I have a jlabel with an image icon that is not showing.
Public class lockscreen Jeffrey {JPNL layer; Jebton Signin; Image icon hartlocks; String hartlockpath; Jellabal HeartlockDisplay; String arrow; Public lock-screen () {super ("star site"); Set size (700, 400); Set Location (100, 100); SetDefaultCloseOperation (JFrame.EXIT_ON_CLOSE); Arrow = "C: \\ user \\ says \ \ picture \\ Firmaydiri \\ right_airo page"; Sinin = new pocket (); Signin.setSize (19, 12); Signin.setIcon (New ImageIcon); Signin.setLocation (250, 500); Hartlock path = "C: \\ user \\", says Daniel PictureFarmmedri \\ 082326 -Green-Jelly-Icon-Business-Lock-Heart-Penda "; Dillock = New Image (Hartlockpath); Hartlocdisplay = New JLab (); Heartlockdisplay.setIcon (heartlock); Heart DocSpple.Setcation (250, 250); Heartlockdisplay.setSize (heartlock.getIconWidth), heartlock.getIconHeight ()); Heartlockdisplay.setVisible (true); Layer = new zpn (); Layer.setBackground (Color.black); /laylayer.setLayout (...); * / addEverything (layer); . GetContentPane () (layer) add; SetVisible (true); } Public Zero addEverything (JPNL Panel) {panel.add (signin); Panel.add (heartlockdisplay); Panel.repaint (); }}
You have to add it, and then it should be visible. / P>
As::
panel.ad (hartlockdesphere); Heartlockdisplay.setVisible (true); Panel.setVisible (true);
Comments
Post a Comment