Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/GwinProGrammer/Legup into Gw…
Browse files Browse the repository at this point in the history
…inProGrammer-dev
  • Loading branch information
charlestian23 committed Jul 22, 2022
2 parents 654c27d + 05264ee commit dd0241b
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import edu.rpi.legup.model.Puzzle;
import edu.rpi.legup.model.gameboard.Board;
import edu.rpi.legup.model.rules.Rule;
import edu.rpi.legup.ui.lookandfeel.components.MaterialTabbedPaneUI;

import java.awt.BorderLayout;
import java.awt.Dimension;
Expand Down Expand Up @@ -34,9 +35,18 @@ public class RuleFrame extends JPanel {
private RuleController controller;

public RuleFrame(RuleController controller) {

MaterialTabbedPaneUI tabOverride = new MaterialTabbedPaneUI(){
//this prevents the tabs from moving around when you select them
@Override protected boolean shouldRotateTabRuns(int i){
return false;
}
};

this.controller = controller;

this.tabbedPane = new JTabbedPane();
this.tabbedPane.setUI(tabOverride);
this.status = new JLabel();
this.buttonGroup = new ButtonGroup();

Expand Down

0 comments on commit dd0241b

Please sign in to comment.