示例#1
2
  AdminMain() {
    l = new JLabel();
    l.setBounds(10, 20, 1340, 1000);
    l.setBackground(Color.black);
    Font ft = new Font("Arial", Font.BOLD, 30);
    Font ft1 = new Font("Arial", Font.BOLD, 14);
    Font ft2 = new Font("Arial", Font.BOLD, 20);

    f1 = new Frame("Soft Test Management (Beta)");
    f1.setLayout(null);

    l1 = new Label("Test Instructions", l1.CENTER);
    l1.setBounds(10, 20, 1300, 60);
    l1.setForeground(Color.blue);
    l1.setBackground(Color.white);
    l1.setFont(ft);

    l2 = new JLabel("Deletion of Faculty/Students");
    l2.setBounds(20, 30, 1000, 500);
    l2.setBackground(Color.blue);
    l2.setFont(ft2);
    l3 = new JLabel("Test Pattern");
    l3.setBounds(20, 90, 1300, 500);
    l3.setBackground(Color.green);
    l3.setFont(ft2);

    b1 = new JButton("Go !");
    b1.setBounds(300, 220, 120, 30);
    b1.setBackground(Color.white);
    b1.setForeground(Color.blue);
    b1.setFont(ft2);

    b2 = new JButton("Go");
    b2.setBounds(300, 240, 120, 30);
    b2.setBackground(Color.white);
    b2.setForeground(Color.blue);
    b2.setFont(ft2);

    f1.add(l);
    l.add(l1);
    l2.add(b1);
    l.add(l2);
    l3.add(b2);
    l.add(l3);

    b1.addActionListener(this);
    b2.addActionListener(this);

    f1.setVisible(true);
    f1.setSize(1800, 800);
  }
示例#2
0
  public QP4_PriceDistance(GasSAXManager _gasSAXReader) {
    que = new Q4_PriceDistance(_gasSAXReader);
    try {
      Label label1 = new Label(new String("4/4 The last, which one is"));
      Label label2 = new Label(new String(" more important?"));
      CheckboxGroup choiceGroup = new CheckboxGroup();
      cBox_Price = new Checkbox(Q4_PriceDistance.PRICE_STR, choiceGroup, true);
      cBox_Price.setForeground(Color.WHITE);
      cBox_Distance = new Checkbox(Q4_PriceDistance.DISTANCE_STR, false);
      cBox_Distance.setForeground(Color.WHITE);
      cBox_Price.addItemListener(this);
      cBox_Distance.addItemListener(this);
      cBox_Distance.setCheckboxGroup(choiceGroup);

      label1.setForeground(Color.WHITE);
      label2.setForeground(Color.WHITE);
      label1.setBounds(new Rectangle(17, 58, 165, 21));
      label2.setBounds(new Rectangle(38, 78, 127, 16));

      this.setLayout(null);

      cBox_Price.setBounds(new Rectangle(38, 101, 118, 22));
      cBox_Distance.setBounds(new Rectangle(38, 126, 119, 22));

      this.add(cBox_Price, null);
      this.add(cBox_Distance, null);
      this.add(label1, null);
      this.add(label2, null);
    } catch (Exception ex) {
      ex.printStackTrace();
    }
  }
示例#3
0
  public D(String title) {
    super(title);
    setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
    int frameWidth = 410;
    int frameHeight = 319;
    setSize(frameWidth, frameHeight);
    Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
    int x = (d.width - getSize().width) / 2;
    int y = (d.height - getSize().height) / 2;
    setLocation(x, y);
    setResizable(false);
    Container cp = getContentPane();
    cp.setLayout(null);

    label1.setBounds(8, 8, 275, 76);
    label1.setText("Würfel");
    label1.setAlignment(Label.CENTER);
    label1.setFont(new Font("Dialog", Font.PLAIN, 60));
    cp.add(label1);
    l_1.setBounds(8, 88, 275, 145);
    l_1.setText("");
    l_1.setAlignment(Label.CENTER);
    l_1.setFont(new Font("Dialog", Font.PLAIN, 100));

    cp.add(l_1);
    b_1.setBounds(8, 248, 275, 25);
    b_1.setLabel("Würfeln");
    b_1.addActionListener(
        new ActionListener() {
          public void actionPerformed(ActionEvent evt) {
            b_1_ActionPerformed(evt);
          }
        });
    cp.add(b_1);
    tf_von.setBounds(336, 80, 49, 25);
    cp.add(tf_von);
    tf_bis.setBounds(336, 120, 49, 25);
    cp.add(tf_bis);
    l_von.setBounds(296, 80, 35, 25);
    l_von.setText("Von:");
    cp.add(l_von);
    l_bis.setBounds(296, 120, 35, 25);
    l_bis.setText("Bis:");
    cp.add(l_bis);
    b_a.setBounds(296, 160, 89, 49);
    b_a.setLabel("Annehmen");
    b_a.addActionListener(
        new ActionListener() {
          public void actionPerformed(ActionEvent evt) {
            b_a_ActionPerformed(evt);
          }
        });
    cp.add(b_a);

    setVisible(true);
  }
