Zum Inhalt springen

ManuSchmanu

Mitglieder
  • Gesamte Inhalte

    1
  • Benutzer seit

  • Letzter Besuch

Alle Inhalte von ManuSchmanu

  1. Folgendes: Ich habe eine Oberfläche, die aus einem JApplet mit mehreren JPanel, die wiederum JPanel haben. In einem dieser JPanel ist eine JComboBox. Wenn diese allerdings angeklickt wird, öffnet sich diese nicht (Nur, wenn man die Maus gedrückt hält). Ich habe eine andere JComboBox in einem JFrame. welche sich tadellos öffnen lässt. Muss ich daher irgendetwqas bestimmtes beachten, wenn ich eine JComboBox in ein JApplet einfüge? Anbei ein paar auszüge aus dem Quelltext: cBox=new JComboBox(); cBox.setPreferredSize(new Dimension(150, 25)); cBox.setOpaque(true); cBox.addActionListener(act); cBox.setVisible(true); Town[] t=sqlClient.getTownArray(act.getUser().getName()); String[] s=new String[t.length]; for(int i=0; i<t.length; i++) { s[i]=t[i].getName(); cBox.addItem(s[i]+" ("+t[i].getX()+"|"+t[i].getY()+")"); } if(this.getComponentCount()<6) { this.add(panTop); //HIER IST this EIN JPanel, was dem JApplet hinzugefügt wurde this.add(Box.createHorizontalStrut(10)); JPanel p=new JPanel(); p.add(cBox); this.add(p); this.add(panLeft); this.add(Box.createHorizontalStrut(10)); this.add(panRight);

Fachinformatiker.de, 2024 by SE Internet Services

fidelogo_small.png

Schicke uns eine Nachricht!

Fachinformatiker.de ist die größte IT-Community
rund um Ausbildung, Job, Weiterbildung für IT-Fachkräfte.

Fachinformatiker.de App

Download on the App Store
Get it on Google Play

Kontakt

Hier werben?
Oder sende eine E-Mail an

Social media u. feeds

Jobboard für Fachinformatiker und IT-Fachkräfte

×
×
  • Neu erstellen...