int loc; setLayout(new GridLayout(2, 2)); loc = m.getLocation(); add(new Label(Messages.getString("CustomMechDialog.switchToRapidFire", new Object[]{entity.getLocationAbbr(loc)})));
int loc = m.getLocation(); String sDesc = Messages.getString("CustomMechDialog.switchToRapidFire", new Object[]{entity.getLocationAbbr(loc)}); Label labRapid = new Label(sDesc); GridBagLayout g = new GridBagLayout(); setLayout(g); GridBagConstraints c = new GridBagConstraints(); c.gridx = 0; c.gridy = 0; c.anchor = GridBagConstraints.EAST; g.setConstraints(labRapid, c); add(labRapid); c.gridx = 1; c.gridy = 0; c.anchor = GridBagConstraints.WEST; g.setConstraints(chRapid, c);
        public RapidfireMGPanel(Mounted m) {            m_mounted = m;            int loc;            setLayout(new GridLayout(2, 2));            loc = m.getLocation();                        add(new Label(Messages.getString("CustomMechDialog.switchToRapidFire", new Object[]{entity.getLocationAbbr(loc)}))); //$NON-NLS-1$            chRapid.setState(m.isRapidfire());            add(chRapid);        }