示例#4
0
文件: UI.java 项目: mhartopo/Gomoku
  /**
   * Initialize the contents of the frame.
   *
   * @throws IOException
   */
  private void initialize() throws IOException {
    frmGomoku = new JFrame();
    frmGomoku.setTitle("GOMOKU");
    frmGomoku.setBounds(150, 20, 1000, 670);
    frmGomoku.setResizable(false);
    frmGomoku.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
    frmGomoku.addWindowListener(
        new WindowAdapter() {
          public void windowClosing(WindowEvent e) {
            try {
              listener.close();
            } catch (IOException e1) {
              // TODO Auto-generated catch block
              e1.printStackTrace();
            }
          }
        });
    frmGomoku.getContentPane().add(layeredPane);
    setLayeredPane();
    JLabel lblGomoku = DefaultComponentFactory.getInstance().createTitle("G . O . M . O . K . U");
    lblGomoku.setFont(new Font("Roboto", Font.BOLD, 20));
    lblGomoku.setBounds(425, 11, 205, 38);
    layeredPane.add(lblGomoku);

    textField = new TextField();
    textField.setBounds(764, 27, 182, 22);
    layeredPane.add(textField);

    textField_1 = new TextField();
    textField_1.setBounds(764, 74, 182, 22);
    layeredPane.add(textField_1);

    button = new Button("Maiin");
    button.setBackground(Color.WHITE);

    button.setBounds(764, 106, 105, 22);
    layeredPane.add(button);
    Label label = new Label("Nama");
    label.setBounds(689, 27, 62, 22);
    layeredPane.add(label);
    Label label_1 = new Label("Nama room");
    label_1.setBounds(689, 74, 69, 22);
    layeredPane.add(label_1);

    lblGiiliran = DefaultComponentFactory.getInstance().createLabel("");
    lblGiiliran.setFont(new Font("Tahoma", Font.BOLD, 15));
    lblGiiliran.setBounds(689, 221, 257, 22);
    layeredPane.add(lblGiiliran);

    lblRoom = DefaultComponentFactory.getInstance().createLabel("");
    lblRoom.setFont(new Font("Tahoma", Font.PLAIN, 14));
    lblRoom.setBounds(689, 170, 257, 22);
    layeredPane.add(lblRoom);
    listener = new ServerSocket(PORT);
  }
示例#5
0
  public Bai2() {

    lbNumber1.setText("a =");
    lbNumber2.setText("b =");
    lbResult.setText("Kết quả:");
    txtNumber1.setText("0");
    txtNumber2.setText("0");
    txtResult.setText("0");
    btResult.setLabel("Thực hiện");
    choCalculator.add("Cộng");
    choCalculator.add("Trừ");
    choCalculator.add("Nhân");
    choCalculator.add("Chia");
    choCalculator.add("UCLN");
    choCalculator.add("BCNN");

    frMain.setBounds(100, 100, 400, 300);
    frMain.setBackground(Color.LIGHT_GRAY);
    frMain.setLayout(null);

    lbNumber1.setBounds(30, 50, 50, 20);
    lbNumber2.setBounds(30, 70, 50, 20);
    lbResult.setBounds(30, 140, 50, 20);

    choCalculator.setBounds(300, 70, 60, 20);

    btResult.setBounds(100, 100, 100, 20);

    txtNumber1.setBounds(100, 50, 150, 20);
    txtNumber2.setBounds(100, 70, 150, 20);
    txtResult.setBounds(100, 140, 150, 20);

    frMain.add(lbNumber1);
    frMain.add(lbNumber2);
    frMain.add(lbResult);
    frMain.add(txtNumber1);
    frMain.add(txtNumber2);
    frMain.add(txtResult);
    frMain.add(btResult);
    frMain.add(choCalculator);

    btResult.addActionListener(new ProcessButton());

    frMain.addWindowListener(
        new WindowAdapter() {
          public void windowsClosing(WindowEvent evt) {
            System.exit(0);
          }
        });
  }
示例#6
0
  /** DOCUMENT ME! */
  public void doLayout() {
    int x = getInsets().left;
    int y = getInsets().top;
    int width = getSize().width - getInsets().left - getInsets().right;
    int height = getSize().height - getInsets().top - getInsets().bottom;
    int space = 5;

    int cfx = playerInterface.getInsets().left;
    int cfy = playerInterface.getInsets().top;
    int cfwidth =
        playerInterface.getSize().width
            - playerInterface.getInsets().left
            - playerInterface.getInsets().right;
    int cfheight =
        playerInterface.getSize().height
            - playerInterface.getInsets().top
            - playerInterface.getInsets().bottom;

    int sqwidth = ColorSquare.WIDTH;
    int sqspace = (width - (5 * sqwidth)) / 5;

    int keepY;
    int discY;

    /* put the dialog in the center of the game window */
    setLocation(cfx + ((cfwidth - width) / 2), cfy + ((cfheight - height) / 2));

    try {
      msg.setBounds((width - 188) / 2, getInsets().top, 180, 20);
      discardBut.setBounds((width - 88) / 2, (getInsets().bottom + height) - 25, 80, 25);
      youHave.setBounds(getInsets().left, getInsets().top + 20 + space, 70, 20);
      discThese.setBounds(
          getInsets().left, getInsets().top + 20 + space + 20 + space + sqwidth + space, 100, 20);
    } catch (NullPointerException e) {
    }

    keepY = getInsets().top + 20 + space + 20 + space;
    discY = keepY + sqwidth + space + 20 + space;

    try {
      for (int i = 0; i < 5; i++) {
        keep[i].setSize(sqwidth, sqwidth);
        keep[i].setLocation((i * sqspace) + ((width - ((3 * sqspace) + (4 * sqwidth))) / 2), keepY);
        disc[i].setSize(sqwidth, sqwidth);
        disc[i].setLocation((i * sqspace) + ((width - ((3 * sqspace) + (4 * sqwidth))) / 2), discY);
      }
    } catch (NullPointerException e) {
    }
  }
示例#7
0
  public Deta_Ventas_r() {
    setBackground(Color.gray);
    setLayout(null);
    setSize(400, 400);
    l1 = new Label(" clave ");
    t1 = new TextField(36);
    l2 = new Label("Vendedor");
    t2 = new TextField(20);

    l3 = new Label("Cliente");
    t3 = new TextField(20);
    l4 = new Label("Fechas");
    t4 = new TextField(5);
    l5 = new Label("monto_final");
    t5 = new TextField(5);
    t4.setEditable(false);
    t5.setEditable(false);
    b = new Button("Registrar");
    add(l1);
    add(t1);
    add(l2);
    add(t2);
    add(l3);
    add(t3);
    add(l4);
    add(t4);
    add(l5);
    add(t5);
    add(b);
    l1.setBounds(24, 75, 71, 23);
    l2.setBounds(24, 103, 90, 23);
    l3.setBounds(24, 131, 90, 23);
    l4.setBounds(24, 159, 90, 23);
    l5.setBounds(24, 185, 90, 23);
    t1.setBounds(114, 75, 270, 23);
    t2.setBounds(114, 103, 270, 23);
    t3.setBounds(114, 131, 270, 23);
    t4.setBounds(114, 159, 270, 23);
    t5.setBounds(114, 185, 270, 23);
    b.setBounds(167, 215, 65, 23);
    b.addActionListener(this);
    setUndecorated(true);
    setLocation((Toolkit.getDefaultToolkit().getScreenSize().width / 2) - 200, 50);
    start();
  }
