/** * Creates the "Translation" input tabbed page * * @param tabbedPane the tabbed pane to add the ranslation tab to. */ private void getTranslationInput(JTabbedPane tabbedPane) { JPanel translationInput = new JPanel(new GridBagLayout()); GridBagConstraints gbc = new GridBagConstraints(); gbc.gridwidth = REMAINDER; gbc.fill = BOTH; gbc.anchor = NORTHWEST; gbc.weighty = 1.0; chainwheelTranslationInput.addContentChangeListener(this); translationInput.add(chainwheelTranslationInput, gbc); sprocketTranslationInput.addContentChangeListener(this); translationInput.add(sprocketTranslationInput, gbc); generalTranslationInput.addContentChangeListener(this); translationInput.add(generalTranslationInput, gbc); driveTrainDrawing.addContentChangeListener(this); driveTrainDrawing.addContentChangeListener(zoomInput); driveTrainOutput.addContentChangeListener(this); tabbedPane.addTab( Messages.getString("TransmissionDetails"), null, translationInput, Messages.getString("TransmissionDetailsTip")); }