Creating Swing Applications
Precautions
Before you begin to build Swing applications, you should have read Defining
data structures. Swing Applications use these data
objects to read and write database tables.
Introduction
To access large amounts of data, we typically need to navigate precisely
through the data, select an entry and then modifying it. For to see what
we are talking about: Get an overview about how the sample application
"Marketing" is created. Browse the screenshots
with links to source and super class Documentation. To test the effect
of the used instruction try to get the sample application "Marketing" in
package mkt, class Main running.
Administrating big entities (Screenshot)
For navigating (enquiry plus selection of an entry) we use de.must.wuic.ColumnDataListFrame
or de.must.wuic.SimpleDataListFrame
- sample see mkt.FrKontaktSl.
For changing, copying or inserting a new entry we use de.must.wuic.DataPropertyAdministration-
sample see mkt.FrKontaktPr.
Important UI components for data input
and more of these components that implement the interface de.must.wuic.DataComponent.
Administrating small entities (Screenshot)
Some entities have view rows and columns. They may be edited in a table
sheet. In this case, use de.must.wuic.DataTableAdministration
as done in mkt.FrGrPj.
To bring the user in touch with your application parts, offer your administrations
as a menu item or / and as toolbar button. Menu frames are subclasses of
de.must.wuic.MenuFrame like
e.g. mkt.MainMenu. You may control
entitlements by grouping subject areas and users. See sample mkt.Entitlement,
which extends de.must.middle.EntitlementStd.
For flexible access control implement isEntitled(), you may use
the current user mkt.CurrentUser
to check matching entitlements. Also, toolbar item definitions are used
in the sample.
© Copyright 2001-2004 Christoph
Müller, Kärntner Str. 56, D-70469 Stuttgart, Germany, http://www.must.de