Standard Font-Auswahl-Dialog?

Status
Nicht offen für weitere Antworten.

DEvent

Bekanntes Mitglied
Hallo,
gibts ein Font-Auswahl-Dialog wie JColorChooser? Würde mir eine menge Arbeit ersparen.

danke, devent.
 

JPKI

Top Contributor
Nur so zur Frage: Was soll der Dialog können? Nur Schriftart auswählen oder auch Größe und Stil?
 

JPKI

Top Contributor
Ich weiss nicht, was mich geritten hat, aber hier hast du mal einen kleinen, simplen Font-Chooser (hatte grade mal Bock und Zeit):
Code:
/*
 * @(#) JPKIFontChooser.java
 *
 * Urheberrechtlich geschützt, JPKI.
 * Alle Rechte vorbehalten.
 */

package de.jpki.fontchooser;

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.border.*;

/**
 * Ein Schriftarten-Auswahldialog.
 *
 * @author JPKI
 * @version 1.00, 27 Mai 2007
 */

public class JPKIFontChooser extends JDialog implements ActionListener {

  private int confirmed;

  private JComboBox fontChooser, styleChooser, sizeChooser;
  private JButton ok, cancel;

  public JPKIFontChooser() {

   this(new JFrame());
 }

  public JPKIFontChooser(JFrame frame) {

   super(frame,"JPKI Schriftarten-Auswahldialog");
   setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);

   Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();

   setResizable(false);
   setSize(320,240);
   setLocation((dim.width-getSize().width)/2,(dim.height-getSize().height)/2);

   confirmed = 0;

   fontChooser = new JComboBox(createStringArray(GraphicsEnvironment.getLocalGraphicsEnvironment().getAllFonts()));
   fontChooser.setEditable(false);
   fontChooser.setBorder(new TitledBorder("Schriftart"));

   styleChooser = new JComboBox(new String[]{"Standard","Fett","Kursiv"});
   styleChooser.setEditable(false);
   styleChooser.setBorder(new TitledBorder("Schriftstil"));

   sizeChooser = new JComboBox(createIntegerArray(new int[]{8,10,12,14,16,18,20,28,36,72}));
   sizeChooser.setEditable(false);
   sizeChooser.setBorder(new TitledBorder("Schriftgröße"));

   ok = createJButton("Bestätigen","ok");
   cancel = createJButton("Abbrechen","cancel");

   JPanel comboPanel = new JPanel(new GridLayout(3,1));
   comboPanel.add(fontChooser);
   comboPanel.add(styleChooser);
   comboPanel.add(sizeChooser);

   JPanel buttonPanel = new JPanel(new FlowLayout(FlowLayout.CENTER,10,10));
   buttonPanel.add(ok);
   buttonPanel.add(cancel);   

   getContentPane().setLayout(new BorderLayout());
   getContentPane().add(comboPanel,BorderLayout.CENTER);
   getContentPane().add(buttonPanel,BorderLayout.SOUTH);
 }

  public Font showFontDialog() {

    setVisible(true);

    while (confirmed == 0)
     try { Thread.sleep(40); } catch (InterruptedException ex) {}

    if (confirmed == 2) {

     dispose();
     confirmed = 0;
     return null;
  }

    int style, size;
    String selectedStyle = (String)styleChooser.getSelectedItem();

    size = ((Integer)sizeChooser.getSelectedItem()).intValue();

    if (selectedStyle.equals("Standard"))
     style = Font.PLAIN;
    else if (selectedStyle.equals("Fett"))
     style = Font.BOLD;
    else
     style = Font.ITALIC;

    dispose();
    confirmed = 0;
    return new Font((String)fontChooser.getSelectedItem(),style,size);
 }

  public void actionPerformed(ActionEvent e) {

   String aC = e.getActionCommand();

   if (aC.equals("ok"))
    confirmed = 1;
   else
    confirmed = 2;
 }

  private Integer[] createIntegerArray(int numbers[]) {

   Integer integer[] = new Integer[numbers.length];

   for (int i = 0; i < numbers.length; i++)
    integer[i] = new Integer(numbers[i]);

   return integer;
 }

  private String[] createStringArray(Font fonts[]) {

   String string[] = new String[fonts.length];

   for (int i = 0; i < fonts.length; i++)
    string[i] = fonts[i].getName();

   return string;
 }

  private JButton createJButton(String title, String actionCommand) {

   JButton button = new JButton(title);
   button.setActionCommand(actionCommand);
   button.addActionListener(this);

   return button;
 }
}

