can't make the Jlayer change position with the scrollpane - jlayer

I'm having a jlayer decorationg a panel that is added on a jscrollpane. When i scroll down, the panel components gets scrolled in the right way but i can't make my jlayer move with it.
Any ideas on how to do so?
jlayer = new JLayer<JComponent>(scrollPane, ui);
pane.add(jlayer);
thank you in advance

I found a solution for that by adding the jlayer on a new JScrollPane:
jlayer = new JLayer<JComponent>(scrollPane, ui);
JScrollPane scroll=new JScrollPane(jlayer);
pane.add(scroll);

Related

Set overlay for a background page in javafx

I need to set the background overlay to grey as shown in the image below when a popup is displayed. I have set the background page as the owner page to the popup. So other times when the popup is not displaying it has be normal. I was not able to achieve this. Please someone guide me.
A bit late... but you can try and use ColorAdjust in JavaFX:
ColorAdjust dim = new ColorAdjust();
dim.setBrightness(-0.4);
stage.getScene().getRoot().setEffect(dim);
Set it on the stage you desire and it should work.

Prevent UITabBar to hide when pushed

First let me tell about my app scenario. UINavigationController{relationship}UIViewControllerMain{push}UITabController{push}UIViewControllerOne. Here problem is tab bar hides in UIViewControllerOne. How can i make it visible?
self.tabBarController.tabBar.hidden = NO;

Draggable skinablePopupContainer

I have create a skinablePopupContainer with titlewindow inside as shown in tutorial below
but I am stuck at how to make it draggable , so that it can moved around the screen by clicking on titlebar of titlewindow which is inside the popupcontainer
http://www.adobe.com/devnet/flex/articles/flex-mobile-development-tips-tricks-pt4.html
Can you please suggest a way out?
Thanks
Check out ObjectHandles by Rogue-Development.com and the Pantaste Library.

Animated component adding-delete in a VBox

Is there a way to make the elements of a VBox smoothly move to their new positions when a new element is inserted or removed?
I actually need only to make them move smoothly when I remove an element. Thank you for your answers!
Not without extending VBox and adding your own code to do so by overriding the addChild and removeChild functions.

Hbox horizontalScrollPosition not working

I am applying hb.horizontalScrollPosition = value and it does not work with horizonalScrollPolicy = on/off. Is there any other way to achieve this?
Thanks.
When exactly are you setting the scroll position relative to loading the content? Perhaps the content isn't measured yet. Try using callLater to wait a frame before setting the scroll position.

Resources