Lumer GUI for help

1.Can anyone tell me how to increase the size of the button:

Button MyButton = myWindow.addChild(new Button(“Start”));

  1. Is there any other way to let BitmapText’s text size get bigge? I tried setSize() but the font will be very blurry.

Do you want the text bigger or the button bigger?

You can use setPreferredSize() to force the button to want to be bigger… it won’t grow the text though.

If you want bigger text without blurriness then you need to generate a bigger font.

Hello, I want the text and button both be bigger.
I tried MyButton.setPreferredSize(2f,2f,0); But there is error when compile it.

The error information is probably important. My guess is that it’s telling you exactly what’s wrong.

method setPreferredSize in class Panel cannot be applied to given types;
required: Vector3f
found: float,float,float
reason: actual and formal argument lists differ in length

How should I change it?

Well, it’s telling you to change:


What is Vector3f? Any example?

1 Like

…you might be starting in the deep end of the pool.


Change: setPreferredSize(a,b,c)

To: setPreferredSize(new Vector3f(a,b,c))


“Lumer”? “There is error when I compile it”?

@normen I know it’s you with an alt account, please stop trolling

1 Like

Hehe, nah - but good to see that @mentions still work, I usually only get PMs from the forum saying “I need this done quickly plz, kthxbye” :chimpanzee_neutral: