Examples of AddEncodingDialog


Examples of net.sf.soundcomp.ide.dialog.AddEncodingDialog

                .addGap(12, 12, 12))
        );
    }// </editor-fold>//GEN-END:initComponents

    private void addButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_addButtonActionPerformed
        AddEncodingDialog dialog = new AddEncodingDialog(((SingleFrameApplication) org.jdesktop.application.Application.getInstance()).getMainFrame(), true);
        dialog.setEncodings(((EncodingsListModel) jList1.getModel()).getCharsets());
        dialog.setLocationRelativeTo(dialog.getParent());
        dialog.setVisible(true);
        if (dialog.getOption() == JOptionPane.OK_OPTION) {
            ((EncodingsListModel) jList1.getModel()).addAll(dialog.getEncodings(), jList1.isSelectionEmpty() ? -1 : jList1.getSelectedIndex());
        }
    }//GEN-LAST:event_addButtonActionPerformed
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.