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. Go to the
client/src/org/compiere/apps/search
folder of youradempiere_360
project and create anInfoMOM
class which extendsInfo
class and implementsActionListener
interface. Make sure that the title is set toInfoMOM
.2. Add the following line in the
jbInit()
method in theAPanel.java
class:private AppsAction aMOMInfo;
3. Add the following code in the
createMenu()
method in theAPanel.java
class:aMOMInfo =addAction("InfoMOM", mView, KeyStroke.getKeyStroke(KeyEvent.VK_I, Event.ALT_MASK), false);
4. This will add an entry to the View menu.
5. Clean and build the
adempiere_360
project.6. Launch the...