Package javax.swing

Examples of javax.swing.GroupLayout$ContainerAutoPreferredGapSpring


  }

  private void initGUI() {
    this.setTitle("Sample Management Console");
    try {
      GroupLayout thisLayout = new GroupLayout(
          (JComponent) getContentPane());
      getContentPane().setLayout(thisLayout);
      setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
      {
        stopActivitiServerButton = new JButton();
        stopActivitiServerButton.setText("stopActivitiServer");
        stopActivitiServerButton.addMouseListener(new MouseAdapter() {
          public void mouseClicked(MouseEvent evt) {
            stopActivitiServerButtonMouseClicked(evt);
          }
        });
        stopActivitiServerButton.setEnabled(false);
      }
      {
        stopJBPM5ServerButton = new JButton();
        stopJBPM5ServerButton.setText("stopJBPM5Server");
        stopJBPM5ServerButton.setEnabled(false);
        stopJBPM5ServerButton.addMouseListener(new MouseAdapter() {
          public void mouseClicked(MouseEvent evt) {
            stopJBPM5ServerButtonMouseClicked(evt);
            startJBPM5ServerButton.setEnabled(true);
            stopJBPM5ServerButton.setEnabled(false);
          }
        });
      }
      {
        startActivitiServerButton = new JButton();
        startActivitiServerButton.setText("StartActivitiServer");
        startActivitiServerButton.addMouseListener(new MouseAdapter() {
          public void mouseClicked(MouseEvent evt) {
            startActivitiServerButtonMouseClicked(evt);
          }
        });
      }
      {
        startJBPM5ServerButton = new JButton();
        startJBPM5ServerButton.setText("StartJBPM5Server");
        startJBPM5ServerButton.addMouseListener(new MouseAdapter() {
          public void mouseClicked(MouseEvent evt) {
            startJBPM5ServerButtonMouseClicked(evt);
            startJBPM5ServerButton.setEnabled(false);
            stopJBPM5ServerButton.setEnabled(true);
          }
        });
      }
      {
        statusLabel = new JLabel();
        statusLabel.setForeground(Color.RED);
      }
      {
        jbpm5 = new JButton();
        jbpm5.setText("JBPM5 Process Image");
        jbpm5.addMouseListener(new MouseAdapter() {
          @Override
          public void mouseClicked(MouseEvent e) {
            JDialog frame = new JDialog(theframe, "Image");
            Panel panel = new ShowImage("humanTask.png");
            frame.getContentPane().add(panel);
            frame.setSize(panel.getWidth(), panel.getHeight());
            frame.setVisible(true);
          }
        });

      }
      {
        ActivitiProcessImg = new JButton();
        ActivitiProcessImg.setText("ActivitiProcessImg");
        ActivitiProcessImg.addMouseListener(new MouseAdapter() {
          public void mouseClicked(MouseEvent evt) {
            ActivitiProcessImgMouseClicked(evt);
          }
        });
      }
      {
        startActivitiSampleButton = new JButton();
        startActivitiSampleButton.setText("StartActivitiSample");
        startActivitiSampleButton.addMouseListener(new MouseAdapter() {
          public void mouseClicked(MouseEvent evt) {
            startActivitiSampleButtonMouseClicked(evt);
          }
        });
      }
      {
        startJBPM5Process = new JButton();
        startJBPM5Process.setText("startJBPM5Process");
        startJBPM5Process.addMouseListener(new MouseAdapter() {
          public void mouseClicked(MouseEvent evt) {
            startJBPM5ProcessMouseClicked(evt);
          }
        });
      }
      thisLayout.setVerticalGroup(thisLayout.createSequentialGroup()
        .addGap(6)
        .addComponent(statusLabel, GroupLayout.PREFERRED_SIZE, 41, GroupLayout.PREFERRED_SIZE)
        .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
        .addGroup(thisLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
            .addComponent(startActivitiServerButton, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, 35, GroupLayout.PREFERRED_SIZE)
            .addComponent(startJBPM5ServerButton, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, 33, GroupLayout.PREFERRED_SIZE))
        .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
        .addGroup(thisLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
            .addComponent(stopActivitiServerButton, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, 34, GroupLayout.PREFERRED_SIZE)
            .addComponent(stopJBPM5ServerButton, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, 32, GroupLayout.PREFERRED_SIZE))
        .addGap(23)
        .addGroup(thisLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
            .addComponent(startActivitiSampleButton, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, 33, GroupLayout.PREFERRED_SIZE)
            .addComponent(startJBPM5Process, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, 31, GroupLayout.PREFERRED_SIZE))
        .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
        .addGroup(thisLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
            .addComponent(ActivitiProcessImg, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, 25, GroupLayout.PREFERRED_SIZE)
            .addComponent(jbpm5, GroupLayout.Alignment.BASELINE, 0, 26, Short.MAX_VALUE))
        .addContainerGap());
      thisLayout.setHorizontalGroup(thisLayout.createParallelGroup()
        .addComponent(statusLabel, GroupLayout.Alignment.LEADING, 0, 523, Short.MAX_VALUE)
        .addGroup(thisLayout.createSequentialGroup()
            .addPreferredGap(statusLabel, startJBPM5Process, LayoutStyle.ComponentPlacement.INDENT)
            .addGroup(thisLayout.createParallelGroup()
                .addComponent(startJBPM5Process, GroupLayout.Alignment.LEADING, GroupLayout.PREFERRED_SIZE, 229, GroupLayout.PREFERRED_SIZE)
                .addComponent(stopJBPM5ServerButton, GroupLayout.Alignment.LEADING, GroupLayout.PREFERRED_SIZE, 229, GroupLayout.PREFERRED_SIZE)
                .addComponent(startJBPM5ServerButton, GroupLayout.Alignment.LEADING, GroupLayout.PREFERRED_SIZE, 229, GroupLayout.PREFERRED_SIZE)
                .addComponent(jbpm5, GroupLayout.Alignment.LEADING, GroupLayout.PREFERRED_SIZE, 229, GroupLayout.PREFERRED_SIZE))
            .addGap(23)
            .addGroup(thisLayout.createParallelGroup()
                .addGroup(thisLayout.createSequentialGroup()
                    .addComponent(startActivitiSampleButton, GroupLayout.PREFERRED_SIZE, 242, GroupLayout.PREFERRED_SIZE))
                .addGroup(thisLayout.createSequentialGroup()
                    .addComponent(stopActivitiServerButton, GroupLayout.PREFERRED_SIZE, 242, GroupLayout.PREFERRED_SIZE))
                .addGroup(thisLayout.createSequentialGroup()
                    .addComponent(startActivitiServerButton, GroupLayout.PREFERRED_SIZE, 242, GroupLayout.PREFERRED_SIZE))
                .addGroup(thisLayout.createSequentialGroup()
                    .addComponent(ActivitiProcessImg, GroupLayout.PREFERRED_SIZE, 242, GroupLayout.PREFERRED_SIZE)))
            .addContainerGap(17, Short.MAX_VALUE)));
      pack();
      this.setSize(533, 261);
      Application.getInstance().getContext().getResourceMap(getClass())
View Full Code Here


    private Map<Employee, EmployeePanel> employeeToPanelMap;

    public NurseRosteringPanel() {
        employeeIcon = new ImageIcon(getClass().getResource("employee.png"));
        deleteEmployeeIcon = new ImageIcon(getClass().getResource("deleteEmployee.png"));
        GroupLayout layout = new GroupLayout(this);
        setLayout(layout);
        createEmployeeListPanel();
        JPanel headerPanel = createHeaderPanel();
        layout.setHorizontalGroup(layout.createParallelGroup()
                .addComponent(headerPanel).addComponent(employeeListPanel));
        layout.setVerticalGroup(layout.createSequentialGroup()
                .addComponent(headerPanel, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE,
                        GroupLayout.PREFERRED_SIZE)
                .addComponent(employeeListPanel, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE,
                        GroupLayout.PREFERRED_SIZE));
    }
View Full Code Here

    }

    private JPanel createExamplesPanel() {
        JPanel examplesPanel = new JPanel();
        examplesPanel.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
        GroupLayout layout = new GroupLayout(examplesPanel);
        examplesPanel.setLayout(layout);
        JPanel basicExamplesPanel = createBasicExamplesPanel();
        JPanel realExamplesPanel = createRealExamplesPanel();
        JPanel difficultExamplesPanel = createDifficultExamplesPanel();
        layout.setHorizontalGroup(layout.createSequentialGroup()
                .addComponent(basicExamplesPanel)
                .addGap(10)
                .addComponent(realExamplesPanel)
                .addGap(10)
                .addComponent(difficultExamplesPanel));
        layout.setVerticalGroup(layout.createParallelGroup()
                .addComponent(basicExamplesPanel)
                .addComponent(realExamplesPanel)
                .addComponent(difficultExamplesPanel));
        return examplesPanel;
    }
View Full Code Here

        public MrProcessAssignmentListDialog() {
            setModal(true);
            setTitle(getMachineLabel());
            JPanel contentPanel = new JPanel();
            GroupLayout layout = new GroupLayout(contentPanel);
            contentPanel.setLayout(layout);
            JPanel assignmentsPanel = createAssignmentsPanel();
            JScrollPane contentScrollPane = new JScrollPane(assignmentsPanel);
            contentScrollPane.setPreferredSize(new Dimension(800, 200));
            contentScrollPane.getVerticalScrollBar().setUnitIncrement(20);
View Full Code Here

    private MrMachinePanel unassignedPanel;
    private JLabel tooBigLabel = null;
    private Map<MrMachine, MrMachinePanel> machineToPanelMap;

    public MachineReassignmentPanel() {
        GroupLayout layout = new GroupLayout(this);
        setLayout(layout);
        createMachineListPanel();
        JPanel headerPanel = new JPanel();
        layout.setHorizontalGroup(layout.createParallelGroup()
                .addComponent(headerPanel).addComponent(machineListPanel));
        layout.setVerticalGroup(layout.createSequentialGroup()
                .addComponent(headerPanel, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE,
                        GroupLayout.PREFERRED_SIZE)
                .addComponent(machineListPanel, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE,
                        GroupLayout.PREFERRED_SIZE));
    }
View Full Code Here

        addCloudComputerIcon = new ImageIcon(getClass().getResource("addCloudComputer.png"));
        deleteCloudComputerIcon = new ImageIcon(getClass().getResource("deleteCloudComputer.png"));
        cloudProcessIcon = new ImageIcon(getClass().getResource("cloudProcess.png"));
        addCloudProcessIcon = new ImageIcon(getClass().getResource("addCloudProcess.png"));
        deleteCloudProcessIcon = new ImageIcon(getClass().getResource("deleteCloudProcess.png"));
        GroupLayout layout = new GroupLayout(this);
        setLayout(layout);
        JPanel headerPanel = createHeaderPanel();
        JPanel computersPanel = createComputersPanel();
        layout.setHorizontalGroup(layout.createParallelGroup()
                .addComponent(headerPanel).addComponent(computersPanel));
        layout.setVerticalGroup(layout.createSequentialGroup()
                .addComponent(headerPanel, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE,
                        GroupLayout.PREFERRED_SIZE)
                .addComponent(computersPanel, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE,
                        GroupLayout.PREFERRED_SIZE));
    }
View Full Code Here

        public CloudProcessListDialog() {
            setModal(true);
            setTitle(getComputerLabel());
            JPanel contentPanel = new JPanel();
            GroupLayout layout = new GroupLayout(contentPanel);
            contentPanel.setLayout(layout);
            JPanel headerPanel = createHeaderPanel();
            JPanel assignmentsPanel = createAssignmentsPanel();
            layout.setHorizontalGroup(layout.createParallelGroup()
                    .addComponent(headerPanel).addComponent(assignmentsPanel));
            layout.setVerticalGroup(layout.createSequentialGroup()
                    .addComponent(headerPanel, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE,
                            GroupLayout.PREFERRED_SIZE)
                    .addComponent(assignmentsPanel, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE,
                            GroupLayout.PREFERRED_SIZE));
            JScrollPane contentScrollPane = new JScrollPane(contentPanel);
View Full Code Here

        } else {
            alarmTimeInputField.setEnabled(true);
        }
        alarmSchedHelpText.setText("To set the alarm schedule, please click on the tap in the top of the window");

        GroupLayout AlarmPanelLayout = new GroupLayout(alarmPanel);
        alarmPanel.setLayout(AlarmPanelLayout);
        titledBorder = BorderFactory.createTitledBorder(loweredetched, "Alarm Settings");
        alarmPanel.setBorder(titledBorder);
        AlarmPanelLayout.setHorizontalGroup(
                AlarmPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(AlarmPanelLayout.createSequentialGroup().addContainerGap().addGroup(AlarmPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(AlarmPanelLayout.createSequentialGroup().
                addComponent(dailyAlarmRadioButton).addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED).
                addComponent(alarmScheduleRadioButton)).
                addComponent(alarmSchedHelpText).addGroup(AlarmPanelLayout.createSequentialGroup().
                addComponent(alarmTimeInputField, GroupLayout.PREFERRED_SIZE, 57, GroupLayout.PREFERRED_SIZE).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED))).addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
        AlarmPanelLayout.setVerticalGroup(
                AlarmPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(AlarmPanelLayout.createSequentialGroup().addContainerGap().addGroup(AlarmPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE).
                addComponent(dailyAlarmRadioButton).
                addComponent(alarmScheduleRadioButton)).addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED).addGroup(AlarmPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE).
                addComponent(alarmTimeInputField, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 15, Short.MAX_VALUE).
                addComponent(alarmSchedHelpText).addContainerGap()));

        mathCheck.setText("Math");
        mathCheck.addItemListener(new ItemListener()  {

            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                taskBoxesStateChanged(evt);
            }
        });

        taskSettingsTitel.setText("Choose which tasks to use");

        mathMultiplyCheck.setText("Multiply");
    
        mathSubtractionCheck.setText("Subtraction");

        mathAdditionCheck.setText("Addition");

        binaryCheck.setText("Binary");
        if(settings.getTaskSettings().getBin()){
          binaryCheck.setSelected(true);
        }
        shapesCheck.setText("Shapes");
        if(settings.getTaskSettings().getShapes()){
          shapesCheck.setSelected(true);
        }
        oddoneoutCheck.setText("OddOneOut");
        if(settings.getTaskSettings().getOdd()){
          oddoneoutCheck.setSelected(true);
        }
        if(settings.getTaskSettings().isMat()){
          mathCheck.setSelected(true);
        }
        if(settings.getTaskSettings().getMath()[0]==1){
          mathAdditionCheck.setSelected(true);
        }
        if(settings.getTaskSettings().getMath()[1]==1){
          mathSubtractionCheck.setSelected(true);
        }
        if(settings.getTaskSettings().getMath()[2]==1){
          mathMultiplyCheck.setSelected(true);
        }
        if(!mathCheck.isSelected()){
            mathAdditionCheck.setEnabled(false);
            mathMultiplyCheck.setEnabled(false);
            mathSubtractionCheck.setEnabled(false);
        }

        showExButton.setText("Show Examples");

        difficultyTitel.setText("Difficulty");

        difEasy.setText("Kiddie");

        difNormal.setText("Normal");

        difHard.setText("You're NEVER turning this off");
        if(settings.getTaskSettings().getDifficulty()==1){
        difEasy.setSelected(true)
        }else if(settings.getTaskSettings().getDifficulty()==2){
          difNormal.setSelected(true)
        }else{
          difHard.setSelected(true);
        }
        difficultyGroup = new ButtonGroup();
        difficultyGroup.add(difEasy);
        difficultyGroup.add(difNormal);
        difficultyGroup.add(difHard);

        GroupLayout taskSettingsPanelLayout = new GroupLayout(taskSettingsPanel);
        taskSettingsPanel.setLayout(taskSettingsPanelLayout);
        titledBorder = BorderFactory.createTitledBorder(loweredetched, "Task settings");
        taskSettingsPanel.setBorder(titledBorder);
        taskSettingsPanelLayout.setHorizontalGroup(
                taskSettingsPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(taskSettingsPanelLayout.createSequentialGroup().addContainerGap().addGroup(taskSettingsPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(taskSettingsPanelLayout.createSequentialGroup().
                addComponent(difEasy).addGap(18, 18, 18).
                addComponent(difNormal).addGap(18, 18, 18).
                addComponent(difHard)).
                addComponent(taskSettingsTitel).addGroup(taskSettingsPanelLayout.createSequentialGroup().addGroup(taskSettingsPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING).
                addComponent(mathCheck).addGroup(taskSettingsPanelLayout.createSequentialGroup().addGap(21, 21, 21).addGroup(taskSettingsPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING).
                addComponent(mathAdditionCheck).
                addComponent(mathMultiplyCheck).
                addComponent(mathSubtractionCheck)))).addGap(96, 96, 96).addGroup(taskSettingsPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING).
                addComponent(showExButton).
                addComponent(oddoneoutCheck).
                addComponent(shapesCheck).
                addComponent(binaryCheck))).addGroup(GroupLayout.Alignment.TRAILING, taskSettingsPanelLayout.createSequentialGroup().
                addComponent(difficultyTitel).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).
                addComponent(jSeparator4, GroupLayout.DEFAULT_SIZE, 310, Short.MAX_VALUE))).addContainerGap()));
        taskSettingsPanelLayout.setVerticalGroup(
                taskSettingsPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(taskSettingsPanelLayout.createSequentialGroup().
                addComponent(taskSettingsTitel).addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED).addGroup(taskSettingsPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE).
                addComponent(mathCheck).
                addComponent(binaryCheck)).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addGroup(taskSettingsPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE).
                addComponent(mathMultiplyCheck).
                addComponent(shapesCheck)).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addGroup(taskSettingsPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE).
                addComponent(mathAdditionCheck).
                addComponent(oddoneoutCheck)).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addGroup(taskSettingsPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE).
                addComponent(mathSubtractionCheck).
                addComponent(showExButton)).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addGroup(taskSettingsPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING).
                addComponent(jSeparator4, GroupLayout.PREFERRED_SIZE, 10, GroupLayout.PREFERRED_SIZE).
                addComponent(difficultyTitel)).addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED).addGroup(taskSettingsPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE).
                addComponent(difEasy).
                addComponent(difNormal).
                addComponent(difHard)).addGap(15, 15, 15)));

        loadButton.setText("Load");

        cancelButton.setText("Cancel");

        saveButton.setText("Save");
        saveButton.addActionListener(new java.awt.event.ActionListener() {

            public void actionPerformed(java.awt.event.ActionEvent evt) {
                saveButtonActionPerformed(evt);
            }
        });

        defaultButton.setText("Default");
        defaultButton.addActionListener(new java.awt.event.ActionListener() {

            public void actionPerformed(java.awt.event.ActionEvent evt) {
                defaultButtonActionPerformed(evt);
            }
        });

        snoozeSlider.addChangeListener(new javax.swing.event.ChangeListener() {

            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                snoozeSliderStateChanged(evt);
            }
        });


        GroupLayout generalSettingsTapLayout = new GroupLayout(generalSettingsTap);
        generalSettingsTap.setLayout(generalSettingsTapLayout);
        generalSettingsTapLayout.setHorizontalGroup(
                generalSettingsTapLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(generalSettingsTapLayout.createSequentialGroup().addContainerGap().addGroup(generalSettingsTapLayout.createParallelGroup(GroupLayout.Alignment.LEADING).
                addComponent(alarmPanel, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).
                addComponent(jSeparator2, GroupLayout.Alignment.TRAILING, GroupLayout.DEFAULT_SIZE, 376, Short.MAX_VALUE).
                addComponent(jSeparator1, GroupLayout.DEFAULT_SIZE, 376, Short.MAX_VALUE).
                addComponent(generalTitel).addGroup(generalSettingsTapLayout.createSequentialGroup().
                addComponent(alarmSoundLabel).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).
                addComponent(pathTextF, GroupLayout.PREFERRED_SIZE, 228, GroupLayout.PREFERRED_SIZE).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).
                addComponent(browseForSound)).
                addComponent(snoozeEnable).addGroup(generalSettingsTapLayout.createSequentialGroup().
                addComponent(snoozeLabel).addGroup(generalSettingsTapLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(generalSettingsTapLayout.createSequentialGroup().addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED).
                addComponent(snoozeSlider, GroupLayout.PREFERRED_SIZE, 229, GroupLayout.PREFERRED_SIZE)).addGroup(GroupLayout.Alignment.TRAILING, generalSettingsTapLayout.createSequentialGroup().addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 261, Short.MAX_VALUE).
                addComponent(snoozeSetting).addGap(29, 29, 29)))).
                addComponent(jSeparator3, GroupLayout.DEFAULT_SIZE, 376, Short.MAX_VALUE).
                addComponent(taskSettingsPanel, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addGroup(GroupLayout.Alignment.TRAILING, generalSettingsTapLayout.createSequentialGroup().
                addComponent(saveButton).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).
                addComponent(loadButton).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).
                addComponent(defaultButton).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).
                addComponent(cancelButton))).addContainerGap()));
        generalSettingsTapLayout.setVerticalGroup(
                generalSettingsTapLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(generalSettingsTapLayout.createSequentialGroup().addContainerGap().
                addComponent(generalTitel).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).
                addComponent(jSeparator1, GroupLayout.PREFERRED_SIZE, 10, GroupLayout.PREFERRED_SIZE).addGap(3, 3, 3).addGroup(generalSettingsTapLayout.createParallelGroup(GroupLayout.Alignment.BASELINE).
                addComponent(alarmSoundLabel).
                addComponent(pathTextF, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE).
                addComponent(browseForSound)).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).
                addComponent(jSeparator2, GroupLayout.PREFERRED_SIZE, 10, GroupLayout.PREFERRED_SIZE).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).
                addComponent(snoozeEnable).addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED).addGroup(generalSettingsTapLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(generalSettingsTapLayout.createParallelGroup(GroupLayout.Alignment.BASELINE).
                addComponent(snoozeLabel).
                addComponent(snoozeSetting)).
                addComponent(snoozeSlider, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)).addGap(18, 18, 18).
                addComponent(jSeparator3, GroupLayout.PREFERRED_SIZE, 10, GroupLayout.PREFERRED_SIZE).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).
                addComponent(alarmPanel, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE).addGap(18, 18, 18).
                addComponent(taskSettingsPanel, GroupLayout.PREFERRED_SIZE, 215, GroupLayout.PREFERRED_SIZE).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addGroup(generalSettingsTapLayout.createParallelGroup(GroupLayout.Alignment.BASELINE).
                addComponent(cancelButton).
                addComponent(defaultButton).
                addComponent(loadButton).
                addComponent(saveButton)).addContainerGap(13, Short.MAX_VALUE)));

        jTabbedPane1.addTab("General Settings", generalSettingsTap);

        alarmShedTitel.setText("Alarm Schedule");

