Java Swing JComponent

Java examples for Swing:JComponent

Description

Click the following links for the tutorial for Swing and JComponent.

  1. Extend JComponent to create custom Component
  2. debug JComponent Border
  3. set JComponent Size
  4. get Swing Component With Margin and return JPanel
  5. strech Swing Item To Component
  6. add Action to JComponent
  7. add JComponent Border Spaces
  8. set Font to JComponent


  9. get JComponent Maximum Height
  10. get JComponent Maximum Width
  11. JComponent get Minimum Height
  12. get JComponent Minimum Width
  13. get JComponent Preferred Height
  14. get JComponent Preferred Width
  15. set JComponent Height
  16. set JComponent Maximum Height


  17. set JComponent Maximum Width
  18. set JComponent Minimum Height
  19. set JComponent Minimum Width
  20. set JComponent Preferred Height
  21. set JComponent Preferred Width
  22. set JComponent Width
  23. Binds an ActionListener to both double-click and the enter key in the given JComponent.
  24. Fixes the page up/down keys and home/end keys to work on another JComponent from the one with the keyboard focus.
  25. Binds an Action to a JComponent via the Action's configured ACCELERATOR_KEY.
  26. Scrolls the given JComponent by its unit or block increment in the given direction (actually a scale factor, so use +1 or -1).
  27. Scrolls the given JComponent to its top or bottom.
  28. force JComponent Size
  29. remove JComponent Border
  30. repaint JComponent
  31. set JComponent Expandable
  32. set JComponent Margin
  33. set JComponent Shrinkable
  34. print Action Map for Swing JComponent
  35. print Input Map for Swing JComponent
  36. Displays a Swing file selection dialog, and returns the URL of the image selected.
  37. get Ancestor JDialog from Component
  38. we want the complete dialog on screen
  39. set Lightweight Dispatcher for JComponent
  40. Adds a hot key to the containing window of a Swing component.
  41. Convenience function for determining Component Orientation.
  42. Performs lightweight dispatching for the specified event on this swing window.
  43. remove Border from JComponent
  44. set Border for JComponent
  45. set Next Focusable JComponent
  46. set Swing JComponent Focus Order
  47. Returns whether a JComponent listens for a key code, i.e.
  48. set Component Size
  49. Returns the deepest visible descendent Component of parent that contains the location x, y.
  50. Centers a component on its parent.
  51. Adds a hand cursor to the component, as well as a click listener that triggers a browse action to the given url.
  52. Adds a listener to the window parent of the given component.
  53. Freezes the size of the given component, preventing it from expanding to fill any additional space.
  54. Freezes the width of the given component, preventing it from expanding to fill any additional space.
  55. Calculates the average character width for the given Component .
  56. get All Sub Components
  57. Sets the items in Components to the same size.
  58. get Viewport Ancestor from Component
  59. install JComponent Actions
  60. Equalizes the sizes of the given components.
  61. Gets the maximum preferred size from a group of components.
  62. Centers the window over the given component.
  63. Returns a set of all components under the given parent.
  64. add New Line To Container
  65. add Space To Container
  66. Tries to determine the frame the container is part of.
  67. center On Parent
  68. Make sure that a component can be completely seen on the relevant screen, i.e.
  69. Get the bounds (x, y, width, height) of the screen where the given component lies or "null" if not on any screen.
  70. set Default Components Tab Order
  71. get String Size on Component
  72. screen Shot JComponent
  73. Fixes the size of a JComponent to the given width and height.
  74. Returns the layered pane that is the top level container for the given component
  75. Sets the minimum size of the JComponent
  76. Recursively sets the enabled state of the component and its child components
  77. Creates a new color with the same color components but a different alpha value.
  78. Converts color components from the CIE L*u*v* to the sRGB color space.
  79. Convert color components from the CIE L*u*v* to the CIE XYZ color space.
  80. Converts color components from the sRGB to the CIE XYZ color space.
  81. Converts color components from the CIE XYZ to the CIE L*u*v* color space.
  82. Get the bounds of the parent of the dragged component.
  83. Returns the first component in the tree of c that can accept the focus.
  84. is Ancestor Of Focused Component
  85. Gets the root pane of the given component.
  86. Determines if the component is visible in its window at the given screen location.
  87. Repaints the parent of the given component.
  88. Gets the interior drawing region of a component.
  89. Sets the maximum size of a JComponent to the preferred size
  90. set Components Enabled
  91. remove sub components of container which matches regular expression
  92. set c1 location relative to c2
  93. Equalize the width of the given components.
  94. Remove all the opaqueness of the given components and child components.