Examples of JDateChooser


Examples of com.toedter.calendar.JDateChooser

        JButton cancel = new JButton("Abbrechen");
        final JTextField fieldWord = new JTextField();
        final JTextField fieldTransWord = new JTextField();
        JButton transWord = new JButton("Übersetzung",new ImageIcon("icons/asterisk_orange.png"));
        JLabel timeLab = new JLabel("Datum");
        final JDateChooser timestamp = new JDateChooser();

        transWord.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent ae) {
                String translation = (String)JOptionPane.showInputDialog(null, "Bitte wählen Sie die Zielsprache aus:", "Zielsprache",
                    JOptionPane.QUESTION_MESSAGE, null, new Object[] { "de",
                        "en", "fr", "es", "it" }, "fr");
                if(translation != null){
                    fieldTransWord.setText(ba.getTranslation(fieldWord.getText(), "", translation));
                }
            }
        });

        // Daten fuellen
        final String[] data = (!edit?new String[0]:ba.getVokabel(id));
        if(edit){
            // Daten holen
            fieldWord.setText(data[2]);
            fieldTransWord.setText(data[3]);
            timestamp.setDate(new Date(Long.parseLong(data[1])*1000));
            cate.setSelectedItem(data[5]);
        }

        final JDialog newVokWin;
        Container vokCon;
 
        newVokWin = new JDialog();
        newVokWin.setModalityType(JDialog.ModalityType.APPLICATION_MODAL);
        vokCon = newVokWin.getContentPane();
        vokCon.setLayout(new GridLayout(/*3*/ 0, 2, 6, 3));
        newVokWin.setTitle("Neue Vokabel eintragen");
        newVokWin.setSize(600,300);
        newVokWin.setLocation(300,300);

        // Tasten
        cancel.setMnemonic('A');
        save.setMnemonic('S');

        // here we add the controls to the container.
        vokCon.add(labCate, "labCate");
        vokCon.add(cate, "cate");
        vokCon.add(word, "word");
        vokCon.add(fieldWord, "fieldWord");
        vokCon.add(transWord, "transWord");
        vokCon.add(fieldTransWord, "fieldTransWord");
        vokCon.add(timeLab, "timeLab");
        vokCon.add(timestamp, "timestamp");
        vokCon.add(save, "save");
        vokCon.add(cancel, "cancel");
 
        // Aktionen
        cancel.addActionListener(new ActionListener(){
            @Override
            public void actionPerformed(ActionEvent evt){
                newVokWin.dispose();
            }
        });
       
        save.addActionListener(new ActionListener(){
            @Override
            public void actionPerformed(ActionEvent evt){
                if(ba.checkInput(fieldWord.getText(),fieldTransWord.getText())){
                    if(!edit){
                        ba.saveInput(""+cate.getSelectedItem(),fieldWord.getText(),fieldTransWord.getText(),timestamp.getDate());
                    }else{
                        ba.saveInput(""+cate.getSelectedItem(),fieldWord.getText(),fieldTransWord.getText(),timestamp.getDate(), data[0], true);
                    }
                    newVokWin.dispose();
                    if(category){
                        showVokabeln(categoryName, true);
                    }else{
View Full Code Here

Examples of com.toedter.calendar.JDateChooser

     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        dcStart = new JDateChooser(new Date());
        dcEnd = new JDateChooser(new Date());
        lblDescStart = new ColoredLabel();
        lblDescEnd = new ColoredLabel();

        lblDescStart.setText(lang.getString("Start")); // NOI18N

View Full Code Here

Examples of com.toedter.calendar.JDateChooser

    @SuppressWarnings("unchecked")
    private void initComponents() {
        spComment = new JScrollPane();
        taComment = new JTextArea();
        spPanel = new SavePanel(this);
        dcStart = new JDateChooser();
        cbEmployees = new JComboBox();
        cbWorkPackages = new JComboBox();

        setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
        setTitle(lang.getString("EditDuration")); // NOI18N
View Full Code Here

Examples of com.toedter.calendar.JDateChooser

        spComment = new JScrollPane();
        taComment = new JTextArea();
        spPanel = new SavePanel(this);
        lblDescTask = new JLabel();
        lblDescStart = new ColoredLabel();
        dcStart = new JDateChooser();
        lblDescStartTime = new ColoredLabel();
        edtDuration = new JFormattedTextField(new DurationFormatter());
        edtStartTime = new JFormattedTextField();

        setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
View Full Code Here

Examples of com.toedter.calendar.JDateChooser

    cTextAreaAdres = new CTextArea(100);
    cTextAreaAdres.setLineWrap(true);
    cScrollPanePersonelAdres.setViewportView(cTextAreaAdres);

    jDateChooserMusteriTarih = new JDateChooser();
    jDateChooserMusteriTarih.setBounds(226, 504, 186, 20);
    jDateChooserMusteriTarih.setDate(new Date());
    ((JTextFieldDateEditor) jDateChooserMusteriTarih.getDateEditor())
        .setEditable(false);
View Full Code Here

Examples of com.toedter.calendar.JDateChooser

    cRadioButtonKrediKart.setFont(new Font("Tahoma", Font.BOLD, 12));
    cRadioButtonKrediKart.setBounds(132, 34, 110, 21);
    cPanelArama.add(cRadioButtonKrediKart);
    cRadioButtonKrediKart.setText("KRED\u0130 KARTI");

    jDateChooserIlkTarih = new JDateChooser();
    jDateChooserIlkTarih.setDate(new Date());
    jDateChooserIlkTarih.setBounds(427, 35, 110, 20);
    cPanelArama.add(jDateChooserIlkTarih);

    jDateChooserSonTarih = new JDateChooser();
    jDateChooserSonTarih.setDate(new Date());
    jDateChooserSonTarih.setBounds(574, 35, 110, 20);
    cPanelArama.add(jDateChooserSonTarih);

    cLabelIle = new JLabel();
View Full Code Here

Examples of com.toedter.calendar.JDateChooser

    cTextAreaPersonelAdres = new CTextArea(100);
    cTextAreaPersonelAdres.setLineWrap(true);
    cScrollPanePersonelAdres.setViewportView(cTextAreaPersonelAdres);

    jDateChooserPersonelTarih = new JDateChooser();
    jDateChooserPersonelTarih.setBounds(226, 363, 186, 20);
    ((JTextFieldDateEditor) jDateChooserPersonelTarih.getDateEditor())
        .setEditable(false);

    cTextFieldPersonelMaasTamKisim = new CTextField(7);
View Full Code Here

Examples of com.toedter.calendar.JDateChooser

    cTextAreaPersonelAdres = new CTextArea(100);
    cTextAreaPersonelAdres.setLineWrap(true);
    cScrollPanePersonelAdres.setViewportView(cTextAreaPersonelAdres);

    jDateChooserPersonelTarih = new JDateChooser();
    jDateChooserPersonelTarih.setBounds(226, 363, 186, 20);
    jDateChooserPersonelTarih.setDate(new Date());
    ((JTextFieldDateEditor) jDateChooserPersonelTarih.getDateEditor())
        .setEditable(false);
View Full Code Here

Examples of com.toedter.calendar.JDateChooser

    jPanelFiltre.setLayout(null);
    jPanelFiltre.setBackground(SystemColor.controlShadow);
    jPanelFiltre.setBounds(10, 11, 718, 66);
    contentPane.add(jPanelFiltre);

    jDateChooserIlkTarih = new JDateChooser(new Date());
    jDateChooserIlkTarih.setBounds(427, 35, 110, 20);
    jPanelFiltre.add(jDateChooserIlkTarih);

    jDateChooserSonTarih = new JDateChooser(new Date());
    jDateChooserSonTarih.setBounds(574, 35, 110, 20);
    jPanelFiltre.add(jDateChooserSonTarih);

    ((JTextFieldDateEditor) jDateChooserIlkTarih.getDateEditor())
        .setEditable(false);
View Full Code Here

Examples of com.toedter.calendar.JDateChooser

    gbc_jLabelTarih.insets = new Insets(0, 0, 0, 5);
    gbc_jLabelTarih.gridx = 1;
    gbc_jLabelTarih.gridy = 0;
    jPanelTarih.add(jLabelTarih, gbc_jLabelTarih);

    jDateChooserIlkTarih = new JDateChooser();
    GridBagConstraints gbc_jDateChooserIlkTarih = new GridBagConstraints();
    gbc_jDateChooserIlkTarih.fill = GridBagConstraints.HORIZONTAL;
    gbc_jDateChooserIlkTarih.insets = new Insets(0, 0, 0, 5);
    gbc_jDateChooserIlkTarih.gridx = 2;
    gbc_jDateChooserIlkTarih.gridy = 0;
    jPanelTarih.add(jDateChooserIlkTarih, gbc_jDateChooserIlkTarih);
    jDateChooserIlkTarih.setDate(new Date());
    ((JTextFieldDateEditor) jDateChooserIlkTarih.getDateEditor())
        .setEditable(false);
    ((JTextFieldDateEditor) jDateChooserIlkTarih.getDateEditor())
        .setFocusable(false);

    jDateChooserSonTarih = new JDateChooser();
    GridBagConstraints gbc_jDateChooserSonTarih = new GridBagConstraints();
    gbc_jDateChooserSonTarih.fill = GridBagConstraints.HORIZONTAL;
    gbc_jDateChooserSonTarih.insets = new Insets(0, 0, 0, 5);
    gbc_jDateChooserSonTarih.gridx = 3;
    gbc_jDateChooserSonTarih.gridy = 0;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.