1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144
| import org.xml.sax.*;
import org.xml.sax.helpers.*;
import javax.xml.parsers.*;
import java.io.*;
import javax.swing.*;
/*
* XMLeditor.java
*
* Created on 23 août 2005, 09:45
*/
/**
*
* @author ulisateur
*/
public class XMLeditor extends javax.swing.JApplet {
/** Creates new form XMLeditor */
public XMLeditor() {
initComponents();
}
// <editor-fold defaultstate="collapsed" desc=" ParseXML ">
public void ParseXML() {
}
// </editor-fold>
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
*/
// <editor-fold defaultstate="collapsed" desc=" Generated Code ">
private void initComponents() {
jButton1 = new javax.swing.JButton();
jTextField1 = new javax.swing.JTextField();
jButton2 = new javax.swing.JButton();
jSeparator1 = new javax.swing.JSeparator();
jList1 = new javax.swing.JList();
jList2 = new javax.swing.JList();
jButton3 = new javax.swing.JButton();
jButton4 = new javax.swing.JButton();
jTextField2 = new javax.swing.JTextField();
jComboBox1 = new javax.swing.JComboBox();
jLabel1 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();
jButton5 = new javax.swing.JButton();
getContentPane().setLayout(null);
jButton1.setText("Ajout");
getContentPane().add(jButton1);
jButton1.setBounds(10, 270, 160, 25);
getContentPane().add(jTextField1);
jTextField1.setBounds(10, 250, 160, 20);
jButton2.setText("Suppression");
getContentPane().add(jButton2);
jButton2.setBounds(10, 300, 160, 25);
jSeparator1.setOrientation(javax.swing.SwingConstants.VERTICAL);
getContentPane().add(jSeparator1);
jSeparator1.setBounds(190, 0, 10, 340);
jList1.setMaximumSize(new java.awt.Dimension(100, 100));
jList1.setMinimumSize(new java.awt.Dimension(100, 100));
jList1.setPreferredSize(new java.awt.Dimension(100, 100));
getContentPane().add(jList1);
jList1.setBounds(10, 30, 160, 210);
jList2.setMaximumSize(new java.awt.Dimension(100, 100));
jList2.setMinimumSize(new java.awt.Dimension(100, 100));
jList2.setPreferredSize(new java.awt.Dimension(100, 100));
getContentPane().add(jList2);
jList2.setBounds(200, 30, 160, 210);
jButton3.setText("Ajout");
getContentPane().add(jButton3);
jButton3.setBounds(200, 270, 160, 25);
jButton4.setText("Suppression");
getContentPane().add(jButton4);
jButton4.setBounds(200, 300, 160, 25);
getContentPane().add(jTextField2);
jTextField2.setBounds(200, 250, 160, 21);
getContentPane().add(jComboBox1);
jComboBox1.setBounds(420, 20, 80, 21);
jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel1.setText("Cat\u00e9gories");
getContentPane().add(jLabel1);
jLabel1.setBounds(10, 10, 150, 15);
jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel2.setText("Liens");
getContentPane().add(jLabel2);
jLabel2.setBounds(190, 10, 170, 15);
jLabel3.setText("Langue");
getContentPane().add(jLabel3);
jLabel3.setBounds(370, 20, 50, 15);
jButton5.setText("Avanc\u00e9e");
getContentPane().add(jButton5);
jButton5.setBounds(379, 230, 100, 25);
}
// </editor-fold>
// Variables declaration - do not modify
private javax.swing.JButton jButton1;
private javax.swing.JButton jButton2;
private javax.swing.JButton jButton3;
private javax.swing.JButton jButton4;
private javax.swing.JButton jButton5;
private javax.swing.JComboBox jComboBox1;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel3;
private javax.swing.JList jList1;
private javax.swing.JList jList2;
private javax.swing.JSeparator jSeparator1;
private javax.swing.JTextField jTextField1;
private javax.swing.JTextField jTextField2;
// End of variables declaration
public void init() {
DefaultListModel model = new DefaultListModel();
jList1=new JList(model);
model.addElement("toto");
jList1.updateUI();
}
} |
Partager