Edit: Das ganze hat mit Schreiben im Editor und Testen nur 10 Minuten gedauert...
 

DEvent

Bekanntes Mitglied
danke für die Mühe, aber ich dachte da eher an einen normalen Fontauswahl-Dialog, wie man ihn von so vielen Windows/KDE/Gnome Anwendungen kennt, die etwas mit Textverarbeitung zu tun haben. Also sollte schon mit Vorschau usw. sein.

Ausserdem, machst du das immer so bei Dialogen:
Code:
     setVisible(true);
     while (confirmed == 0) 
     try { Thread.sleep(40); } catch (InterruptedException ex) {} 

    if (confirmed == 2) { 

     dispose(); 
     confirmed = 0; 
     return null; 
  }
Ein einfaches setModal(true) reicht da eigentlich. Denn mit der While-Schleife hast du den gesammten GUI-Thread blockiert, was meine Programm-Einfrierung erklären würde.
 

JPKI

Top Contributor
Ja, aber mit setModal() hätte ich das Problem nicht lösen können.
Dann wäre ja actionPerformed() ausgeführt worden, das hat ja den Typ void, und ich wollte doch ein Font-Objekt zurückgeben.
Was die Vorschau angeht: Du kannst den Quelltext doch nach deinen Vorlieben ändern.

Edit: Das hier ist mein 500ster Beitrag. Mann, bin ich stolz :wink:
 

DEvent

Bekanntes Mitglied
Also entweder bin ich zu blöd, oder???
Wieso funktioniert JCheckBox#isSelected() nicht mehr?

Wieso liefert mir JCheckBox#isSelected() immer false???

Code:
/*
 * Copyright (c) Ian F. Darwin, [url]http://www.darwinsys.com/[/url], 1996-2002.
 * All rights reserved. Software written by Ian F. Darwin and others.
 * $Id: LICENSE,v 1.8 2004/02/09 03:33:38 ian Exp $
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 *
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS''
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS
 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 * 
 * Java, the Duke mascot, and all variants of Sun's Java "steaming coffee
 * cup" logo are trademarks of Sun Microsystems. Sun's, and James Gosling's,
 * pioneering role in inventing and promulgating (and standardizing) the Java 
 * language and environment is gratefully acknowledged.
 * 
 * The pioneering role of Dennis Ritchie and Bjarne Stroustrup, of AT&T, for
 * inventing predecessor languages C and C++ is also gratefully acknowledged.
 */

import java.awt.BorderLayout;
import java.awt.Component;
import java.awt.Container;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.Frame;
import java.awt.GraphicsEnvironment;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;

import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.event.ListSelectionEvent;
import javax.swing.event.ListSelectionListener;

/**
 * A font selection dialog.
 * 


 * Note: can take a long time to start up on systems with (literally) hundreds
 * of fonts.
 * 
 * @author Ian Darwin
 * @version $Id: FontChooser.java,v 1.19 2004/03/20 20:44:56 ian Exp $
 */
public class FontChooser extends JDialog
{
    /**
     * 
     */
    private static final long serialVersionUID = -8257358275295265984L;

    /** The font the user has chosen */
    protected Font resultFont;

    /** Display text */
    protected String displayText = "Qwerty Yuiop";

    /** The list of Fonts */
    protected String fontList[];

    /** The font name chooser */
    protected JList fontNameChoice;

    /** The font size chooser */
    protected JList fontSizeChoice;

    /** The bold and italic choosers */
    private JCheckBox bold, italic;

    /** The list of font sizes */
    protected Integer fontSizes[] =
    { 8, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 30, 36,
            40, 48, 60, 72 };

    /** The index of the default size (e.g., 14 point == 4) */
    protected static final Integer DEFAULT_SIZE = 4;

    /**
     * The display area. Use a JLabel as the AWT label doesn't always honor
     * setFont() in a timely fashion :-)
     */
    protected JLabel previewArea;

    private final Font oldfont;

    private JButton okButton;

    private JButton canButton;

