The only events for this class are generated by my help
buttons, so this method assumes that every ActionEvent is a
request for help and launches a HelpDialog with the appropriate
message.
Does the calculations for the world without illegal
immigrants, including what the profits of the firm would be, how
many workers of each type would be hired, etc.
This class is a simple extension of JDialog to interrogate the
user for a value for newPL3 (the wage paid to workers hired to
replace the illegal immigrants).
The only constructor takes an array of ProfitCalculators that
are to be evaluated and creates a grid of appropriate size to
display all the results for each ProfitCalculator.
Reimplementing DefaultTableCellRenderer.getTableCellRenderer
by calling the super version, recording whether the cell has
focus, and setting the background color if the cell in question is
an output cell.
Calculated number of work hours per month for FTE
\param HOURS_PER_YEAR number of work hours per year
\param MONTHS_PER_YEAR number of work months per year
Calculated number of work hours per year for FTE
\param HOURS_PER_WEEK number of work hours in a week
\param WEEKS_PER_YEAR number of work weeks in a year
KFixed calculates the optimum allocation of resources for a firm
that can no longer hire illegal immigrants and has the additional
constraint of fixed capital costs.
KFixed() -
Constructor for class rand.asset_forfeiture.KFixed
KVariable calculates the optimum allocation of resources if the
firm can no longer hire illegal immigrants, but capital and raw
material costs are completely flexible.
Reimplementation of super.paintComponent by setting the
background color to the selectionBackground if the cell has focus
and is non-empty then calling super.paintComponent.
We need an enhancement to the DefaultTableModel in order to
properly render combo boxes in individual cells as well as prevent
the user from editing the output cells.