Book Image

ADempiere 3.6 Cookbook

Book Image

ADempiere 3.6 Cookbook

Overview of this book

Table of Contents (16 chapters)
ADempiere 3.6 Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface

Creating a new info window for the desktop version


There are various info windows in ADempiere, which provide the interface to a user to find an entity. Various search fields are added to allow data filtering. This window is very useful when a user has to find out the information about a particular entity. This recipe describes the steps involved in creating a new info window.

How to do it...

  1. 1. Go to the client/src/org/compiere/apps/search folder of your adempiere_360 project and create an InfoMOM class which extends Info class and implements ActionListener interface. Make sure that the title is set to InfoMOM.

  2. 2. Add the following line in the jbInit() method in the APanel.java class:

    private AppsAction aMOMInfo;
    
  3. 3. Add the following code in the createMenu() method in the APanel.java class:

    aMOMInfo =addAction("InfoMOM", mView, KeyStroke.getKeyStroke(KeyEvent.VK_I, Event.ALT_MASK), false);
    
  4. 4. This will add an entry to the View menu.

  5. 5. Clean and build the adempiere_360 project.

  6. 6. Launch the...