programer85
Mitglied
Wie mache ich das, dass ich in Swing mehrere Bilder übereinander laufen lasse?
danke schon mal im voraus
danke schon mal im voraus
Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
public class Spiel extends JFrame {
JLabel jl_landscape, jl_figur, jl_spiel;
Container cp = getContentPane();
Spiel()
{
jl_landscape = new JLabel();
jl_landscape.setIcon(new ImageIcon("landscape.jpg"));
jl_landscape.setBounds(0,0,600,400);
jl_landscape.setOpaque(false);
jl_landscape.setVisible(false);
jl_figur = new JLabel();
jl_figur.setIcon(new ImageIcon("figur.jpg"));
jl_figur.setBounds(100,100,80,80);
jl_figur.setOpaque(false);
cp.add(jl_landscape);
cp.add(jl_figur);