    /**
     * Construct a FontChooser -- Sets title and gets array of fonts on the
     * system. Builds a GUI to let the user choose one font at one size.
     */
    public FontChooser(Frame f, Font oldfont_)
    {
        super(f, "Font Chooser", true);

        this.oldfont = oldfont_;

        setLayout(new BorderLayout());

        previewArea = new JLabel(displayText, JLabel.CENTER);
        previewArea.setSize(200, 50);

        add(createTop(), BorderLayout.NORTH);
        add(previewArea, BorderLayout.CENTER);
        add(createBottom(), BorderLayout.SOUTH);

        setupDialog();
        previewFont(); // ensure view is up to date!

        pack();
        setLocation(100, 100);
    }

    private Component createBottom()
    {
        JPanel bot = new JPanel();

        okButton = new JButton("Apply");
        okButton.addActionListener(new ActionListener()
        {
            public void actionPerformed(ActionEvent e)
            {
                previewFont();
                setVisible(false);
            }
        });

        canButton = new JButton("Cancel");
        canButton.addActionListener(new ActionListener()
        {
            public void actionPerformed(ActionEvent e)
            {
                // Set all values to null. Better: restore previous.
                resultFont = oldfont;
                setVisible(false);
            }
        });

        bot.add(okButton);
        bot.add(canButton);

        return bot;
    }

    private Component createTop()
    {
        JPanel top = new JPanel(new FlowLayout());

        // Toolkit toolkit = Toolkit.getDefaultToolkit();
        // For JDK 1.1: returns about 10 names (Serif, SansSerif, etc.)
        // fontList = toolkit.getFontList();
        // For JDK 1.2: a much longer list; most of the names that come
        // with your OS (e.g., Arial), plus the Sun/Java ones (Lucida,
        // Lucida Bright, Lucida Sans...)
        fontList = GraphicsEnvironment.getLocalGraphicsEnvironment()
                .getAvailableFontFamilyNames();

        fontNameChoice = new JList(fontList);
        fontNameChoice.setSelectedIndex(0);
        fontNameChoice.addListSelectionListener(new ListSelectionListener()
        {
            @Override
            public void valueChanged(ListSelectionEvent e)
            {
                previewFont();
            }
        });

        fontSizeChoice = new JList(fontSizes);
        fontSizeChoice.setSelectedValue(DEFAULT_SIZE, true);
        fontSizeChoice.addListSelectionListener(new ListSelectionListener()
        {
            @Override
            public void valueChanged(ListSelectionEvent e)
            {
                previewFont();
            }
        });

        top.add(new JScrollPane(fontNameChoice), "0, 0");
        top.add(new JScrollPane(fontSizeChoice), "1, 0");
        top.add(createAttributes(), "2, 0");
        createAttributes();

        return top;
    }

    private Component createAttributes()
    {
        JPanel attrs = new JPanel(new GridLayout(0, 1));

        bold = new JCheckBox("Bold");
        bold.addItemListener(new ItemListener()
        {
            @Override
            public void itemStateChanged(ItemEvent e)
            {
                previewFont();
            }
        });

        italic = new JCheckBox("Italic");
        italic.addItemListener(new ItemListener()
        {
            @Override
            public void itemStateChanged(ItemEvent e)
            {
                previewFont();
            }
        });

        attrs.add(bold);
        attrs.add(italic);

        return attrs;
    }

    private void setupDialog()
    {
        if ( oldfont != null )
        {
            fontNameChoice.setSelectedValue(oldfont.getName(), true);
            fontSizeChoice.setSelectedValue(oldfont.getSize(), true);
            bold.setSelected(oldfont.isBold());
            italic.setSelected(oldfont.isItalic());
        }
    }

    /**
     * Called from the action handlers to get the font info, build a font, and
     * set it.
     */
    protected void previewFont()
    {
        String resultName = (String) fontNameChoice.getSelectedValue();
        Object selectedsize = fontSizeChoice.getSelectedValue();
        int resultSize = DEFAULT_SIZE;
        if ( selectedsize != null )
        {
            resultSize = (Integer) selectedsize;
        }

        boolean isBold = bold.isSelected();
        boolean isItalic = italic.isSelected();
        int attrs = Font.PLAIN;

        System.out.println("Preview");
        System.out.println("Bold: " + bold.isSelected());
        System.out.println("Italic: " + italic.isSelected());

        if ( isBold ) attrs = Font.BOLD;
        if ( isItalic ) attrs |= Font.ITALIC;
        resultFont = new Font(resultName, attrs, resultSize);
        // System.out.println("resultName = " + resultName + "; " +
        // "resultFont = " + resultFont);
        previewArea.setFont(resultFont);
        pack(); // ensure Dialog is big enough.
    }

