Questions tagged [jmenubar]

Java swing implementation of a menu bar. JMenu objects are added to the menu bar to construct a menu.

263 questions
0
votes
3 answers

Java JMenuItem Accelator Snow Leopard

about = new JMenuItem("About"); about.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_A((Toolkit.getDefaultToolkit().getMenuShortcutMask())))); JMenu help = new JMenu("Help"); help.add(about); I was wondering why my aaccelerators were not…
0
votes
2 answers

php menu setting for language settings

I am going to implement the multi-language support for the website using php The default language is chinese I have selected en as british English one. the webpage link is set as www.abc.com/index.php?lang=en When it comes to selecting the other…
Jeff Bootsholz
  • 2,971
  • 15
  • 70
  • 141
0
votes
1 answer

Menubar not added in a java split pane

I have written a small test program which creates a split pane in which one of the pane's is a text area. I have added a meubar and menuitems to the pane but i donot see them in the gui that is created. Could anyone pls point out what the wrong…
Vijay
  • 65,327
  • 90
  • 227
  • 319
0
votes
1 answer

Java - JMenuBar not showing up in JApplet, but it does when run as application

I'm working on a calculator that can run as JApplet and as application. When I run my code as application, the menubar shows up. But when i run it as a JApplet, it does not. Is this a JApplet limitation? Because when i put all code (new JMenuBar,…
0
votes
1 answer

Do JMenuBars not work with setComponentZOrder()?

This is a testing class, and I have two JPanels and a JMenuBar (I have overridden the classes while testing something else, these classes DO work). Unfortunately, when I try to use setComponentZOrder(), the JMenuBar doesnt show up anymore. When the…
juggling_pro
  • 49
  • 1
  • 11
0
votes
1 answer

How to add swing components that are outside of main file?

Example of my problem: I have a main file: public class APP extends JFrame { private Dimension screen = Toolkit.getDefaultToolkit().getScreenSize(); public APP() { setLayout(new BorderLayout()); …
B.K.
  • 9,982
  • 10
  • 73
  • 105
0
votes
0 answers

JPanel inside JFrame and Menu not losing focus

I have a JFrame with a JMenuBar, inside the JFrame there is a JPanel (the panel occupies all the space but the menu bar). The thing is that when I have the mouse over some MenuItem and move the mouse to the JPanel and do click, the menu should…
EricJ
  • 131
  • 3
  • 13
0
votes
2 answers

Empty JMenuItems in JMenuBar on JFrame

I have a problem creating a JFrame with a JMenuBar. I have a MenuBarBuilder class here: public class MenuBuilder extends JMenuBar { private Model model; public MenuBuilder(Model model) { this.model = model; buildMenuBar(); } …
marc3l
  • 2,525
  • 7
  • 34
  • 62
0
votes
1 answer

How to call a Jmenu screen after successfulley login in java swing

Please see the below codem I am trying to call a Jmenu class after successful log in Login : public class Login { Connection con; Statement st; ResultSet rs; JFrame f = new JFrame ("User Login"); JLabel l = new JLabel…
0
votes
1 answer

JMenuBar not showing up

I'm not sure why my JMenuBar isn't showing up.The other 2 panels that I add show up just fine.I'm not sure if it has something to do with borderLayout being picky or what. I'm sure(hope) it is something small. I'm just learning how to create GUIs so…
APerry
  • 3
  • 1
  • 3
0
votes
2 answers

Java Menu Bar does not appear

Hey guys i am trying to make a menu bar to my JFrame from other class, but it siply denies to work ! I am on a deadend... I really do not know what is going wrong, i tried some other ways, but it didnt worked... The code is this : public…
Manos
  • 1,471
  • 1
  • 28
  • 45
0
votes
1 answer

Java Swings JMenuBar is not visible in windows 8

One of my application which is working fine since a long time, recently I installed it on Windows 8 and I saw that complete JMenuBar is not visible there anyone have any solution for this. regards Rajeev
Rajeev
  • 91
  • 1
  • 2
  • 8
0
votes
3 answers

iframe - is there a way to display the browser's menu bar, and other items like address bar, in an iframe

I know how to specify "windowFeatures" such as menubar when creating a new window via JavaScript - open(url, windowname, windowfeatures) My question is: is there a comparable feature with an iframe? Can windowproperties be assigned to an…
BobN
  • 177
  • 3
  • 11
0
votes
1 answer

JMenuItem only triggers from keyboard input and not click

I made a simple drawing program in Java using a JFrame (my first time with such). The user and click and drag to draw shapes, but that's not important. I have a JMenuBar with a bunch of options, like type of shape, New, and Quit. When the user…
Alex Kibler
  • 4,674
  • 9
  • 44
  • 74
0
votes
1 answer

Non-librarian Java integration with Ubuntu's Unity

I want my Java app to integrate with the Unity UI in Ubuntu 11+, but I only want to distribute a single JAR and would prefer it to only have my code (it'll likely be in my portfolio). Is there any way I can put the contents of a JMenuBar into the…
Ky -
  • 30,724
  • 51
  • 192
  • 308