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
Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
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);