示例#8
0
 public LoginScreen(final Home hm) {
   setSize(600, 550);
   setLayout(null);
   this.hm = hm;
   name = new Label("Username : "******"Password :"******"login");
   login.addActionListener(
       new ActionListener() {
         public void actionPerformed(ActionEvent e) {
           try {
             if (isValidUser()) {
               hm.removeAll();
               hm.userId = nameText.getText();
               hm.p2 = new BaseApplet(hm);
               hm.p2.setBounds(0, 50, 600, 550);
               hm.add(hm.p2);
               hm.revalidate();
             } else {
               JOptionPane.showMessageDialog(
                   null, "Invalid Credentials", "Alert", JOptionPane.OK_OPTION);
             }
           } catch (Exception e1) {
             System.out.println("Error");
           }
         }
       });
   login.setBounds(200, 150, 100, 30);
   add(login);
 }
  public EditEdgeNodePanel(ConfigDialog cd, EdgeNode e) {
    super(cd);

    Label clab = new Label("Connects:");
    clab.setBounds(0, 0, 100, 20);
    add(clab);

    roadLink = new Hyperlink();
    roadLink.addActionListener(this);
    roadLink.setBounds(100, 0, 100, 20);
    add(roadLink);

    Label wlab = new Label("With:");
    wlab.setBounds(0, 20, 100, 20);
    add(wlab);

    nodeLink = new Hyperlink();
    nodeLink.addActionListener(this);
    nodeLink.setBounds(100, 20, 100, 20);
    add(nodeLink);

    setEdgeNode(e);
  }
示例#10
0
  /** Create the frame. */
  public Inicial() {
    setTitle("JF-Chess");
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    setBounds(100, 100, 226, 207);
    contentPane = new JPanel();
    contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
    setContentPane(contentPane);
    contentPane.setLayout(null);

    Label label = new Label("DNI Jugador 1:");
    label.setBounds(10, 10, 84, 22);
    contentPane.add(label);

    Label label_1 = new Label("DNI Jugador 2:");
    label_1.setBounds(10, 42, 84, 22);
    contentPane.add(label_1);

    TextField dnij1textField = new TextField();
    dnij1textField.setBounds(99, 10, 99, 22);
    contentPane.add(dnij1textField);

    TextField dnij2textField = new TextField();
    dnij2textField.setBounds(100, 42, 99, 22);
    contentPane.add(dnij2textField);

    Button verButton = new Button("Ver juegos pendientes");
    verButton.setBounds(10, 80, 188, 22);
    contentPane.add(verButton);

    Button nuevaPartidaButton = new Button("Nueva partida");
    nuevaPartidaButton.setBounds(10, 108, 188, 22);
    contentPane.add(nuevaPartidaButton);

    Button registrarButton = new Button("Registrar nuevo jugador");
    registrarButton.setBounds(10, 136, 188, 22);
    contentPane.add(registrarButton);
  }
示例#11
0
 /* WARNING: THIS METHOD WILL BE REGENERATED. */
 private java.awt.Label getLabel121() {
   if (ivjLabel121 == null) {
     try {
       ivjLabel121 = new java.awt.Label();
       ivjLabel121.setName("Label121");
       ivjLabel121.setAlignment(java.awt.Label.CENTER);
       ivjLabel121.setText("E.O. Stinson");
       ivjLabel121.setBackground(java.awt.Color.white);
       ivjLabel121.setBounds(7, 23, 384, 23);
       // user code begin {1}
       // user code end
     } catch (java.lang.Throwable ivjExc) {
       // user code begin {2}
       // user code end
       handleException(ivjExc);
     }
   }
   return ivjLabel121;
 }
示例#12
0
 /* WARNING: THIS METHOD WILL BE REGENERATED. */
 private java.awt.Label getLabel11() {
   if (ivjLabel11 == null) {
     try {
       ivjLabel11 = new java.awt.Label();
       ivjLabel11.setName("Label11");
       ivjLabel11.setAlignment(java.awt.Label.LEFT);
       ivjLabel11.setText("foo");
       ivjLabel11.setBackground(java.awt.Color.white);
       ivjLabel11.setBounds(26, 45, 362, 18);
       // user code begin {1}
       // user code end
     } catch (java.lang.Throwable ivjExc) {
       // user code begin {2}
       // user code end
       handleException(ivjExc);
     }
   }
   return ivjLabel11;
 }
示例#13
0
  public ReciveFile() {
    super("파일전송");
    setLayout(null);
    lbl = new Label("파일 전송을 기다립니다.");
    lbl.setBounds(10, 30, 230, 20);
    lbl.setBackground(Color.gray);
    lbl.setForeground(Color.white);
    add(lbl);
    txt = new TextArea("", 0, 0, TextArea.SCROLLBARS_BOTH);
    txt.setBounds(10, 60, 230, 100);
    txt.setEditable(false);
    add(txt);
    btn = new Button("닫기");
    btn.setBounds(105, 170, 40, 20);
    btn.setVisible(false);
    btn.addActionListener(this);
    add(btn);
    addWindowListener(new WinListener());
    setSize(250, 200);
    show();

    try {
      ServerSocket socket = new ServerSocket(port);
      Socket sock = null;
      FileThread client = null;
      try {
        sock = socket.accept();
        client = new FileThread(this, sock);
        client.start();
      } catch (IOException e) {
        System.out.println(e);
        try {
          if (sock != null) sock.close();
        } catch (IOException e1) {
          System.out.println(e1);
        } finally {
          sock = null;
        }
      }
    } catch (IOException e) {
    }
  }
  /** DOCUMENT ME! */
  public void doLayout() {
    int width = getSize().width - getInsets().left - getInsets().right;
    int height = getSize().height - getInsets().top - getInsets().bottom;
    int space = 5;

    int pix = pi.getInsets().left;
    int piy = pi.getInsets().top;
    int piwidth = pi.getSize().width - pi.getInsets().left - pi.getInsets().right;
    int piheight = pi.getSize().height - pi.getInsets().top - pi.getInsets().bottom;

    int buttonW = 60;
    int button2X = (width - ((2 * buttonW) + space)) / 2;
    int button3X = (width - ((3 * buttonW) + (2 * space))) / 2;

    /* put the dialog in the center of the game window */
    setLocation(pix + ((piwidth - width) / 2), piy + ((piheight - height) / 2));

    try {
      msg.setBounds((width - 188) / 2, getInsets().top, 210, 20);
      rsrcBut[0].setBounds(
          button2X, (getInsets().bottom + height) - (50 + (2 * space)), buttonW, 25);
      rsrcBut[1].setBounds(
          button2X + buttonW + space,
          (getInsets().bottom + height) - (50 + (2 * space)),
          buttonW,
          25);
      rsrcBut[2].setBounds(button3X, (getInsets().bottom + height) - (25 + space), buttonW, 25);
      rsrcBut[3].setBounds(
          button3X + space + buttonW, (getInsets().bottom + height) - (25 + space), buttonW, 25);
      rsrcBut[4].setBounds(
          button3X + (2 * (space + buttonW)),
          (getInsets().bottom + height) - (25 + space),
          buttonW,
          25);
    } catch (NullPointerException e) {
    }
  }
