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

  • SEARCH
  • Home
  • 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 8762303
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T15:29:39+00:00 2026-06-13T15:29:39+00:00

I am working on a big Gui project. Lots off complex stuff has been

  • 0

I am working on a big Gui project. Lots off complex stuff has been done and I cannot change the structure of the code. And as it is a complex project it is difficult to explain or give an SSE but I will try my best.

In our project some people have implemented their own Table. All the cells int the table are a class called CellPanel which extends JPanel class. So all table cells are JPanels actually. And these crazy guys have implemented their own mouseClicked function which is about 400 lines. So I am not pasting it here for the good of everyone 🙂 But that mouseClicked method only works if it is a right click. SO I have the chance of doing something like this:

public void mouseClicked(MouseEvent e) {

    DropTable.selectedColorMng(rowInTable);
    if(e.getButton()==MouseEvent.BUTTON1) {
        System.out.println("left click");
    }
    else{ 
        // 400 lines of code here
    }
}

Now what I want to do is that these CellPanels are designed to contain a label and an icon. It has always been used like this. No dynamic content inside. But now we have a requirement and I have modified these CellPanels to contain JList in a ScrollPane. But these JLists are not clickable. I want to scroll them make multiple selections, but they do not respond to my left clicks. So I think I have to fill inside the if statement of the above code.

But how?

  • 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-06-13T15:29:40+00:00Added an answer on June 13, 2026 at 3:29 pm

    I’m not sure if I understood your question completely. I understood, that your CellPanel catches the click events so that they doesn’t reach the JList which is contained in the CellPanel.

    If it is like that you can simply delegate that event in the mouseClick of the CellPanel to the JList there must be a reference to it as it is shown in there.

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

Sidebar

Related Questions

I'm working on a big c++ project and change code from other people. During
I'm working on a big Java project which has been around for a while
I am working in a fairly big project. We have lots of projects and
I am currently working on this big project (a GUI to control hardware) that
i'm working on a big python project, and i'm really sick if .pyc and
We are working on a big project. During our development we faced with a
I'm working on a big project for embedded systems. The project is a library
I'm working on a big flash site with lots of component swfs and a
I'm working on a big Qt application with multiple widgets which are quite complex.
I want to start working on a big project. I research about performance issues

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.