    /** Retrieve the selected font, or null */
    public Font getSelectedFont()
    {
        return resultFont;
    }

    /** Simple main program to start it running */
    public static void main(String[] args)
    {
        final JFrame f = new JFrame("FontChooser Startup");
        final FontChooser fc = new FontChooser(f, null);
        final Container cp = f.getContentPane();
        cp.setLayout(new GridLayout(0, 1)); // one vertical column

        JButton theButton = new JButton("Change font");
        cp.add(theButton);

        final JLabel theLabel = new JLabel("Java is great!", JLabel.CENTER);
        cp.add(theLabel);

        // Now that theButton and theLabel are ready, make the action listener
        theButton.addActionListener(new ActionListener()
        {
            public void actionPerformed(ActionEvent e)
            {
                fc.setVisible(true);
                Font myNewFont = fc.getSelectedFont();
                System.out.println("You chose " + myNewFont);
                theLabel.setFont(myNewFont);
                f.pack(); // adjust for new size
                fc.dispose();
            }
        });

        f.setSize(200, 200);
        f.setVisible(true);
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }
}

btw, JCheckBox#setSelected() funktioniert auch nicht???
Immer das gleiche wenn man fremden Code benutzt, irgendwas geht immer schief :x
 

DEvent

Bekanntes Mitglied
JPKI hat gesagt.:
Ja, aber mit setModal() hätte ich das Problem nicht lösen können.
Dann wäre ja actionPerformed() ausgeführt worden, das hat ja den Typ void, und ich wollte doch ein Font-Objekt zurückgeben.
Was die Vorschau angeht: Du kannst den Quelltext doch nach deinen Vorlieben ändern.

Edit: Das hier ist mein 500ster Beitrag. Mann, bin ich stolz :wink:
Dafür frierst du aber den GUI-Thread ein, so das man garnichts mehr benutzen kann.

Code:
Font getSelectedFont()
{
    setModal(true);
    setVisible(true); // Der Code wird solange angehalten,
                                  // bis der Benutzer das Dialog schließt
                                  // ohne den GUI-Thread zu stoppen
    if ( confirmed )
    {
         return neuer_font;
    }
    else return alter_font;
 

DEvent

Bekanntes Mitglied
kleiner_held hat gesagt.:
createAttributes(); wird ein zweites mal aufgerufen (Zeile 210) damit werden die JCheckBox Instanzen überschrieben.
Danke :) das habe ich total übersehen, jetzt funktioniert der Dialog.
 
Status
Nicht offen für weitere Antworten.
Ähnliche Java Themen
  Titel Forum Antworten Datum