示例#15
0
  void init(String[] names1, float[][][] pch1, int psfflag1) {
    setLayout(null);
    names = names1;
    pch = pch1;
    psfflag = psfflag1;
    ncurves = pch.length;
    nparams = 11;
    xpts = pch[0].length;
    ypts = pch[0][0].length;

    checkarray = new Checkbox[ncurves];
    include = new boolean[ncurves];
    namearray = new TextField[ncurves + 1];
    int1array = new TextField[ncurves + 1];
    intensity1 = new double[ncurves + 1];
    e1array = new TextField[ncurves + 1];
    n1array = new TextField[ncurves + 1];
    bright1 = new double[ncurves + 1];
    number1 = new double[ncurves + 1];
    int2array = new TextField[ncurves + 1];
    intensity2 = new double[ncurves + 1];
    e2array = new TextField[ncurves + 1];
    n2array = new TextField[ncurves + 1];
    bright2 = new double[ncurves + 1];
    number2 = new double[ncurves + 1];
    eccarray = new TextField[ncurves + 1];
    brightcc = new double[ncurves + 1];
    eminccarray = new TextField[ncurves + 1];
    brightmincc = new double[ncurves + 1];
    c2array = new TextField[ncurves + 1];
    c2 = new double[ncurves + 1];
    nmeas = new int[ncurves + 1];
    avg = new float[xpts][ypts];
    indices = new int[ncurves];
    beta = 0.05;

    getintbright();
    for (int i = 0; i < ncurves; i++) {
      include[i] = true;
      indices[i] = i;
    }
    updateavg();

    int starty = 60;
    int startx = 10;
    int yinc = 25;
    for (int i = 0; i <= ncurves; i++) {
      if (i != ncurves) {
        checkarray[i] = new Checkbox("", include[i]);
        checkarray[i].setBounds(startx, starty + i * yinc, 20, 20);
        checkarray[i].addItemListener(this);
        add(checkarray[i]);
      }

      namearray[i] = new TextField(names[i]);
      namearray[i].setBounds(startx + 30, starty + i * yinc, 200, 20);
      add(namearray[i]);

      int1array[i] = new TextField("" + (float) intensity1[i]);
      int1array[i].setBounds(startx + 30 + 210, starty + i * yinc, 40, 20);
      add(int1array[i]);

      e1array[i] = new TextField("" + (float) bright1[i]);
      e1array[i].setBounds(startx + 30 + 210 + 50, starty + i * yinc, 40, 20);
      add(e1array[i]);

      n1array[i] = new TextField("" + (float) number1[i]);
      n1array[i].setBounds(startx + 30 + 210 + 50 + 50, starty + i * yinc, 40, 20);
      add(n1array[i]);

      int2array[i] = new TextField("" + (float) intensity2[i]);
      int2array[i].setBounds(startx + 30 + 210 + 50 + 50 + 50, starty + i * yinc, 40, 20);
      add(int2array[i]);

      e2array[i] = new TextField("" + (float) bright2[i]);
      e2array[i].setBounds(startx + 30 + 210 + 50 + 50 + 50 + 50, starty + i * yinc, 40, 20);
      add(e2array[i]);

      n2array[i] = new TextField("" + (float) number2[i]);
      n2array[i].setBounds(startx + 30 + 210 + 50 + 50 + 50 + 50 + 50, starty + i * yinc, 40, 20);
      add(n2array[i]);

      eccarray[i] = new TextField("" + (float) brightcc[i]);
      eccarray[i].setBounds(
          startx + 30 + 210 + 50 + 50 + 50 + 50 + 50 + 50, starty + i * yinc, 40, 20);
      add(eccarray[i]);

      eminccarray[i] = new TextField("" + (float) brightmincc[i]);
      eminccarray[i].setBounds(
          startx + 30 + 210 + 50 + 50 + 50 + 50 + 50 + 50 + 50, starty + i * yinc, 40, 20);
      add(eminccarray[i]);

      c2[i] = 0.0;
      c2array[i] = new TextField("" + (float) c2[i]);
      c2array[i].setBounds(
          startx + 30 + 210 + 50 + 50 + 50 + 50 + 50 + 50 + 50 + 50, starty + i * yinc, 80, 20);
      add(c2array[i]);
    }

    namelabel = new Label("Filename");
    namelabel.setBounds(startx + 30, starty - 25, 100, 20);
    add(namelabel);

    intlabel = new Label("<Ig>");
    intlabel.setBounds(startx + 30 + 210, starty - 25, 40, 20);
    add(intlabel);

    brightlabel = new Label("<eg>");
    brightlabel.setBounds(startx + 30 + 210 + 50, starty - 25, 40, 20);
    add(brightlabel);

    nlabel = new Label("<Ng>");
    nlabel.setBounds(startx + 30 + 210 + 50 + 50, starty - 25, 40, 20);
    add(nlabel);

    int2label = new Label("<Ir>");
    int2label.setBounds(startx + 30 + 210 + 50 + 50 + 50, starty - 25, 40, 20);
    add(int2label);

    bright2label = new Label("<er>");
    bright2label.setBounds(startx + 30 + 210 + 50 + 50 + 50 + 50, starty - 25, 40, 20);
    add(bright2label);

    n2label = new Label("<Nr>");
    n2label.setBounds(startx + 30 + 210 + 50 + 50 + 50 + 50 + 50, starty - 25, 40, 20);
    add(n2label);

    brightcclabel = new Label("<ecc>");
    brightcclabel.setBounds(startx + 30 + 210 + 50 + 50 + 50 + 50 + 50 + 50, starty - 25, 40, 20);
    add(brightcclabel);

    brightccminlabel = new Label("min");
    brightccminlabel.setBounds(
        startx + 30 + 210 + 50 + 50 + 50 + 50 + 50 + 50 + 50, starty - 25, 40, 20);
    add(brightccminlabel);

    c2label = new Label("chi^2");
    c2label.setBounds(
        startx + 30 + 210 + 50 + 50 + 50 + 50 + 50 + 50 + 50 + 50, starty - 25, 80, 20);
    add(c2label);

    int buttonsx = startx + 30 + 210 + 50 + 50 + 50 + 50 + 50 + 50 + 50 + 50 + 90;

    fitavgbutton = new Button("Fit Avg");
    fitavgbutton.setBounds(buttonsx, starty - 25, 100, 40);
    fitavgbutton.addActionListener(this);
    add(fitavgbutton);

    fitglobalbutton = new Button("Fit Global");
    fitglobalbutton.setBounds(buttonsx, starty - 25 + 50, 100, 40);
    fitglobalbutton.addActionListener(this);
    add(fitglobalbutton);

    clearparamsbutton = new Button("Reset Fit Params");
    clearparamsbutton.setBounds(buttonsx, starty - 25 + 50 + 50, 100, 40);
    clearparamsbutton.addActionListener(this);
    add(clearparamsbutton);

    checkc2 = false;

    fitclass = new NLLSfit(this, 0.0001, 50, 0.1);
    globalfitclass = new NLLSglobalfit(this, 0.0001, 50, 0.1);
    pchfunc = new pch2D((int) ((double) xpts * 1.5), (int) ((double) ypts * 1.5), psfflag);
    avgfit = new float[xpts][ypts];
    fit = new float[ncurves][xpts][ypts];

    xvals = new float[ncurves][xpts][ypts];
    for (int i = 0; i < ncurves; i++) {
      for (int j = 0; j < xpts; j++) {
        for (int k = 0; k < ypts; k++) {
          xvals[i][j][k] = (float) k;
          fit[i][j][k] = 1.0f;
        }
      }
    }

    globalc2label = new Label("Global chi^2 = " + (float) 0.0);
    globalc2label.setBounds(buttonsx, starty - 25 + 50 + 50 + 50, 140, 20);
    add(globalc2label);

    dispcurvelabel = new Label("Display Fit #");
    dispcurvelabel.setBounds(buttonsx, starty - 25 + 50 + 50 + 50 + 30, 70, 20);
    add(dispcurvelabel);

    dispcurvechoice = new Choice();
    for (int i = 0; i < ncurves; i++) {
      dispcurvechoice.add("" + (i + 1));
    }
    dispcurve = 0;
    dispcurvechoice.select(0);
    dispcurvechoice.setBounds(buttonsx + 80, starty - 25 + 50 + 50 + 50 + 30, 40, 20);
    dispcurvechoice.addItemListener(this);
    add(dispcurvechoice);

    betalabel = new Label("Bleedthrough f");
    betalabel.setBounds(buttonsx, starty - 25 + 50 + 50 + 50 + 30 + 30, 100, 20);
    add(betalabel);
    betaval = new TextField("" + (float) beta);
    betaval.setBounds(buttonsx + 110, starty - 25 + 50 + 50 + 50 + 30 + 30, 40, 20);
    betaval.addActionListener(this);
    add(betaval);

    beta = Double.parseDouble(betaval.getText());
    updatebeta();

    undobutton = new Button("Undo Global Fit");
    undobutton.setBounds(buttonsx, starty - 25 + 50 + 50 + 50 + 30 + 30 + 50, 100, 40);
    undobutton.addActionListener(this);
    add(undobutton);

    geterrorsbutton = new Button("Get Errors");
    geterrorsbutton.setBounds(buttonsx, starty - 25 + 50 + 50 + 50 + 30 + 30 + 50 + 50, 100, 40);
    geterrorsbutton.addActionListener(this);
    add(geterrorsbutton);

    copylabel = new Label("copyright 2009 Jay Unruh ([email protected]) non-profit use only");
    copylabel.setBounds(10, 790, 400, 20);
    add(copylabel);

    n_b_label = new Label("N and B Analysis");
    n_b_label.setBounds(250, 10, 100, 20);
    add(n_b_label);

    pwavg = new PlotWindow3D("Avg", "kg", "kr", "Frequency", avg, 0);
    pwavg.setLogAxes(false, false, true);
    pwavg.draw();
    pwavg.addPoints(avgfit, true, 0);
    float[] temp = pwavg.getLimits();
    temp[4] = 1.0f;
    pwavg.setLimits(temp);

    float[][] temppch = new float[xpts][ypts];
    for (int i = 0; i < xpts; i++) {
      System.arraycopy(pch[dispcurve][i], 0, temppch[i], 0, ypts);
    }
    pwfit = new PlotWindow3D("Selected Curve", "kg", "kr", "Frequency", temppch, 0);
    pwfit.setLogAxes(false, false, true);
    pwfit.draw();
    pwfit.addPoints(fit[dispcurve], true, 0);
    float[] temp2 = pwfit.getLimits();
    temp2[4] = 1.0f;
    pwfit.setLimits(temp2);

    resetparams();
    repaint();
  }
