?
Solved

What is a "custom" swing component?

Posted on 2011-09-13
4
Medium Priority
?
304 Views
Last Modified: 2012-05-12
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
Comment
Question by:allelopath
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 7

Expert Comment

by:dimaj
ID: 36530281
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
 
LVL 47

Assisted Solution

by:for_yan
for_yan earned 400 total points
ID: 36530811
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
 
LVL 41

Accepted Solution

by:
HonorGod earned 1600 total points
ID: 36530812
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
 
LVL 41

Expert Comment

by:HonorGod
ID: 36532507
Thanks for the grade & points.

Good luck & have a great day
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Suggested Courses
Course of the Month14 days, 13 hours left to enroll

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question