-
Enhancement
-
Resolution: Unresolved
-
P4
-
None
-
1.3.0
-
Fix Understood
-
generic
-
generic
Name: skT88420 Date: 01/19/2000
E:\LocalCVSRepository\SourceCode\JBuilder\Mockup\RenderablePipelineClasses>java
-version
java version "1.3beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3beta-O)
Java(TM) HotSpot Client VM (build 1.3beta-O, mixed mode)
I have run into a problem with the definition of the following instance
variable:
private Container dockingSource;
in the javax.swing.plaf.basic.BasicToolBarUI class. Specifically, I wanted
to add the functionality to dock the toolbar to any instantiated JFrame
within an application instead of just the original JFrame containing the
toolbar. I have accomplished this successfully, but unfortunately, the
private access modifer on the dockingSource instance variable has forced me
to include a large portion of the BasicToolBarUI code within a custom UI
class. If the dockingSource variable were changed to protected
or public get/set accessors were provided , I could easily change what it
references within my derived UI class without necessitating its replacement
with my own dockingSource variable and replacement of all the methods that
depend upon it which include:
dragTo
floatAt
setFloating
and the private methods
getDockingConstraint
mapConstraintToOrientation
which the dragTo, etc. methods depend upon.
I am requesting that the access modifier for dockingSource be changed to:
protected Container dockingSource
OR
that protected or public get/set accessors be provided for this instance
variable.
(Review ID: 100123)
======================================================================
- links to
-
Review openjdk/jdk/10309