This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information

How to resize backgroungimage?

General questions regarding the development with JVx.

How to resize backgroungimage?

Postby wellspinto » Thu Oct 19, 2017 4:42 pm

UIDesktopPanel desktopPanel = new UIDesktopPanel();

UIPanel content = new UIPanel();
UIBorderLayout uiBorderLayout = new UIBorderLayout();
uiBorderLayout.setMargins(2,2,2,2);
content.setLayout(uiBorderLayout);
content.add(desktopPanel, UIBorderLayout.CENTER);

content.setBackgroundImage(UIImage.getImage("mybackgroundimage1024x768.png"),800,600); ????????

reguards,
wellspinto
 
Posts: 10
Joined: Fri Oct 06, 2017 4:59 pm

Re: How to resize backgroungimage?

Postby rzenz » Fri Oct 20, 2017 9:50 am

I do believe that this is already accurately answered in your two other threads:
User avatar
rzenz
 
Posts: 26
Joined: Mon Dec 12, 2016 1:40 pm
Location: Vienna, Austria


Return to Development