Solved

What is a "custom" swing component?

Posted on 2011-09-13
4
302 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 100 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 400 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
maven module vs maven project 3 74
jsp CRUD operations with and without prepared statement also hibernatge 1 31
How to log java errors in tomcat 8 24
Java array sort 10 35
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
In this post we will learn different types of Android Layout and some basics of an Android App.
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

726 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