Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/main/java/com/CDPrintable/ProgramWindow.java
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ private JPanel searchPanel() {
trackListPanel.setBorder(BorderFactory.createTitledBorder("Search Results"));

// Search table set up
JTable searchTable = new JTable(getTableModel("CDStub"));
JTable searchTable = new JTable(getTableModel("Release"));
searchTable.addMouseListener(new MouseAdapter() {
@Override
public void mouseClicked(MouseEvent e) {
Expand All @@ -156,7 +156,12 @@ public void mouseClicked(MouseEvent e) {
JTextField artistField = new JTextField(15);

// Search type combo box setup
JComboBox<String> searchTypeComboBox = new JComboBox<>(new String[] {"CDStub", "Artist", "Release"});
JComboBox<String> searchTypeComboBox = new JComboBox<>(new String[] {"Release", "Artist", "CDStub"});
searchTypeComboBox.addActionListener(_ -> {
if (searchTypeComboBox.getSelectedItem() != null && searchTypeComboBox.getSelectedItem().equals("CDStub")) {
JOptionPane.showMessageDialog(null, "CDStubs do not have track numbers. Because of this, they will all be shown as track 0.", "Warning", JOptionPane.WARNING_MESSAGE);
}
});

// Search button and event listener setup
JButton searchButton = new JButton("Search");
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/version.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Application version.

# MAJOR MINOR PATCH
version=2.2.1
version=2.2.2