Skip to content

Commit 403c995

Browse files
committed
Correct Look & Feel to be native, analogous to DataShot
1 parent 412dddf commit 403c995

5 files changed

Lines changed: 13 additions & 13 deletions

File tree

.github/workflows/maven-prerelease.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
run: mvn -B package --file pom.xml -P dist
3131
- name: Determine Prerelease Name
3232
id: name_determiner
33-
run: echo "##[set-output name=name;]DataShot-$(date +'%Y%m%d')-beta"
33+
run: echo "##[set-output name=name;]PreCapture-$(date +'%Y%m%d')-beta"
3434
- name: Create Pre-release
3535
id: create_prerelease
3636
if: success()

PRECAPTURE2.h2.db

0 Bytes
Binary file not shown.

PreCaptureApp.iml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
<component name="FacetManager">
44
<facet type="hibernate" name="Hibernate">
55
<configuration>
6-
<datasource-map />
6+
<datasource-map>
7+
<unit-entry name="bin:hibernate.cfg.xml" />
8+
<unit-entry name="hibernate.cfg.xml" />
9+
</datasource-map>
710
<naming-strategy-map />
811
<deploymentDescriptor name="hibernate.cfg.xml" url="file://$MODULE_DIR$/bin/hibernate.cfg.xml" />
912
<deploymentDescriptor name="hibernate.cfg.xml" url="file://$MODULE_DIR$/src/hibernate.cfg.xml" />

src/edu/harvard/mcz/precapture/PreCaptureApp.java

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,6 @@ public class PreCaptureApp {
7373
*/
7474
public static void main(String[] args) {
7575
try {
76-
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
77-
// System.setProperty("apple.laf.useScreenMenuBar", "true");
78-
} catch (UnsupportedLookAndFeelException | ClassNotFoundException | InstantiationException | IllegalAccessException e) {
79-
log.error(e);
80-
}
81-
82-
try {
83-
8476
SplashScreen splashScreen = new SplashScreen();
8577
splashScreen.pack();
8678
splashScreen.setVisible(true);
@@ -205,7 +197,12 @@ public void run() {
205197
UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());
206198
}
207199
} else {
208-
UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());
200+
try {
201+
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
202+
// System.setProperty("apple.laf.useScreenMenuBar", "true");
203+
} catch (UnsupportedLookAndFeelException | ClassNotFoundException | InstantiationException | IllegalAccessException e) {
204+
log.error(e);
205+
}
209206
}
210207

211208
// Support Command C/P/X for copy/paste/cut on OSX as well as Control C/P/X on other systems.

src/edu/harvard/mcz/precapture/ui/MainFrame.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ public class MainFrame implements WindowListener {
4040
private JFrame frame;
4141
private JTable tablePrintList;
4242
private boolean closing = false;
43-
/** Set to true to use Napkin Look and Feel.
43+
/**
44+
* Set to true to use Napkin Look and Feel.
4445
*/
4546
private ContainerEntryPanel folderPanel;
4647

@@ -105,7 +106,6 @@ public void actionPerformed(ActionEvent e) {
105106
}
106107
});
107108

108-
109109
JPanel panel_4 = new ContainerListPanel(frame);
110110
tabbedPane.addTab("Print List", null, panel_4, null);
111111
tabbedPane.setMnemonicAt(1, KeyEvent.VK_L);

0 commit comments

Comments
 (0)