Skip to content

Commit

Permalink
Update README, slight change to button size
Browse files Browse the repository at this point in the history
  • Loading branch information
quocdat402 committed Apr 29, 2024
1 parent cd8a6d8 commit 466c2f9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,16 @@ Graphical User Interface for HARMs

## Installation
1. Install HARMs Engine at https://github.com/whistlebee/harmat<br />
2. Download and Run the program from command line
Note: You will need Ubuntu 18.04 for HARMs Engine to work.
2. Choose “releases”
download "harmat-2.0-cp35-cp35m-linux_x86_64.whl" if you using python3.5
download "harmat-2.0-cp36-cp36m-linux_x86_64.whl" if you using python3.6
3. Go to the directry where you had download the file, run
$ sudo pip3 install <file name>
<file name> is which file you have downloaded
```java
git clone https://github.com/Naehyung/HARMs
cd HARMs
git clone https://github.com/quocdat402/HARM_GUI.git
cd HARM_GUI
mvn package
cd target
java -jar HARMs-0.0.1.jar
Expand Down
6 changes: 3 additions & 3 deletions src/com/company/MainView.java
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public MainView(MainModel m) {
menuPanel = new JPanel();
menuPanel.setLayout(new BoxLayout(menuPanel, BoxLayout.Y_AXIS));
menuPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createRaisedBevelBorder(), "Tools", TitledBorder.CENTER, TitledBorder.TOP));
menuPanel.setPreferredSize(new Dimension(173, 100));
menuPanel.setPreferredSize(new Dimension(175, 100));
topPanel.add(menuPanel, BorderLayout.EAST);

centerPanel = new MyJPanel();
Expand Down Expand Up @@ -179,7 +179,7 @@ public MainView(MainModel m) {
btnMetrics.setIcon(resizedMetricsIcon);
btnAnalysis.setIcon(resizedAnalysisIcon);

Dimension buttonSize = new Dimension(180, 30);
Dimension buttonSize = new Dimension(136, 30);

btnMetrics.setMaximumSize(buttonSize);
btnAnalysis.setMaximumSize(buttonSize);
Expand All @@ -191,7 +191,7 @@ public MainView(MainModel m) {
btnAnalysis.setAlignmentY(Component.CENTER_ALIGNMENT);

menuPanel.add(btnMetrics);
menuPanel.add(Box.createRigidArea(new Dimension(0, 10)));
menuPanel.add(Box.createRigidArea(new Dimension(0, 8)));
menuPanel.add(btnAnalysis);

Insets buttonMargin = new Insets(5, 10, 5, 10);
Expand Down
Binary file modified target/classes/com/company/MainView.class
Binary file not shown.

0 comments on commit 466c2f9

Please sign in to comment.