Exemplo n.º 1
0
 /** Creates new form PartsStoreDialog */
 public PartsStoreDialog(
     Frame frame, boolean modal, CampaignGUI gui, Campaign campaign, boolean add) {
   super(frame, modal);
   this.frame = frame;
   this.campaignGUI = gui;
   this.campaign = campaign;
   this.addToCampaign = add;
   formatter = new DecimalFormat();
   partsModel = new PartsTableModel(campaign.getPartsStore().getInventory());
   initComponents();
   filterParts();
   setLocationRelativeTo(frame);
   selectedPart = null;
 }