Files
2024-06-12 13:10:10 +09:00

2.0 KiB

Panel

JPanel

  • add(Component) / add(Component,int) / add(Component,Object) / add(Component,Object,int) / add(String,Component)

  • getComponentCount()

  • getComponent(int) / getComponentAt(int,int) / getComponentAt(Point) / getComponents()

  • remove(Component) / remove(int) / removeAll()

  • getLayout() / setLayout(LayoutManager)

JRootPane

  • Glass pane

  • Layered pane

    • FRAME_CONTENT_LAYER : -30000
    • DEFAULT_LAYER : 0
    • PALETTE_LAYER : 100
    • MODAL_LAYER : 200
    • POPUP_LAYER : 300
    • DRAG_LAYER : 400
  • Content pane

  • JMenu bar

  • jFrame.getRootPane()

  • SwingUtilities.getRootPane(Component)

  • jComponent.getRootPane()

  • getDefaultButton() / setDefaultButton(JButton)

  • jFrame.getGlassPane() / jFrame.setGlassPane(Component)

  • jFrame.getLayeredPane() / jFrame.setLayeredPane(Component)

  • jFrame.getContentPane() / jFrame.setContentPane(Container)

  • jFrame.getJMenuBar() / jFrame.setJMenuBar(JMenuBar)

JScrollPane

  • JScrollPane(Component) / JScrollPane(Component,int,int)

  • setviewportView(Component)

  • getVerticalScrollBarPolicy() / setVerticalScrollBarPolicy(int) : ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED | VERTICAL_SCROLLBAR_ALWAYS | VERTICAL_SCROLLBAR_NEVER

  • getHorizontalScrollBarPolicy() / setHorizontalScrollBarPolicy(int) : ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED | HORIZONTAL_SCROLLBAR_ALWAYS | HORIZONTAL_SCROLLBAR_NEVER

  • getViewportBorder() / setViewportBorder(Border)

  • isWheelScrollingEnabled()

  • setRowHeaderView(Component) / setColumnHeaderView(Component)

  • getCornet(String) / setCorner(String,Component) : ScrollPaneConstants.UPPER_LEFT_CORNER | UPPER_RIGHT_CORNER | LOWER_LEFT_CORNER | LOWER_RIGHT_CORNER | LOWER_LEADING_CORNER | LOWER_TRAILING_CORNER | UPPER_LEADING_CORNER | UPPER_TRAILING_CORNER

Scrollable

  • getScrollableUnitIncrement() / getScrollableBlockIncrement()
  • getPreferredScrollableViewportSize()
  • getScrollableTracksViewportWidth() / getScrollableTracksViewportHeight()