I am trying to use the theme to put a button on sidebar, which opens options. Which option should i use to add a button, and make a popup menu?
How i want it to be done (button on top right, that should display popup after being clicked):

I'm assuming you mean "top left". You need to use the side menu bar see https://www.codenameone.com/how-do-i-create-gorgeous-sidemenu.html