//        GroupLayout alarmScheduleTapLayout = new GroupLayout(alarmScheduleTap);
//        alarmScheduleTap.setLayout(alarmScheduleTapLayout);
//        alarmScheduleTapLayout.setHorizontalGroup(
//                alarmScheduleTapLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(alarmScheduleTapLayout.createSequentialGroup().addContainerGap().
//                addComponent(alarmShedTitel).addContainerGap(313, Short.MAX_VALUE)));
//        alarmScheduleTapLayout.setVerticalGroup(
//                alarmScheduleTapLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(alarmScheduleTapLayout.createSequentialGroup().addContainerGap().
//                addComponent(alarmShedTitel).addContainerGap(487, Short.MAX_VALUE)));

        jTabbedPane1.addTab("Alarm Schedule", new Schedule());

        GroupLayout layout = new GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
                layout.createParallelGroup(GroupLayout.Alignment.LEADING).
                addComponent(jTabbedPane1, GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE));
        layout.setVerticalGroup(
                layout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(layout.createSequentialGroup().
                addComponent(jTabbedPane1, GroupLayout.PREFERRED_SIZE, 645, GroupLayout.PREFERRED_SIZE).addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
                                     // Set size of window here        ^^^
        pack();
    }// </editor-fold>
View Full Code Here

  /**
   * vytvori cely layout
   * @return hotovy layout
   */
  public GroupLayout createFromBibTexView(){
    GroupLayout groupLayout = new GroupLayout(getContentPane());
    groupLayout.setHorizontalGroup(
      groupLayout.createParallelGroup(Alignment.TRAILING)
        .addComponent(backgroundPanel, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 392, Short.MAX_VALUE)
    );
    groupLayout.setVerticalGroup(
      groupLayout.createParallelGroup(Alignment.TRAILING)
        .addComponent(backgroundPanel, GroupLayout.DEFAULT_SIZE, 370, Short.MAX_VALUE)
    );
   
    JPanel panel = new JPanel();
    panel.setBounds(0, 0, 794, 613);
View Full Code Here

  /**
   * vytvory cely layout
   * @return hotovy layout
   */
  public GroupLayout createFromBibTexView(){
    GroupLayout groupLayout = new GroupLayout(frame.getContentPane());
    groupLayout.setHorizontalGroup(
      groupLayout.createParallelGroup(Alignment.TRAILING)
        .addComponent(backgroundPanel, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 392, Short.MAX_VALUE)
    );
    groupLayout.setVerticalGroup(
      groupLayout.createParallelGroup(Alignment.TRAILING)
        .addComponent(backgroundPanel, GroupLayout.DEFAULT_SIZE, 370, Short.MAX_VALUE)
    );
   
    JPanel panel = new JPanel();
    panel.setBounds(0, 0, 794, 591);
View Full Code Here

TOP

Related Classes of javax.swing.GroupLayout$ContainerAutoPreferredGapSpring

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.