예제 #1
0
 void exit_mouseReleased(MouseEvent e) {
   exit.setBounds(new Rectangle(15, 340, 129, 36));
   System.exit(0);
 }
예제 #2
0
 void exit_mouseExited(MouseEvent e) {
   labelSalir.setVisible(false);
   exit.setBounds(new Rectangle(15, 340, 129, 36));
 }
예제 #3
0
 void exit_mousePressed(MouseEvent e) {
   exit.setBounds(new Rectangle(16, 341, 129, 36));
 }
예제 #4
0
  /**
   * Initialize frame
   *
   * @throws java.lang.Exception
   */
  private void initializeModulesFrame() throws Exception {
    // frame initialization
    this.setFont(new java.awt.Font("Arial", 0, 11));
    this.setIconImage(
        Toolkit.getDefaultToolkit()
            .getImage(
                this.getClass().getResource("/keel/GraphInterKeel/resources/ico/logo/logo.gif")));
    this.setSize(new Dimension(640, 480));
    this.setTitle("Keel");
    this.setResizable(false);

    // Create panel
    contentPane = (JPanel) this.getContentPane();
    contentPane.setLayout(null);

    // panel background
    fondo.setText("");
    fondo.setBounds(new Rectangle(0, 0, 640, 480));
    fondo.setFont(new java.awt.Font("Arial", 0, 11));
    fondo.setIcon(
        new ImageIcon(
            this.getClass().getResource("/keel/GraphInterKeel/resources/imag/menu/fondo.gif")));

    exit.setText("Exit KEEL");
    exit.setBounds(new Rectangle(294, 327, 129, 36));
    exit.setFont(new java.awt.Font("Arial", 0, 11));

    // labels associated to buttons
    labelSalir.setFont(new java.awt.Font("Arial", 1, 18));
    labelSalir.setForeground(Color.white);
    labelSalir.setText("Exit KEEL");
    labelSalir.setBounds(new Rectangle(40, 412, 595, 27));
    labelSalir.setVisible(false);

    labelBack.setFont(new java.awt.Font("Arial", 1, 18));
    labelBack.setForeground(Color.white);
    labelBack.setText("Back to Keel Suite Menu");
    labelBack.setBounds(new Rectangle(40, 412, 595, 27));
    labelBack.setVisible(false);

    labelLQD.setFont(new java.awt.Font("Arial", 1, 18));
    labelLQD.setForeground(Color.white);
    labelLQD.setText("Experiments Design with Low Quality Data");
    labelLQD.setBounds(new Rectangle(40, 412, 465, 27));
    labelLQD.setVisible(false);

    labelImbalance.setFont(new java.awt.Font("Arial", 1, 18));
    labelImbalance.setForeground(Color.white);
    labelImbalance.setText("Experiments with Imbalanced Datasets");
    labelImbalance.setBounds(new Rectangle(40, 412, 465, 27));
    labelImbalance.setVisible(false);

    labelNonParametric.setFont(new java.awt.Font("Arial", 1, 18));
    labelNonParametric.setForeground(Color.white);
    labelNonParametric.setText("Non-Parametric Statistical Analysis");
    labelNonParametric.setBounds(new Rectangle(40, 412, 465, 27));
    labelNonParametric.setVisible(false);

    labelSSL.setFont(new java.awt.Font("Arial", 1, 18));
    labelSSL.setForeground(Color.white);
    labelSSL.setText("Semi-Supervised Learning");
    labelSSL.setBounds(new Rectangle(40, 412, 465, 27));
    labelSSL.setVisible(false);

    labelMil.setFont(new java.awt.Font("Arial", 1, 17));
    labelMil.setForeground(Color.white);
    labelMil.setText("Experiments with Multiple Instance Learning");
    labelMil.setBounds(new Rectangle(40, 412, 465, 27));
    labelMil.setVisible(false);

    contentPane.setFont(new java.awt.Font("Arial", 0, 11));

    keel.setText("");
    keel.setBounds(new Rectangle(160, 13, 336, 33));
    keel.setIcon(
        new ImageIcon(
            this.getClass().getResource("/keel/GraphInterKeel/resources/imag/menu/mod.png")));
    logotipo.setIcon(
        new ImageIcon(
            this.getClass().getResource("/keel/GraphInterKeel/resources/imag/menu/logotipo.png")));
    logotipo.setBounds(new Rectangle(550, 13, 65, 43));
    logotipo.addMouseListener(new FrameModules_logotipo_mouseAdapter(this));

    logotipoSoft.setIcon(
        new ImageIcon(
            this.getClass().getResource("/keel/GraphInterKeel/resources/imag/menu/Software.png")));
    logotipoSoft.setBounds(new Rectangle(30, 13, 75, 43));
    logotipoSoft.addMouseListener(new FrameModules_logotipoSoft_mouseAdapter(this));

    barraExit.setBounds(new Rectangle(0, 401, 751, 50));
    barraExit.setIcon(
        new ImageIcon(
            this.getClass().getResource("/keel/GraphInterKeel/resources/imag/menu/exit.png")));
    accionExit.setText("jLabel2");
    accionExit.setBounds(new Rectangle(536, 409, 94, 38));
    accionExit.addMouseListener(new FrameModules_accionExit_mouseAdapter(this));

    back.setBounds(new Rectangle(406, 409, 110, 38));
    back.addMouseListener(new FrameModules_back_mouseAdapter(this));

    // lqd.setBounds(new Rectangle(50, 140, 244, 40));
    lqd.setBounds(new Rectangle(50, 120, 244, 40));
    lqd.addMouseListener(new Frame_lqd_mouseAdapter(this));

    // imbalance.setBounds(new Rectangle(50, 200, 264, 38));
    imbalance.setBounds(new Rectangle(50, 180, 264, 38));
    imbalance.addMouseListener(new Frame_imbalance_mouseAdapter(this));

    // nonParametric.setBounds(new Rectangle(50, 260, 400, 42));
    nonParametric.setBounds(new Rectangle(50, 240, 400, 42));
    nonParametric.addMouseListener(new Frame_nonParametric_mouseAdapter(this));

    SSL.setBounds(new Rectangle(50, 300, 400, 42));
    SSL.addMouseListener(new Frame_SSL_mouseAdapter(this));

    //  mil.setBounds(new Rectangle(50, 320, 400, 42));
    mil.setBounds(new Rectangle(50, 360, 400, 42));
    mil.addMouseListener(new Frame_mil_mouseAdapter(this));

    lqd.setIcon(
        new ImageIcon(
            this.getClass().getResource("/keel/GraphInterKeel/resources/imag/menu/lqd.png")));
    imbalance.setIcon(
        new ImageIcon(
            this.getClass().getResource("/keel/GraphInterKeel/resources/imag/menu/imbalance.png")));
    nonParametric.setIcon(
        new ImageIcon(
            this.getClass()
                .getResource("/keel/GraphInterKeel/resources/imag/menu/nonParametric.png")));
    SSL.setIcon(
        new ImageIcon(
            this.getClass().getResource("/keel/GraphInterKeel/resources/imag/menu/SSL.png")));
    mil.setIcon(
        new ImageIcon(
            this.getClass().getResource("/keel/GraphInterKeel/resources/imag/menu/mil.png")));
    back.setIcon(
        new ImageIcon(
            this.getClass().getResource("/keel/GraphInterKeel/resources/imag/menu/back.png")));

    contentPane.add(back, null);
    contentPane.add(labelBack, null);

    contentPane.add(labelSalir, null);
    contentPane.add(labelLQD2, null);
    contentPane.add(labelLQD, null);
    contentPane.add(labelImbalance, null);
    contentPane.add(labelNonParametric, null);
    contentPane.add(labelSSL, null);
    contentPane.add(labelMil, null);
    // contentPane.add(lqd);
    contentPane.add(mil);
    contentPane.add(imbalance);
    contentPane.add(nonParametric);
    contentPane.add(SSL);
    contentPane.add(keel);
    contentPane.add(logotipo);
    contentPane.add(logotipoSoft);
    contentPane.add(barraExit);
    contentPane.add(fondo, null);
    contentPane.add(accionExit);
  }