Package java.awt

Examples of java.awt.Choice$State


        this.ktAlter = new TextField("", 35);
        this.kantenEinstell.add(this.beding);
        this.kantenEinstell.add(this.folgeZust);
        this.kantenEinstell.add(this.ktAlter);

        this.grAuswahl = new Choice();
        choiPan.add(this.grAuswahl);
        this.grAuswahl.addItemListener(this);

        b = new Button(Messages.getString("SteuerFenster.GraphLoeschen"));
        b.addActionListener(this);
View Full Code Here


    infoLabel2 = new Label();
    panel.add(infoLabel1);
    panel.add(infoLabel2);

    panel.add(new Label(strings.get(Strings.DITHERING_METHOD)));
    ditheringMethod = new Choice();
    for (int i = 0; i < DITHERING_METHODS[0].length; i++)
    {
      ditheringMethod.add(strings.get(DITHERING_METHODS[1][i]));
      if (ditheringMethodSelection == i)
      {
View Full Code Here

    mainPanel.add(panel);

    // 1.3 Choice with dithering types
    panel = new Panel();
    panel.add(new Label(strings.get(Strings.DITHERING_METHOD)));
    dithering = new Choice();
    for (int i = 0; i < DITHERING_STRING_CONSTANTS.length; i++)
    {
      dithering.add(strings.get(DITHERING_STRING_CONSTANTS[i]));
    }
    dithering.select(1);
View Full Code Here

    outputColorType.add(strings.get(Strings.OUTPUT_COLOR_TYPE_RGB));
    outputColorType.select(paletted ? 0 : 1);
    panel.add(outputColorType);*/

    panel.add(new Label(strings.get(Strings.DITHERING_METHOD)));
    dithering = new Choice();
    for (int i = 0; i < DITHERING_STRINGS.length; i++)
    {
      dithering.add(strings.get(DITHERING_STRINGS[i]));
    }
    dithering.select(1);
View Full Code Here

    panel.add(new Label(strings.get(Strings.NUMBER_OF_SHADES_OF_GRAY) + ": "));
    shadesLabel = new Label();
    panel.add(shadesLabel);

    panel.add(new Label(strings.get(Strings.DITHERING_METHOD)));
    ditheringMethod = new Choice();
    for (int i = 0; i < DITHERING_METHODS[0].length; i++)
    {
      ditheringMethod.add(strings.get(DITHERING_METHODS[1][i]));
      if (ditheringMethodSelection == i)
      {
View Full Code Here

    type = initialType;
    if (pickType)
    {
      panel.add(new Label(strings.get(Strings.METHOD)));
      types = new Choice();
      for (int i = 0; i < typeNames.length; i++)
      {
        types.add(typeNames[i]);
      }
      types.select(initialType);
View Full Code Here

    numColorsField = new TextField(Integer.toString(numColors), 6);
    numColorsField.addKeyListener(this);
    panel.add(numColorsField);

    panel.add(new Label(strings.get(Strings.OUTPUT_COLOR_TYPE)));
    outputColorType = new Choice();
    outputColorType.add(strings.get(Strings.OUTPUT_COLOR_TYPE_PALETTED));
    outputColorType.add(strings.get(Strings.OUTPUT_COLOR_TYPE_RGB));
    outputColorType.select(paletted ? 0 : 1);
    panel.add(outputColorType);

    panel.add(new Label(strings.get(Strings.METHOD_REPR_COLOR)));
    reprColorMethod = new Choice();
    for (int i = 0; i < METHODS[0].length; i++)
    {
      reprColorMethod.add(strings.get(METHODS[1][i]));
      if (representativeColorMethod == METHODS[0][i])
      {
        reprColorMethod.select(i);
      }
    }
    panel.add(reprColorMethod);

    panel.add(new Label(strings.get(Strings.OUTPUT_QUALITY_IMPROVEMENT_ALGORITHM)));
    algorithms = new Choice();
    algorithms.add(strings.get(Strings.ALGORITHMS_NONE));
    algorithms.add(strings.get(Strings.ERROR_DIFFUSION));
    algorithms.add(strings.get(Strings.CONTOUR_REMOVAL));
    algorithms.select(1);
    algorithms.addItemListener(this);
    panel.add(algorithms);

    panel.add(new Label(strings.get(Strings.ERROR_DIFFUSION)));
    errorDiffusion = new Choice();
    for (int i = 0; i < ERROR_DIFFUSION_STRINGS.length; i++)
    {
      errorDiffusion.add(strings.get(ERROR_DIFFUSION_STRINGS[i]));
    }
    errorDiffusion.select(0);
View Full Code Here

   *  
   * @return java.awt.Choice 
   */   
  private Choice getChoice() {
    if (choice == null) {
      choice = new Choice();
      choice.addItem("-- blank --")// 1st one is blank, don't change
      /*
       *  Note: the item string must end with REQUEST or RESPONSE. It's used to set radio buttons
       */
      choice.addItem("Cookie:.*?\\r\\n..........get all cookies from REQUEST");
View Full Code Here

    private String selectedItem = null;
    private int selectedIndex = -1;
    protected void setUp() {
        tester = (ChoiceTester)ComponentTester.getTester(Choice.class);
        choice = new Choice();
        for (int i=0;i < MAX_ENTRIES;i++) {
            choice.add("item " + i);
        }
        choice.select(MAX_ENTRIES-1);
        choice.addItemListener(new ItemListener() {
View Full Code Here

                lblReorderedQty.setFont(f);
                lblOrderedQty.setFont(f);

                categoryList = new ArrayList<Category>();
                this.loadCategory();
                cboCategoryCode = new Choice();
                cboCategoryCode.addItem("Choose Item Category");
                for (int i = 0; i < categoryList.size(); i++) {
                        Category dataObject = categoryList.get(i);
                        cboCategoryCode.addItem(dataObject.getCategoryCode());
                }
View Full Code Here

TOP

Related Classes of java.awt.Choice$State

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.