示例#16
0
 /**
  * 新增視窗物件 設定物件屬性 內容
  *
  * @param o 物件instances
  * @param reg 物件位置
  * @param name 物件名稱
  * @param value 物件標籤 或 內容
  */
 protected void addObject(Object o, Rectangle reg, String name, String value) {
   if (o instanceof Label) {
     ((Label) o).setText(value);
     ((Label) o).setName(name);
     ((Label) o).setBounds(reg);
     ((Label) o).addMouseListener(this);
     this.add((Label) o);
   } else if (o instanceof TextField) {
     ((TextField) o).setText(value);
     ((TextField) o).setName(name);
     ((TextField) o).setBounds(reg);
     ((TextField) o).addMouseListener(this);
     ((TextField) o).addTextListener(this);
     ((TextField) o).addKeyListener(this);
     if (value.equalsIgnoreCase("password")) ((TextField) o).setEchoChar('*');
     this.add((TextField) o);
   } else if (o instanceof Button) {
     int len = (int) ((float) reg.width / FONTWIDTH);
     ((Button) o).setLabel(StringUtil_.splitStringSpace(value, len));
     ((Button) o).setName(name);
     ((Button) o).setBounds(reg);
     ((Button) o).addMouseListener(this);
     this.add((Button) o);
   } else if (o instanceof TextArea) {
     ((TextArea) o).setText(value);
     ((TextArea) o).setName(name);
     ((TextArea) o).setBounds(reg);
     ((TextArea) o).addMouseListener(this);
     ((TextArea) o).addTextListener(this);
     ((TextArea) o).addKeyListener(this);
     this.add((TextArea) o);
   } else if (o instanceof Choice) {
     String[] values = value.split(",");
     for (int ii = 0; ii < values.length; ii++) ((Choice) o).addItem(values[ii]);
     ((Choice) o).setName(name);
     ((Choice) o).setBounds(reg);
     ((Choice) o).addMouseListener(this);
     ((Choice) o).addItemListener(this);
     this.add((Choice) o);
   } else if (o instanceof Checkbox) {
     ((Checkbox) o).setLabel(value);
     ((Checkbox) o).setName(name);
     ((Checkbox) o).setBounds(reg);
     ((Checkbox) o).addMouseListener(this);
     ((Checkbox) o).addItemListener(this);
     this.add((Checkbox) o);
   } else if (o instanceof CheckboxGroup) {
     String[] values = value.split(",");
     for (int ii = 0; ii < values.length; ii++) {
       Checkbox chk = new Checkbox();
       chk.setLabel(values[ii]);
       chk.setName(name + ii);
       chk.setBounds(reg);
       reg.y += 25;
       chk.addMouseListener(this);
       chk.addItemListener(this);
       chk.setCheckboxGroup((CheckboxGroup) o);
       this.add(chk);
     }
   } else if (o instanceof List) {
     String[] values = value.split(",");
     ((List) o).setName(name);
     ((List) o).setBounds(reg);
     ((List) o).addMouseListener(this);
     ((List) o).addItemListener(this);
     for (int ii = 0; ii < values.length; ii++) ((List) o).add(values[ii]);
     this.add(((List) o));
   }
 }
