Ich wollte einfach mal schnell ein Image in mein GridBagLayout einstellen, das war wohl nichts :lol:.
Buttons, Charts geht alles, aber das Bild will nicht erscheinen, hat jemand eine Idee - Danke? :toll:
Die Fehlermeldung die ich bekomme:
- The method add(String, Component) in the type Container is not applicable for the arguments (ImageIcon, GridBagConstraints)
- Line breakpoint: Dashboard [line: 74] - main(String[])
Buttons, Charts geht alles, aber das Bild will nicht erscheinen, hat jemand eine Idee - Danke? :toll:
Java:
ImageIcon imageIcon = new ImageIcon("LOGO.gif");
Image image = imageIcon.getImage();
c.fill = GridBagConstraints.HORIZONTAL;
c.gridx = 2;
c.gridy = 0;
pane.addImage(imageIcon, c); <-- Zeile 74
Die Fehlermeldung die ich bekomme:
- The method add(String, Component) in the type Container is not applicable for the arguments (ImageIcon, GridBagConstraints)
- Line breakpoint: Dashboard [line: 74] - main(String[])