also ich weiss nicht!🙁
wie soll ich das Icon den hinzufügen??
und dann motzt der Compiler beim weg lassen des hintergrundes und rahmen ganz böse mit mir 😉
oh je ich verzweifel
also ich erzeuge zb ein Button und ein text Area
xButton = new Button("x");
xButton.setBounds(280, 160, 100, 25);
xButton.setFont(fntFett);
xButton.addActionListener(this);//#####
add(xButton);
xButton.setForeground(blau);
xButton.setBackground(Color.yellow);
taInfo = new TextArea();
taInfo.setBounds(20, 210, 360, 140);
taInfo.setFont(fntAusgabe);
add(taInfo);
taInfo.setForeground(Color.black);
taInfo.setBackground(Color.pink);
in der TextArea steht dann zb wie oft ich das bVersuch Button gedrückt habe
private void xButtonClicked()
{
taInfo.append("\"x\" geklickt\n");
}
nun soll das Button aber dreieckick sein und es bleibt bei mir aber immer viereckig
wenn ihr mir hier Helfen könnt dann 🙂)))!!!!!!!!!!!!!!!!!!!!!!!