正在加载图片...
iava.awt. Component get Fonto: java. awt. Font Returns the font of this component Sets the font of this compor get Background: java. awt. Color Returns the background color of this component set Background(c: Color): void Sets the background color of this component get Foreground: java. awt. Color Returns the foreground color of this component. foReground(c: Color ): void Sets the foreground color of this component Returns the width of this component getHeightO: int Returns the height of this component tPreferredSize( Dimension Returns the preferred size of this compor setPreferredSize(d Dimension): void Sets the preferred size of this component is Visible: boolean Indicates whether this component is visible set Visible(b: boolean); void Shows or hides this component java. awt Container add(comp: Component): Component ppends a component to the container add(comp: Component, index: int): Component Adds a component to the container with the specified index remove(comp: Component ): void Removes the component from the container getLayout(: LayoutManager Returns the layout manager for this container set Layout(l: Layout Manager): void Sets the layout manager for this container paintComponents(g: Graphics ): void Paints each of the components in this container javax. swing. JComponent get TextO: String Returns the tool tip text for this component. Tool tip text is displayed when the mouse points on the component without clicking set ToolTipText(test: String):ve Sets a new tool tip text for this component getBorder(: javax. swing. border Border Returns the border for this component setBorder(border: Border ) void Sets a new border for this componentLiang,Introduction to Java Programming,revised by Dai-kaiyu 4 java.awt.Container +add(comp: Component): Component +add(comp: Component, index: int): Component +remove(comp: Component): void +getLayout(): LayoutManager +setLayout(l: LayoutManager): void +paintComponents(g: Graphics): void Appends a component to the container. Adds a component to the container with the specified index. Removes the component from the container. Returns the layout manager for this container. Sets the layout manager for this container. Paints each of the components in this container. java.awt.Component +getFont(): java.awt.Font +setFont(f: java.awt.Font): void +getBackground(): java.awt.Color +setBackground(c: Color): void +getForeground(): java.awt.Color +setForeground(c: Color): void +getWidth(): int +getHeight(): int +getPreferredSize(): Dimension +setPreferredSize(d: Dimension) : void +isVisible(): boolean +setVisible(b: boolean): void Returns the font of this component. Sets the font of this component. Returns the background color of this component. Sets the background color of this component. Returns the foreground color of this component. Sets the foreground color of this component. Returns the width of this component. Returns the height of this component. Returns the preferred size of this component. Sets the preferred size of this component. Indicates whether this component is visible. Shows or hides this component. javax.swing.JComponent +getToolTipText(): String +setToolTipText(test: String): void +getBorder(): javax.swing.border.Border +setBorder(border: Border): void Returns the tool tip text for this component. Tool tip text is displayed when the mouse points on the component without clicking. Sets a new tool tip text for this component. Returns the border for this component. Sets a new border for this component
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有