Swing (Java): differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
m souce
Riga 120:
// viewed as a series of transparencies placed one above another in a overhead projector
// Swing typically places user components (such as buttons, etc.) in what it calls its
// 'content pane'. This pane is layer that is below most of the other (transparent) layers.
// So:layers.
// What are the layers for? Think of when you right-click on a control and it 'pops' a
// contextual menu 'over' the original control; or, when you press 'help' for a control or
// or hover the mouse for a 'tool tip' and the information is 'placed over the control'. How is that
// How is that done? By rendering the information in a layer 'above' the lower level
// 'content' pane. So:
// So:
// The standard way of adding a component to a 'multi-pane' container such as JFrame is by first
// establishing a reference to its 'content pane' (which is, by default just a JPanel with