Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Add Drop Down Menu  RSS feed

 
Ben Smithson
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey,

Can anyone please advise me on what the code is to add a Drop Down Menu?

Many Thanks.
[ July 16, 2006: Message edited by: Ben Smithson ]
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37180
515
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ben,
Welcome to JavaRanch!

Are you trying to create a drop down menu in Swing (JMenu) or a pull down like on a web page (<select> ?
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ben,

Welcome to JavaRanch!

There are several kinds of menus in Swing: JPopupMenu, for a menu that pops up anywhere; JMenu and JMenuBar, for menus that appear at the top of a frame; and JComboBox, which is a menu-like input box.

This page of Sun's Java Tutorial is all about popup menus and menubar menus. Here is the page about combo boxes.

I'm going to move this thread to our Swing/AWT forum for followup.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!