Code example for Choice

Methods: setLocation

0
	   width = getSize().width;
      height = getSize().height;
      setBackground( Color.black );
      setFont(new Font("Helvetica", Font.BOLD, 36));
      //Drop Down List 
      choice = new Choice();
      choice.setLocation(50, 80);
        
      //Download Button 
      downloadButton = new Button("Download");
      add(downloadButton);
      downloadButton.addActionListener(this); 
       
      crawlHasFinished = false;
      teamHasBeenClickedOn = false;
      showTeamStatsClicked = false;
       
      //ShowTeamStats Button 
      showTeamStats = new Button("Show Team Stats");
      add(showTeamStats);
Connect your IDE to all the code out there  Get Codota for Java