示例#17
0
  /**
   * Create the frame.
   *
   * @param account the account
   * @param ap the ap
   * @param idBacheca the id bacheca
   * @param tipo the tipo
   */
  public BachecaClasse(
      final AccountJpa account,
      final ApplicationContext ap,
      final int idBacheca,
      final String tipo) {

    this.ap = ap;
    bachecaDAO = (BachecaDiClasseJpaDAO) ap.getBean("bachecaClasseDAO");
    postDAO = (PostJpaDAO) ap.getBean("postDAO");
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    setBounds(100, 100, 1151, 521);
    contentPane = new JPanel();
    contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
    setTitle("Bacheca Classe");
    setContentPane(contentPane);
    contentPane.setLayout(null);

    JSeparator separator = new JSeparator();
    separator.setBounds(193, 245, 729, -2);
    contentPane.add(separator);

    listaPost = postDAO.getAll();
    removePostNotMatching(idBacheca);

    String bacheca = fillBacheca(listaPost);

    JButton btnScriviSuBacheca = new JButton("Scrivi su bacheca");
    btnScriviSuBacheca.setForeground(Color.BLUE);
    btnScriviSuBacheca.setBounds(954, 449, 171, 23);
    btnScriviSuBacheca.addActionListener(
        new ActionListener() {
          public void actionPerformed(ActionEvent e) {
            String post = "(" + account.getUsername() + ")" + textArea.getText();
            Post newPost = new Post();
            newPost.setData(new GregorianCalendar());
            BachecaDiClasseJpa bacheca = bachecaDAO.get(idBacheca);
            newPost.setBachecaClasse(bacheca);
            newPost.setContenuto(post);
            listaPost.add(newPost);
            Set<Post> collectionPost = new HashSet<Post>();
            collectionPost.addAll(listaPost);
            bacheca.setListaPost(collectionPost);
            JdbcTemplate jdbc = new JdbcTemplate(getDataSource());
            String sql =
                "Insert into post("
                    + "data,"
                    + "contenuto,"
                    + "id_bacheca_classe)"
                    + "VALUES (?,?,?)";

            // define query arguments

            Object[] params = new Object[] {newPost.getData(), newPost.getContenuto(), idBacheca};

            // define SQL types of the arguments
            int[] types = new int[] {Types.DATE, Types.VARCHAR, Types.INTEGER};

            jdbc.update(sql, params, types);
            //				bachecaDAO.delete(1);
            //				bachecaDAO.save(bacheca);

            textArea.setText(null);
            textPane.setText(null);
            textPane.setText(fillBacheca(listaPost));
          }
        });
    contentPane.add(btnScriviSuBacheca);

    JButton btnIndietro = new JButton();
    btnIndietro.setForeground(Color.BLUE);
    btnIndietro.setBounds(10, 449, 59, 23);
    btnIndietro.setText("<--");
    btnIndietro.addActionListener(
        new ActionListener() {
          public void actionPerformed(ActionEvent e) {

            if (tipo.equals(DOCENTE)) {
              AreaDocente x = new AreaDocente(account, ap);
              x.setVisible(true);
              dispose();
            } else {
              AreaStudente x = new AreaStudente(account, ap);
              x.setVisible(true);
              dispose();
            }
          }
        });
    contentPane.add(btnIndietro);
    textArea = new JTextArea();
    textArea.setBounds(10, 254, 1115, 184);
    contentPane.add(textArea);
    textPane = new JTextPane();
    textPane.setBounds(10, 33, 1115, 184);
    contentPane.add(textPane);
    textPane.setEditable(false);
    textPane.setText(bacheca);

    JSeparator separator_1 = new JSeparator();
    separator_1.setBounds(193, 24, 729, 8);
    contentPane.add(separator_1);

    Label Scrittura = new Label("Scrittura");
    Scrittura.setBounds(525, 221, 135, 14);
    Scrittura.setForeground(Color.BLUE);
    ;
    contentPane.add(Scrittura);

    Label Visualizzazione = new Label("Visualizzazione");
    Visualizzazione.setBounds(508, -2, 135, 14);
    Visualizzazione.setForeground(Color.BLUE);
    contentPane.add(Visualizzazione);

    JSeparator separator_2 = new JSeparator();
    separator_2.setBounds(174, 235, 729, 8);
    contentPane.add(separator_2);

    String immagine = new String("C:/Users/ale/Desktop/FL00002.jpg");
  }
