Skip to content

Commit

Permalink
BasicSplitPaneUI check
Browse files Browse the repository at this point in the history
  • Loading branch information
prsadhuk committed Jun 26, 2024
1 parent 7aadfcc commit 655ab84
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/java.desktop/share/classes/javax/swing/JSplitPane.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2024, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -362,14 +362,17 @@ public JSplitPane(int newOrientation,

}


/**
* {@inheritDoc}
* @param enabled {@inheritDoc}
*/
@Override
public void setEnabled(boolean enabled) {
super.setEnabled(enabled);
((BasicSplitPaneUI)(this.getUI())).getDivider().setEnabled(enabled);
if (this.getUI() instanceof BasicSplitPaneUI) {
((BasicSplitPaneUI)(this.getUI())).getDivider().setEnabled(enabled);
}
}

/**
Expand Down Expand Up @@ -585,6 +588,7 @@ public void setOneTouchExpandable(boolean newValue) {
repaint();
}


/**
* Gets the <code>oneTouchExpandable</code> property.
*
Expand Down

0 comments on commit 655ab84

Please sign in to comment.