Win a copy of TensorFlow 2.0 in Action this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

Problem 2 window display

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,

I have 2 window (choice) of 1 contains a JList (filled with: animals, cars, houses, ....) I wish I click on an item to display the 2nd window (display) containing the images of items.

For example if I clicked on item car must show all images of cars, and if I clicked on item animal show all images of animals.
the problem is: if I clicked on the item should display the car 2nd window (Display) contains images of cars and if I clicked on the 2 nd time window (display) another car window appears I am worth only display a single window contains images of cars.



Thank you
 
Bartender
Posts: 5167
11
Netbeans IDE Opera Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See the last response in each of these two earlier threads of yours (to which you never did reply)
https://coderanch.com/t/497686/GUI/java/add-panel-other-panel
https://coderanch.com/t/495546/GUI/java/JFileChooser-jar

The same applies here.
 
It's a tiny ad. At least, that's what she said.
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic