Package Background

Examples of Background.Entry


     
      @Override
      public void actionPerformed(final ActionEvent the_event)
      {
        Contestant c = SignInGUI.getCurrentContestant();
        Entry e1 = c.getEntry1();
        Entry e2 = c.getEntry2();
        Entry e3 = c.getEntry3();
       
        if (category.getSelectedItem().equals("")) {
          JOptionPane.showMessageDialog(my_user_card_panel, "You must select a category.");
         
        }else if(e1.getCategory().equals(category.getSelectedItem().toString()) || e2.getCategory().equals(category.getSelectedItem().toString()) ||
            e3.getCategory().equals(category.getSelectedItem().toString())){
          JOptionPane.showMessageDialog(my_user_card_panel, "Category already submitted!");
        } else {
         
          frame = new WeavingDraftFrame(my_entry, draft);
          frame.start();
View Full Code Here


      Contestant c = SignInGUI.getCurrentContestant();
      ArrayList<Entry> contestantEntryList = c.getEntryList();
     
      if(contestantEntryList.size() == 0){
     
        Entry first_entry = c.getEntry1();
        first_entry.setDescription(description.getText());
        first_entry.setCategory((String)category.getSelectedItem());
        first_entry.setDesign(draft.getdraft());
        first_entry.setRelease(acceptStatus);
        c.addEntryToList(first_entry);
        Lists.saveData();
        JOptionPane.showMessageDialog(null, "Thank you for submitting an entry! You have 2 entries left!");
        dispose();
      }
     
      else if(contestantEntryList.size() == 1){
        Entry second_entry = c.getEntry2();
        second_entry.setDescription(description.getText());
        second_entry.setCategory((String)category.getSelectedItem());
        second_entry.setDesign(draft.getdraft());
        second_entry.setRelease(acceptStatus);
        c.addEntryToList(second_entry);
        Lists.saveData();
        JOptionPane.showMessageDialog(null, "Thank you for submitting an entry! You have 1 entry left!");
        dispose();
      }

      else if(contestantEntryList.size() == 2){
        Entry third_entry = c.getEntry3();
        third_entry.setDescription(description.getText());
        third_entry.setCategory((String)category.getSelectedItem());
        third_entry.setDesign(draft.getdraft());
        third_entry.setRelease(acceptStatus);
        c.addEntryToList(third_entry);
        Lists.saveData();
        JOptionPane.showMessageDialog(null, "Thank you for submitting an entry! " +
            "You have submitted the maximum number of 3 entries.");
        dispose();
View Full Code Here

  private void showEntryList() {
    String reg_number;
    JLabel name = new JLabel();
    name.setPreferredSize(ENTRY_LABEL_SIZE);
    JPanel header_panel = new JPanel();
    Entry first;
    Entry second;
    Entry third;
    name.setText("Name");
    reg_number_header.setText("Registration Number");
    entry_1_header.setText("First Entry");
    entry_2_header.setText("Second Entry");
    entry_3_header.setText("Third Entry");
    header_panel.add(name);
    header_panel.add(reg_number_header);
    header_panel.add(entry_1_header);
    header_panel.add(entry_2_header);
    header_panel.add(entry_3_header);
    entry_panel.add(header_panel, BorderLayout.CENTER);

    for (Contestant c : contestantList) {
      JPanel panel = new JPanel();
      first = c.getEntry1();
      final String first_desc = first.getDescription();
      final String first_cat = first.getCategory();
      final boolean first_rel = first.getRelease();
      final int[][] first_design = first.getDesign();
      second = c.getEntry2();
      final String second_cat = second.getCategory();
      final boolean second_rel = second.getRelease();
      final String second_desc = second.getDescription();
      final int[][] second_design = second.getDesign();
      third = c.getEntry3();
      final String third_cat = third.getCategory();
      final boolean third_rel = third.getRelease();
      final String third_desc = third.getDescription();
      final int[][] third_design = third.getDesign();

      JLabel person = new JLabel();
      JLabel reg = new JLabel();
      JButton desc1 = new JButton();
      if (first_design == null) {
View Full Code Here

TOP

Related Classes of Background.Entry

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.