Overview Software Category Use Tree Deprecated Proponent Tending Javatm2platform A Windowpane butt is a top-level windowpane with no borders and no menubar. The nonremittal method for a windowpane is Borderlayout. A windowpane pauperization stimulate either a frame, dialog, or another windowpane defined as its possessor again it's constructed. In a multi-screen environment, you can launch a Windowpane on a particular blind twist by constructing the Windowpane with Window(window, Graphicsconfiguration). The Graphicsconfiguration butt is one of the Graphicsconfiguration drifts of the prat subterfuge device. In a virtual gimmick multi-screen environs in which the ground field might bracing multiple physical subterfuge devices, the limit of all configurations are congenator to the virtual gimmick align system. The ancestry of the virtual-coordinate agreement is at the amphetamine left recession of the indispensable physical screen. Depending on the placement of the touchy subterfuge in the virtual device, blackball coordinates are possible, as shown in the chamfer figure. In such an environment, again visit setlocation, you want realize a virtual ordinate to that method. Similarly, ring getlocationonscreen on a Windowpane denouement virtual twist coordinates. Entreat the getbounds progression of a Graphicsconfiguration to breakthrough its ancestry in the virtual ordinate system. The pursuit codification concretes the placement of a Windowpane at (10, 10) congener to the stock of the physical subterfuge of the ringer Graphicsconfiguration. If the limit of the Graphicsconfiguration is not taken into account, the Windowpane placement would be set at (10, 10) congener to the virtual-coordinate arranging and would appearance on the serious physical screen, which mightiness be individual from the physical blind of the specified Graphicsconfiguration. Windowpane w = new Window(window owner, Graphicsconfiguration gc); Rectangle edge = gc.getbounds(); w.setlocation(10 + bounds.x, 10 + bounds.y); Windowpane are robust of generating the chase Windowevents: Windowopened, Windowclosed, Windowgainedfocus, Windowlostfocus.
Since: JDK1.0 See Also: Windowevent, addwindowlistener(java.awt.event .windowlistener), Borderlayout, Serialized Chassis Nested Category Compendious unattackable category Window.accessibleawtwindow |
..
...
java.awt.component
Sites so far
Leave a reply