Package jcurses.widgets

Examples of jcurses.widgets.Button


        super(x, y, width, height, false, title);
        this.windowWidth = width;
        chatLog = new TextArea();
        chatLog.setColors(new CharColor(CharColor.WHITE, CharColor.BLACK));
        textField = new TextField();
        button = new Button("Send");
        button.setShortCut('\n');
        button.addListener(this);

        int innerHeight = height - 5;
        GridLayoutManager manager = new GridLayoutManager(1, innerHeight);
View Full Code Here


    manager.addWidget(field, BorderLayoutManager.CENTER, WidgetsConstants.ALIGNMENT_CENTER,
        WidgetsConstants.ALIGNMENT_CENTER);

    if (okText != null) {
      Button ok = new Button("Goto");
      ok.addListener(new ActionListener() {
        public void actionPerformed(ActionEvent arg0) {
          saveAndClose();
        }
      });
View Full Code Here

    super(getWidth(text, title)+4, getHeight(text)+7,true,title);
   
    DefaultLayoutManager manager = (DefaultLayoutManager)getRootPanel().getLayoutManager();
   
    _label = new Label(text);
    _button = new Button(buttonLabel);
    _title = title;
   
    _button.addListener(this);
   
    manager.addWidget(_label,0,0,getWidth(text, _title)+2, getHeight(text)+2, WidgetsConstants.ALIGNMENT_CENTER,
View Full Code Here

    loadEvents(false);

    manager.addWidget(list, BorderLayoutManager.CENTER, WidgetsConstants.ALIGNMENT_CENTER,
        WidgetsConstants.ALIGNMENT_CENTER);

      Button ok = new Button("Load Fully");
      ok.addListener(new ActionListener() {
        public void actionPerformed(ActionEvent arg0) {
          loadEvents(true);
          EventDialog.this.repaint();
        }
      });
View Full Code Here

    loadEvents(false);

    manager.addWidget(list, BorderLayoutManager.CENTER, WidgetsConstants.ALIGNMENT_CENTER,
        WidgetsConstants.ALIGNMENT_CENTER);

      Button ok = new Button("Load Fully");
      ok.addListener(new ActionListener() {
        public void actionPerformed(ActionEvent arg0) {
          loadEvents(true);
          RequestDialog.this.repaint();
        }
      });
View Full Code Here

    loadEvents(false);

    manager.addWidget(list, BorderLayoutManager.CENTER, WidgetsConstants.ALIGNMENT_CENTER,
        WidgetsConstants.ALIGNMENT_CENTER);

      Button ok = new Button("Load Fully");
      ok.addListener(new ActionListener() {
        public void actionPerformed(ActionEvent arg0) {
          loadEvents(true);
          RequestDialog.this.repaint();
        }
      });
View Full Code Here

    loadEvents(false);

    manager.addWidget(list, BorderLayoutManager.CENTER, WidgetsConstants.ALIGNMENT_CENTER,
        WidgetsConstants.ALIGNMENT_CENTER);

      Button ok = new Button("Load Fully");
      ok.addListener(new ActionListener() {
        public void actionPerformed(ActionEvent arg0) {
          loadEvents(true);
          EventDialog.this.repaint();
        }
      });
View Full Code Here

TOP

Related Classes of jcurses.widgets.Button

Copyright © 2018 www.massapicom. 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.