Merge remote-tracking branch 'upstream/master' into openosrs_branding
This commit is contained in:
@@ -331,7 +331,8 @@ public class SwingUtil
|
||||
button.setOpaque(true);
|
||||
|
||||
// Selecting the button option requires us to determine which parent element is the JOptionPane
|
||||
button.addActionListener(e -> {
|
||||
button.addActionListener(e ->
|
||||
{
|
||||
JComponent component = (JComponent) e.getSource();
|
||||
while (component != null)
|
||||
{
|
||||
@@ -401,7 +402,8 @@ public class SwingUtil
|
||||
dialog.setIconImage(ImageUtil.getResourceStreamFromClass(SwingUtil.class, "/openosrs.png"));
|
||||
|
||||
// Listen for value changes and close dialog when necessary
|
||||
pane.addPropertyChangeListener(e -> {
|
||||
pane.addPropertyChangeListener(e ->
|
||||
{
|
||||
String prop = e.getPropertyName();
|
||||
|
||||
if (dialog.isVisible()
|
||||
|
||||
Reference in New Issue
Block a user