• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 312
  • Last Modified:

What is a "custom" swing component?

I am reading javadocs of an API (see attached).
One line says:
Implement this class if you are using custom Swing or AWT components, ...

What exactly is meant by "custom"?
If I have a class that extends say, JCheckbox, is that a custom component?
package-summary.html
0
allelopath
Asked:
allelopath
  • 2
2 Solutions
 
dimajCommented:
If I were to take a guess, I'd say that it's a custom component that was implemented with the help of swing libraries.

I could be wrong though.
0
 
for_yanCommented:
My guess is that custom Swing or AWT component is the class which you wrote yourself but which extends Swing or AWT compohnent

Say you wrote

 class MyPanel extends JPanel {
..

}

so MyPanel is your custom swing coponent
0
 
HonorGodCommented:
From "How to Support Assistive Technologies"

http://download.oracle.com/javase/tutorial/uiswing/misc/access.html
----------------------------------------------------------------------
If you create a custom component, make sure it supports accessibility. In particular, be aware that subclasses of JComponent are not automatically accessible. Custom components that are descendants of other Swing components should override inherited accessibility information as necessary. For more information, see Concepts: How Accessibility Works and Making Custom Components Accessible.
----------------------------------------------------------------------

From this we can infer the answer to your question

Q: If I have a class that extends say, JCheckbox, is that a custom component?
A: Yes

0
 
HonorGodCommented:
Thanks for the grade & points.

Good luck & have a great day
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now