示例#18
0
  private GUI_Abfrage() {
    setBackground(UIManager.getColor("ComboBox.buttonShadow"));
    setBounds(100, 100, 450, 297);

    contentPane = new JPanel();
    contentPane.setBackground(UIManager.getColor("ComboBox.buttonHighlight"));
    contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
    setContentPane(contentPane);
    contentPane.setLayout(null);

    JSeparator separator = new JSeparator();
    separator.setBounds(12, 213, 417, 14);
    contentPane.add(separator);

    mtxtMeta_passwort = new JPasswordField();
    mtxtMeta_passwort.setBounds(184, 146, 219, 19);
    contentPane.add(mtxtMeta_passwort);

    mtxtMeta_Username = new TextField();
    mtxtMeta_Username.setBounds(184, 109, 219, 19);
    mtxtMeta_Username.setText("bro");
    contentPane.add(mtxtMeta_Username);

    Label label = new Label("Datenbankname:");
    label.setBounds(37, 42, 116, 21);
    contentPane.add(label);

    mtxtMeta_DatenabnkServer = new TextField();
    mtxtMeta_DatenabnkServer.setText("dfch-ludwig.de");
    mtxtMeta_DatenabnkServer.setBounds(184, 75, 219, 19);
    contentPane.add(mtxtMeta_DatenabnkServer);

    mtxtMeta_DatenabnkName = new TextField();
    mtxtMeta_DatenabnkName.setText("HausHaltsPlaner_dlu");
    mtxtMeta_DatenabnkName.setBounds(184, 42, 219, 19);
    contentPane.add(mtxtMeta_DatenabnkName);

    Label label_1 = new Label("DatenbankServer:");
    label_1.setBounds(37, 75, 116, 21);
    contentPane.add(label_1);

    Label label_2 = new Label("Username:"******"Passwort:");
    label_3.setBounds(37, 144, 116, 21);
    contentPane.add(label_3);

    JLabel lblHaushaltsplanerV = new JLabel("Haushaltsplaner V4");
    lblHaushaltsplanerV.setBounds(141, 12, 167, 15);
    contentPane.add(lblHaushaltsplanerV);

    mbntErstellen = new JButton("Neue erstellen");
    mbntErstellen.setBounds(37, 229, 158, 25);
    contentPane.add(mbntErstellen);
    mbntErstellen.setActionCommand(cmbAuswahl.ErstellenAbfrageAktion.toString());

    mbtnLogin = new JButton("login");
    mbtnLogin.setBounds(231, 229, 172, 25);
    contentPane.add(mbtnLogin);
    mbtnLogin.setActionCommand(cmbAuswahl.LoginAbfrageAktion.toString());

    mchgXMLDB = new JComboBox<String>();
    mchgXMLDB.addItem("synchronisieren mit DB");
    mchgXMLDB.addItem("Arbeiten mit DB");
    mchgXMLDB.addItem("Arbeiten mit XML");

    mchgXMLDB.setBounds(184, 177, 219, 24);
    contentPane.add(mchgXMLDB);

    Label label_4 = new Label("Arbeitsumgebung:");
    label_4.setBounds(37, 177, 116, 21);
    contentPane.add(label_4);
  }
