خرید بک لینک

Vote count: 0

My title is badly worded because my problem is very hard to describe, so I drew an image for it:

enter image description here

I have an ImageView object which represents a pile of cards (not poker cards but just used them as an example). When this image view is clicked, I need a window to popup that features a ScrollPane and shows them all the card objects that are in the linked list. When the user clicks anywhere outside of the window (and later on, any right mouse button click) to close this informative window.

Ways that I have already tried:

  • Scene with APPLICATION_MODAL. Then did Scene.showAndWait(). I didn't like this method because it made another application on the user's taskbar. It also felt clunky and just bad.

  • Changed my root pane to a StackPane, then added this Scrollpane to the stackpane when the user clicked on the deck. This for some reason was really slow and seemed really obtrusive. It was also aoying because my alteate class needed to have access to the root pane (since when it closes, it needs to go to the root StackPane and call .remove() on itself).

Are there any other better ways to accomplish this? My application is going to have many of these piles and so this framework needs to work very well.

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: دوشنبه 24 خرداد 1395 ساعت: 14:02

صفحه بندی