G Frame,Font,Standard,Schriftart,JFrame AWT, Swing, JavaFX & SWT 3
Neumi5694 Sprache der Standard-Buttons AWT, Swing, JavaFX & SWT 7
R Standard-Symbole AWT, Swing, JavaFX & SWT 6
V Bestellungsverwaltung nach MVC-Standard AWT, Swing, JavaFX & SWT 6
G Welcher Teil der Java Standard Edition API ist für das Zeichnen von einfachen Grafiken gedacht? AWT, Swing, JavaFX & SWT 3
B Standard Icons wo findet man diese? AWT, Swing, JavaFX & SWT 20
Daniel_L Actionmap - Standard-Actions? AWT, Swing, JavaFX & SWT 2
T Standard Icons AWT, Swing, JavaFX & SWT 7
M JCheckBox Standard MouseListener entfernen AWT, Swing, JavaFX & SWT 13
Steev Standard Design bei JFrame und AWT AWT, Swing, JavaFX & SWT 7
K Windows Style als standard? AWT, Swing, JavaFX & SWT 2
C Textfield Background auf Standard zurücksetzen AWT, Swing, JavaFX & SWT 2
A JLabel – Standard Rahmen soll unterdruckt werden AWT, Swing, JavaFX & SWT 2
G standard blau (windows) != color.blue AWT, Swing, JavaFX & SWT 2
D Standard Email Client starten AWT, Swing, JavaFX & SWT 8
M Look and Feel Standard AWT, Swing, JavaFX & SWT 5
G standard system icons AWT, Swing, JavaFX & SWT 1
0 Ist "sequence.fallback" aus den font.properties zur Laufzeit änderbar AWT, Swing, JavaFX & SWT 0
I Anderes (schlechteres) Font-Rendering in OpenJDK 8 AWT, Swing, JavaFX & SWT 21
Splayfer Custom Font in AttributedString Java AWT, Swing, JavaFX & SWT 4
L JavaFX Eigene Font benutzen AWT, Swing, JavaFX & SWT 6
B AWT Font Größenverhältnisse AWT, Swing, JavaFX & SWT 2
Blender3D Problem mit € Symbol Font Gotham Windows 10 Swing AWT, Swing, JavaFX & SWT 11
L Font für Dashboard AWT, Swing, JavaFX & SWT 3
Tronert JavaFX Fehler beim Ändern der font-weight AWT, Swing, JavaFX & SWT 7
S Swing JColorChooser Font ändern AWT, Swing, JavaFX & SWT 2
N JLabel HTML mit custom Font AWT, Swing, JavaFX & SWT 0
A AWT TTF-Datei zu Font-Objekt finden? AWT, Swing, JavaFX & SWT 5
Y Globale Font-Color definieren AWT, Swing, JavaFX & SWT 5
F java.awt.Font - ist das wirklich alles? AWT, Swing, JavaFX & SWT 3
Luk10 Ungewollte Unicode Characters im Font AWT, Swing, JavaFX & SWT 5
S Font laden, Wort zeichnen und animieren..? AWT, Swing, JavaFX & SWT 2
M Font Size in FormsEditor AWT, Swing, JavaFX & SWT 2
F Font in JTable setzen AWT, Swing, JavaFX & SWT 7
1 Font ändern AWT, Swing, JavaFX & SWT 5
I Textbreite von Font inklusive Tabs ermitteln AWT, Swing, JavaFX & SWT 4
T Swing Font für alle Komponenten ändern AWT, Swing, JavaFX & SWT 2
Dit_ Font durchgestrichen AWT, Swing, JavaFX & SWT 6
B Welche Font Family ist vorhanden? AWT, Swing, JavaFX & SWT 3
N Swing JEditorPane mit Farbe und Font AWT, Swing, JavaFX & SWT 2
M JSpinner Font ändern AWT, Swing, JavaFX & SWT 4
H anderes font in textarea AWT, Swing, JavaFX & SWT 2
Schandro Den größten passenden java.awt.Font zu einem Rectangle berechnen AWT, Swing, JavaFX & SWT 2
D Font laden AWT, Swing, JavaFX & SWT 2
T Font mit Border AWT, Swing, JavaFX & SWT 7
Fu3L Wie Schriftfarbe und Font global setzen? AWT, Swing, JavaFX & SWT 5
J Font Änderung nach Editorwechsel? AWT, Swing, JavaFX & SWT 3
A Font: Ist Schriftart überall verfügbar? AWT, Swing, JavaFX & SWT 4
I font-größe ermitteln AWT, Swing, JavaFX & SWT 4
S jTable Font einer Zelle ändern AWT, Swing, JavaFX & SWT 5
StephenKing Font-Größe in JTextField normalisieren AWT, Swing, JavaFX & SWT 6
I GUI - Font und Labelklick AWT, Swing, JavaFX & SWT 6
S JTree - Renderer - Font AWT, Swing, JavaFX & SWT 3
R Schriftfarbe ändern in JTextArea / Font bekommen AWT, Swing, JavaFX & SWT 2
V Font setzen in JLabel AWT, Swing, JavaFX & SWT 6
M Schwieriges Label - Font - Problem "Dynamisches Label&a AWT, Swing, JavaFX & SWT 7
TheJavaKid font lässt sich bei der jtextarea nur einmal ändern AWT, Swing, JavaFX & SWT 3
G Font in JTextArea ändern AWT, Swing, JavaFX & SWT 2
I Font 2 Vektor AWT, Swing, JavaFX & SWT 3
V falscher Unicode font AWT, Swing, JavaFX & SWT 6
S Hilfe bei java.awt.Font AWT, Swing, JavaFX & SWT 7
H Create Font will nicht AWT, Swing, JavaFX & SWT 5
G Font tiefergestellt AWT, Swing, JavaFX & SWT 2
G Font nur für einen Teil String im JTextArea AWT, Swing, JavaFX & SWT 5
H Liste von Font Sizes und Colors AWT, Swing, JavaFX & SWT 4
D Font eines JLabels verändern, JLabel mit LookAndFeel-Format AWT, Swing, JavaFX & SWT 2
B Font fett setzen AWT, Swing, JavaFX & SWT 2
K Textarea aktuallisiert sich nicht, nach Auswahl (Itemlistener) AWT, Swing, JavaFX & SWT 3
R Auswahl mehrerer JComboBoxen verknüpfne AWT, Swing, JavaFX & SWT 17
P JavaFX aktuelle Tabellenzeile bei Choice-Box-Auswahl in Zelle ermitteln AWT, Swing, JavaFX & SWT 28
B Mit der ChoiceBox-Auswahl Textfelder hinzufügen AWT, Swing, JavaFX & SWT 18
S n aus m - Auswahl AWT, Swing, JavaFX & SWT 2
M Swing JList Auswahl-GUI-Konzept AWT, Swing, JavaFX & SWT 9
C JavaFX Inhalt eines SplitPane's durch Menü-Auswahl ändern? AWT, Swing, JavaFX & SWT 13
M Auswahl aus einer ListView AWT, Swing, JavaFX & SWT 3
F JavaFX ChoiceBox Name als Auswahl bei einer Objektliste AWT, Swing, JavaFX & SWT 4
G Swing ComboBox: Auswahl eines Items der Liste durch Eingabe eines Buchstabens AWT, Swing, JavaFX & SWT 3
M Combo Box auswahl in eine Datenbank speichern AWT, Swing, JavaFX & SWT 1
M JavaFX Combobox - Item Auswahl mit Tasten AWT, Swing, JavaFX & SWT 8
S JComboBox nach auswahl erneuern AWT, Swing, JavaFX & SWT 4
A Swing bei Auswahl und klick eines JComboBox buttons die Klasse eines anderen Projekts aufrufen AWT, Swing, JavaFX & SWT 3
T Importer-Auswahl im JFileChooser AWT, Swing, JavaFX & SWT 3
J AWT choice mit viel Auswahl aktualisiert sich nicht korrekt beim scrollen?! AWT, Swing, JavaFX & SWT 3
I Anhand ButtonGroup eine Auswahl treffen AWT, Swing, JavaFX & SWT 2
P Listener Auswahl Tabelle AWT, Swing, JavaFX & SWT 6
M JComboBox Item-Auswahl in JTable AWT, Swing, JavaFX & SWT 2
M SWT Wie mehr als 5000 Einträge zur Auswahl geben? AWT, Swing, JavaFX & SWT 9
G JComboBox mit CellRenderer (Auswahl) AWT, Swing, JavaFX & SWT 11
N automatische Auswahl einer JComboBox AWT, Swing, JavaFX & SWT 6
E JTree Auswahl AWT, Swing, JavaFX & SWT 2
P Swing Auswahl einer JComboBox für eine andere JComboBox übernehmen AWT, Swing, JavaFX & SWT 4
R JPanel wird erst neu gezeichnet nach erneuter auswahl AWT, Swing, JavaFX & SWT 8
F Swing Auf JComboBox-Event erst NACH Auswahl reagieren AWT, Swing, JavaFX & SWT 8
T Auswahl in GUI-Builder mit Grafiken ausstatten AWT, Swing, JavaFX & SWT 4
M Swing jList Auswahl löschen AWT, Swing, JavaFX & SWT 2
H JTree - nach Auswahl aus JFileChooser wird nur der erste Knoten angezeigt AWT, Swing, JavaFX & SWT 3
U JComboBox: (Vor)auswahl nach Aktualisierung AWT, Swing, JavaFX & SWT 2
Semox Swing JMenuItem-Auswahl mit Aktion ausführen AWT, Swing, JavaFX & SWT 4
C Welche Farbe hat die Auswahl in einer JTable? AWT, Swing, JavaFX & SWT 2
M SWT Wie Textfeld hinzufügen, nach Auswahl von einem bestimmten Combobox-item? AWT, Swing, JavaFX & SWT 3

Ähnliche Java Themen

Neue Themen


Oben