DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
Building Scalable Real-Time Apps with AstraDB and Vaadin
Register Now

Trending

  • Microservices With Apache Camel and Quarkus
  • RBAC With API Gateway and Open Policy Agent (OPA)
  • A Complete Guide to AWS File Handling and How It Is Revolutionizing Cloud Storage
  • The SPACE Framework for Developer Productivity

Trending

  • Microservices With Apache Camel and Quarkus
  • RBAC With API Gateway and Open Policy Agent (OPA)
  • A Complete Guide to AWS File Handling and How It Is Revolutionizing Cloud Storage
  • The SPACE Framework for Developer Productivity
  1. DZone
  2. Coding
  3. Java
  4. JHierarchicalList, an Extension to org.netbeans.swing.outline.Outline

JHierarchicalList, an Extension to org.netbeans.swing.outline.Outline

Viacheslav Rudyuk user avatar by
Viacheslav Rudyuk
·
Sep. 06, 10 · News
Like (0)
Save
Tweet
Share
5.53K Views

Join the DZone community and get the full member experience.

Join For Free
My name is Viacheslav, I live in Russia, and program in Java. For several years, I've been following with interest the development of the NetBeans Platform. At work, I've been mainly working on Java EE technology, while writing something for Swing and the NetBeans Platform has been something I've been doing in my spare time.

Here I want to show a component I wrote that inherits from org.netbeans.swing.outline.Outline. It is called JHierarchicalList. In contrast to the Outline component, JHierarchicalList does not display the entire tree, but only a single path.

I'd like to add that these changes do not affect the data model, since the main work is in the class extended from javax.swing.tree.AbstractLayoutCache.

On the left, you see Outline, on the right, JHierarchicalList:

Sources are being finalized, here is the demo JAR so far. Run it as follows:

java -jar demo-hierarchical-list.jar

 

Java EE Java (programming language) NetBeans Data (computing) Tree (data structure) JAR (file format)

Opinions expressed by DZone contributors are their own.

Trending

  • Microservices With Apache Camel and Quarkus
  • RBAC With API Gateway and Open Policy Agent (OPA)
  • A Complete Guide to AWS File Handling and How It Is Revolutionizing Cloud Storage
  • The SPACE Framework for Developer Productivity

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com

Let's be friends: