Skip to content

Commit

Permalink
Release update
Browse files Browse the repository at this point in the history
Just disabled buttons and complexity text whose functionality has not
yet been implemented
  • Loading branch information
albertopoljak committed Nov 3, 2017
1 parent d2f7398 commit 74c1e45
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/main/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ public void mouseReleased(MouseEvent e) {
lblAlgorithmComplexity.setBounds(14, 208, 110, 14);
frmDecypherInStyle.getContentPane().add(lblAlgorithmComplexity);

JLabel txtComplexity = new JLabel("Very High: O(N!*2N+300*N^2)");
JLabel txtComplexity = new JLabel("Not working, to do in following updates");
txtComplexity.setForeground(Color.LIGHT_GRAY);
txtComplexity.setFont(new Font("Monospaced", Font.PLAIN, 14));
txtComplexity.setBounds(124, 204, 640, 25);
Expand All @@ -244,6 +244,7 @@ public void mouseReleased(MouseEvent e) {
frmDecypherInStyle.getContentPane().add(txtEstimatedMemUsage);

JButton btnRefreshVariables = new JButton("Refresh variables");
btnRefreshVariables.setEnabled(false);
btnRefreshVariables.setBackground(Color.DARK_GRAY);
btnRefreshVariables.setForeground(Color.GRAY);
btnRefreshVariables.setFocusPainted(false);
Expand Down
10 changes: 10 additions & 0 deletions src/main/Settings.java
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ public Settings() {
contentPane.setLayout(null);

JButton btnKillTheMusic = new JButton("Kill the music");
btnKillTheMusic.setEnabled(false);
btnKillTheMusic.setForeground(Color.GRAY);
btnKillTheMusic.setBackground(Color.DARK_GRAY);
btnKillTheMusic.setFocusPainted(false);
Expand All @@ -100,6 +101,7 @@ public Settings() {
contentPane.add(lblPerfomanceOptions);

rdbtnIHaveLow = new JRadioButton("Disk");
rdbtnIHaveLow.setEnabled(false);
rdbtnIHaveLow.setForeground(Color.LIGHT_GRAY);
rdbtnIHaveLow.setBackground(Color.DARK_GRAY);
rdbtnIHaveLow.setFocusPainted(false);
Expand All @@ -114,6 +116,7 @@ public void mouseReleased(MouseEvent e) {
contentPane.add(rdbtnIHaveLow);

rdbtnIHaveHigh = new JRadioButton("RAM");
rdbtnIHaveHigh.setEnabled(false);
rdbtnIHaveHigh.setForeground(Color.LIGHT_GRAY);
rdbtnIHaveHigh.setBackground(Color.DARK_GRAY);
rdbtnIHaveHigh.setFocusPainted(false);
Expand All @@ -129,6 +132,7 @@ public void mouseReleased(MouseEvent e) {
contentPane.add(rdbtnIHaveHigh);

rdbtnAutoRamDetection = new JRadioButton("Auto detection");
rdbtnAutoRamDetection.setEnabled(false);
rdbtnAutoRamDetection.setForeground(Color.LIGHT_GRAY);
rdbtnAutoRamDetection.setBackground(Color.DARK_GRAY);
rdbtnAutoRamDetection.setFocusPainted(false);
Expand Down Expand Up @@ -191,6 +195,7 @@ public void actionPerformed(ActionEvent arg0) {
contentPane.add(comboUpdate);

JButton btnFreeAllMemory = new JButton("Free all memory");
btnFreeAllMemory.setEnabled(false);
btnFreeAllMemory.setBackground(Color.DARK_GRAY);
btnFreeAllMemory.setForeground(Color.GRAY);
btnFreeAllMemory.setFocusPainted(false);
Expand All @@ -200,6 +205,7 @@ public void actionPerformed(ActionEvent arg0) {
contentPane.add(btnFreeAllMemory);

chckbxMeasureTimeNeeded = new JCheckBox("Measure time needed for each task");
chckbxMeasureTimeNeeded.setEnabled(false);
chckbxMeasureTimeNeeded.setBackground(Color.DARK_GRAY);
chckbxMeasureTimeNeeded.setForeground(Color.LIGHT_GRAY);
chckbxMeasureTimeNeeded.setFocusPainted(false);
Expand Down Expand Up @@ -353,6 +359,7 @@ public void mouseReleased(MouseEvent arg0) {
contentPane.add(lblPrintToLog);

JButton btnCurrentWordsReady = new JButton("Current words ready for permutation");
btnCurrentWordsReady.setEnabled(false);
btnCurrentWordsReady.setBackground(Color.DARK_GRAY);
btnCurrentWordsReady.setForeground(Color.GRAY);
btnCurrentWordsReady.setFocusPainted(false);
Expand All @@ -361,6 +368,7 @@ public void mouseReleased(MouseEvent arg0) {
contentPane.add(btnCurrentWordsReady);

JButton btnRefreshComplexityText = new JButton("Refresh complexity text");
btnRefreshComplexityText.setEnabled(false);
btnRefreshComplexityText.setBackground(Color.DARK_GRAY);
btnRefreshComplexityText.setForeground(Color.GRAY);
btnRefreshComplexityText.setFocusPainted(false);
Expand Down Expand Up @@ -427,6 +435,7 @@ public void mouseReleased(MouseEvent arg0) {
contentPane.add(lblTheme);

JRadioButton rdbtnDark = new JRadioButton("Dark");
rdbtnDark.setEnabled(false);
rdbtnDark.setForeground(Color.LIGHT_GRAY);
rdbtnDark.setBackground(Color.DARK_GRAY);
rdbtnDark.setFocusPainted(false);
Expand All @@ -436,6 +445,7 @@ public void mouseReleased(MouseEvent arg0) {
contentPane.add(rdbtnDark);

JRadioButton rdbtnNewRadioButton = new JRadioButton("Bright");
rdbtnNewRadioButton.setEnabled(false);
rdbtnNewRadioButton.setBackground(Color.DARK_GRAY);
rdbtnNewRadioButton.setForeground(Color.LIGHT_GRAY);
rdbtnNewRadioButton.setFocusPainted(false);
Expand Down
1 change: 0 additions & 1 deletion src/main/methods/ProcessInput.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Set;

import main.Main;

public class ProcessInput {
Expand Down
3 changes: 0 additions & 3 deletions src/main/methods/WordOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,4 @@ private static void permChars(char[] a, int n, ArrayList<String> generatedWords
}





}

0 comments on commit 74c1e45

Please sign in to comment.