-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolve "Add Search Bar to Config Views"
Closes #1982 See merge request main/Sumatra!1873 sumatra-commit: e527f3919a8a8503f1b6fdecc9ad3c8289e586e0
- Loading branch information
Showing
13 changed files
with
446 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
modules/common-gui-config/src/main/java/edu/tigers/sumatra/config/ConfigEditorSearchBar.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
* Copyright (c) 2009 - 2024, DHBW Mannheim - TIGERs Mannheim | ||
*/ | ||
|
||
package edu.tigers.sumatra.config; | ||
|
||
import edu.tigers.sumatra.util.ImageScaler; | ||
import lombok.Getter; | ||
|
||
import javax.swing.JComponent; | ||
import javax.swing.JLabel; | ||
import javax.swing.JTextField; | ||
import java.awt.BorderLayout; | ||
|
||
|
||
public class ConfigEditorSearchBar extends JComponent | ||
{ | ||
@Getter | ||
private final JTextField textField = new JTextField(); | ||
|
||
|
||
public ConfigEditorSearchBar() | ||
{ | ||
|
||
setLayout(new BorderLayout()); | ||
var icon = new JLabel(); | ||
icon.setIcon(ImageScaler.scaleSmallButtonImageIcon("/icons8-search-50.png")); | ||
|
||
|
||
add(icon, BorderLayout.WEST); | ||
add(textField, BorderLayout.CENTER); | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.