Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7544127
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T08:36:21+00:00 2026-05-30T08:36:21+00:00

I have a custom cell renderer for a JList which displays a nested JList

  • 0

I have a custom cell renderer for a JList which displays a nested JList inside it with another custom cell renderer that displays a button. The problem I’m having is that any user inputs(e.g. mouse clicks on the buttons, scrolling action) doesn’t get handled and the nested JList becomes unreponsive(but it still paints properly whenever I resize the window). Is there any way to solve this issue?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T08:36:22+00:00Added an answer on May 30, 2026 at 8:36 am

    Like camickr said, Renderers just paint the image and are not real components.

    One way to get around this is to use a single-column JTable, instead of a JList, where you can set CellEditors, which are real components (but only once that cell gains focus).

    But it actually may be easier to create a panel with a scroll pane that listens to ListData events from a ListModel and adds and removes your components as necessary. That’s what I ended up going with the last time I had this problem, it was a bit more elegant.

    Although, if you just have a single button, the JTable may work quite well.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Any time I make a custom cell renderer for a JList, any elements I
I have a custom cell that contains a button in a table view. The
I have a custom cell renderer set in JTable and it works but instead
i have a custom cell i want to delete it when a button is
I have my on custom cell renderer and want to remove the border of
I have a situation where i need to implement a custom tree cell renderer.
I have a JTable in Java that has a custom dataMOdel and custom renderer.
I have custom cell which contains number of rows in it.i want to write
I've got a custom tree cell renderer that I'm using to render custom icons
I have a custom cell and i displayed that custom cell in a table

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.