JMENU TOOLBAR AND POPUP MENU - Java Codes

Menubar with CheckBoxes and Action

Description This code shows Submenus, checkbox menu items, swapping menus,mnemonics (shortcuts) and action commands. Source Code import java.awt.BorderLayout; import java.awt.Container; import java.a ...

0 Comments. 1393 views since Oct 18, 2008

JMenu

Description This is a Code which helps to create a Menu & implements a variety of Actions on it viz. Read-Only, Writable, Copy, Cut, Paste. Source Code import java.awt.BorderLayout; import java.awt.Con ...

0 Comments. 1284 views since Aug 25, 2008

Advanced Toolbar

Description This is another good code sample which can show you how can you make a better Tool Bar for your Desktop Application. Source Code import java.util.logging.Level; import java.util.logg ...

0 Comments. 1257 views since Jul 9, 2008

Menubar

Description This is a simple code to create a menubar in your window Source Code import java.awt.*; import javax.swing.*; import java.awt.event.*; //menu bar and menu items public class AMenu exten ...

0 Comments. 1068 views since Aug 2, 2008

Enhanced JPopupMenu

Description This Code is an Example of JPopUpMenu with certain additional features implemented with it Viz. Slider & CheckBox. Source Code import java.awt.Component; import java.awt.event.ActionEvent; ...

0 Comments. 1028 views since Aug 25, 2008

Internal Frame

Description A quick demonstration of setting up an internal frame in an application Source Code import java.awt.BorderLayout; import java.awt.Frame; import java.awt.Panel; import java.awt.event.Act ...

0 Comments. 1010 views since Nov 17, 2008

ToolBar Frame

Description This is a code which demonstrates Swing-ified button. Source Code import java.awt.BorderLayout; import java.awt.FlowLayout; import java.awt.Frame; import java.awt.event.ActionEvent; impor ...

0 Comments. 1006 views since Sep 4, 2008

JToggleMenu

Description This is a code which implements Toggle Buttons & give us a view of a Toggle Menu. Source Code import java.awt.Color; import java.awt.Component; import java.awt.Event; import java.awt.Po ...

0 Comments. 1004 views since Aug 25, 2008

Menubar and Toolbar

Description This code sample shows how can you make a better Menu and Tool Bar for your Desktop Application. Source Code import java.awt.BorderLayout; import java.awt.Dimension; import java.awt ...

0 Comments. 960 views since Jul 9, 2008

Salutation

Description A simple program which shows the use of JFrame and Swing. Source Code import javax.swing.*; import java.awt.event.*; public class Salutation extends JFrame { public static void ma ...

0 Comments. 904 views since Feb 21, 2009

JPopup Menu

Description This is a Code which helps us to use a Popup Menu. Source Code import javax.swing.*; import java.awt.event.*; import java.awt.*; public class PopUpMenu_Test extends JFrame { private JRa ...

0 Comments. 869 views since Aug 19, 2008

Accelerators & Mnemonics

Description This is a Code which gives an introduction to building menus and menu items with Accelerators and Mnemonics being added to various items. Source Code import java.awt.Toolkit; import java.a ...

0 Comments. 845 views since Aug 25, 2008

JToolBar

Description This is a Code which tells us how can we use JToolBar adding buttons and text field to toolbar. Source Code import javax.swing.*; import java.awt.*; import java.awt.event.*; public class Too ...

0 Comments. 830 views since Aug 19, 2008

Import Image

Description This example create a menubar and toolbar and with image import option. Source Code import java.awt.BorderLayout; import java.awt.event.ActionEvent; import javax.swing.AbstractAction; ...

0 Comments. 804 views since Oct 17, 2008

Create Menu Program

Description this program will reprsent a menu object with pictorial format Source Code import java.awt.*; class Frame1 extends Frame { Menu m,sub,sub1,item1; MenuBar bar; MenuItem item1,item2,i ...

0 Comments. 779 views since Jun 24, 2011

Frame with Multiple Popup Options

Description This code shows how to create frames with multiple popup actions Source Code import java.awt.BorderLayout; import java.awt.Color; import java.awt.Component; import java.awt.Container; ...

0 Comments. 758 views since Nov 17, 2008