示例#19
0
  void launch() {
    f.setSize(800, 800);
    p.setLayout(null);

    l1.setBounds(600, 10, 150, 36);

    l2.setBounds(100, 30, 400, 70);
    l13.setBounds(2, 90, 1200, 20);

    l14.setBounds(80, 150, 250, 30);
    t1.setBounds(330, 150, 150, 30);
    b1.setBounds(500, 150, 100, 30);
    l15.setBounds(2, 200, 1200, 20);

    b6.setBounds(600, 50, 100, 30);
    l3.setBounds(100, 250, 100, 30);
    t2.setBounds(300, 250, 150, 30);
    l4.setBounds(100, 300, 150, 30);
    t3.setBounds(300, 300, 150, 30);
    l5.setBounds(100, 350, 150, 30);
    t4.setBounds(300, 350, 150, 30);
    l6.setBounds(100, 400, 100, 30);
    t5.setBounds(300, 400, 150, 30);
    l7.setBounds(100, 450, 100, 30);
    c1.setBounds(300, 450, 60, 30);
    c2.setBounds(400, 450, 60, 30);
    l8.setBounds(100, 500, 100, 30);
    t6.setBounds(300, 500, 150, 30);
    l9.setBounds(100, 550, 100, 30);
    t7.setBounds(300, 550, 150, 30);
    l10.setBounds(100, 600, 120, 30);
    t8.setBounds(300, 600, 150, 30);

    l11.setBounds(100, 650, 100, 30);
    t9.setBounds(300, 650, 150, 30);
    l12.setBounds(100, 700, 150, 30);
    t10.setBounds(300, 700, 150, 30);
    b2.setBounds(500, 400, 100, 30);
    b3.setBounds(500, 500, 100, 30);
    b4.setBounds(500, 600, 100, 30);
    b5.setBounds(650, 150, 100, 30);

    b1.addActionListener(this);
    b2.addActionListener(this);
    b3.addActionListener(this);
    b4.addActionListener(this);
    b5.addActionListener(this);
    b6.addActionListener(this);
    c1.addItemListener(this);
    c2.addItemListener(this);

    p.add(l1);
    p.add(l2);
    p.add(l13);
    p.add(l14);
    p.add(t1);
    p.add(b1);
    p.add(l15);
    p.add(b5);
    p.add(b6);

    f.add(p);

    f.setVisible(true);
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  }
示例#20
0
  private void setup() {
    setLayout(null);
    this.setSize(1200, 800);
    setBackground(Color.DARK_GRAY);
    list.setFont(new Font("Arial", Font.PLAIN, 24));
    list.setBounds(52, 118, 429, 501);

    selecionado1 = new Label("");
    selecionado1.setForeground(Color.WHITE);
    selecionado1.setFont(new Font("Dialog", Font.PLAIN, 18));
    selecionado1.setBounds(560, 128, 611, 43);
    add(selecionado1);

    PreencheGenero();
    add(list);

    logout = new JButton("Logout");
    logout.setBounds(1074, 673, 97, 25);
    logout.addActionListener(this);
    logout.setVisible(true);
    add(logout);

    autor = new JRadioButton("Autor");
    autor.setForeground(Color.WHITE);
    autor.setFont(new Font("Tahoma", Font.PLAIN, 18));
    autor.setSelected(false);
    autor.setBackground(Color.DARK_GRAY);
    autor.setBounds(52, 56, 127, 25);
    autor.addActionListener(this);
    add(autor);

    titulo = new JRadioButton("Trabalho artístico");
    titulo.setForeground(Color.WHITE);
    titulo.setFont(new Font("Tahoma", Font.PLAIN, 18));
    titulo.setBackground(Color.DARK_GRAY);
    titulo.setSelected(false);
    titulo.setBounds(275, 56, 181, 25);
    titulo.addActionListener(this);
    add(titulo);

    genero = new JRadioButton("Gênero");
    genero.setForeground(Color.WHITE);
    genero.setFont(new Font("Tahoma", Font.PLAIN, 18));
    genero.setBackground(Color.DARK_GRAY);
    genero.setSelected(true);
    genero.setBounds(499, 58, 127, 25);
    genero.addActionListener(this);
    add(genero);

    selecionado2 = new Label("");
    selecionado2.setForeground(Color.WHITE);
    selecionado2.setFont(new Font("Dialog", Font.PLAIN, 18));
    selecionado2.setBounds(560, 197, 611, 43);
    add(selecionado2);

    selecionado3 = new Label("");
    selecionado3.setForeground(Color.WHITE);
    selecionado3.setFont(new Font("Dialog", Font.PLAIN, 18));
    selecionado3.setBounds(560, 268, 611, 55);
    add(selecionado3);

    label = new Label("Selecione um Filtro");
    label.setForeground(Color.WHITE);
    label.setFont(new Font("Dialog", Font.PLAIN, 18));
    label.setBounds(52, 10, 611, 43);
    add(label);

    adicionar = new JButton("Adicionar");
    adicionar.setBounds(956, 673, 97, 25);
    adicionar.addActionListener(this);
    add(adicionar);

    Label logado = new Label("Selecione um Filtro");
    logado.setAlignment(Label.RIGHT);
    logado.setForeground(Color.WHITE);
    logado.setFont(new Font("Dialog", Font.PLAIN, 18));
    logado.setBounds(722, 10, 449, 43);
    logado.setText("Olá, " + Main.user.getNome());
    add(logado);
  }
示例#21
0
  @SuppressWarnings({"unchecked", "unchecked"})
  private void labelInit() {
    laltitle = new Label("耶紗夕慕", 2);
    laltitle.setBounds(80, 40, 150, 40);
    laltitle.setFont(new Font(null, 15, 23));
    this.add(laltitle);
    // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    laId = new Label("ID:");
    laId.setBounds(50, 90, 50, 30);
    laId.setFont(new Font(null, 15, 20));
    this.add(laId);

    laName = new Label("慕兆�");
    laName.setBounds(200, 90, 50, 30);
    laName.setFont(new Font(null, 15, 20));
    this.add(laName);

    // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    laWriter = new Label("恬宀��");
    laWriter.setBounds(50, 120, 50, 30);
    laWriter.setFont(new Font(null, 15, 20));
    this.add(laWriter);

    laPrice = new Label("汽勺�");
    laPrice.setBounds(200, 120, 50, 30);
    laPrice.setFont(new Font(null, 15, 20));
    this.add(laPrice);
    // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    laNum = new Label("方楚�");
    laNum.setBounds(50, 150, 50, 30);
    laNum.setFont(new Font(null, 15, 20));
    this.add(laNum);

    laAllPrice = new Label("悳勺�");
    laAllPrice.setBounds(200, 150, 50, 30);
    laAllPrice.setFont(new Font(null, 15, 20));
    this.add(laAllPrice);
    // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    laDiscopy = new Label("孵諏�");
    laDiscopy.setBounds(50, 180, 50, 30);
    laDiscopy.setFont(new Font(null, 15, 20));
    this.add(laDiscopy);

    laBack = new Label("辛曜算�");
    laBack.setBounds(200, 180, 70, 30);
    laBack.setFont(new Font(null, 15, 20));
    this.add(laBack);
    // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    laBusiness = new Label("竃井芙�");
    laBusiness.setBounds(50, 210, 70, 30);
    laBusiness.setFont(new Font(null, 15, 20));
    this.add(laBusiness);
    // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    ArrayList arryListBook = new ArrayList();
    arryListBook = BookFactory.getInstance().getOneBook();
    int strBookInfoID;
    strBookInfoID = arryListBook.size();
    // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    strBookInfoID += 1;
    latxtId = new Label(strBookInfoID + "", 2);
    latxtId.setBounds(110, 80, 70, 40);
    latxtId.setFont(new Font(null, 15, 18));
    this.add(latxtId);
    // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    lachoAllPrice = new Label(NumAllPrice + "");
    lachoAllPrice.setBounds(260, 150, 100, 25);
    lachoAllPrice.setFont(new Font(null, 15, 18));
    this.add(lachoAllPrice);
  }