Problem mit JTabbed Pane nur blauer Hintergrung

BJRecord

Grünschnabel
Hallo

ich bin neu im Forum und mache meine ersten Schritte in Java. Mein Problem ist folgendes ich habe auf eine JTabbed Pane zwei Reiter und möchte auf jedem Reiter verschiedene Eingaben machen. Mein Programm ist mit Eclipe erstellt. Jetzt habe ich das Problem daß die JTabbed Pane zwar mit Reiter angezeigt wird, aber die Eingabefelder und die Buttons die ich auf den JPane des Reites paziert habe nicht angezeigt werden bzw. ich bekomme nur einen blauen Hintergrung Was mache ich falsch

gruß
BJ



package PakJST;

import java.awt.BorderLayout;

import javax.swing.JButton;
import javax.swing.JPanel;
import javax.swing.JFrame;
import javax.swing.JTable;
import javax.swing.JTextField;

import java.awt.Dimension;
import javax.swing.JTabbedPane;

import java.awt.GridLayout;
import java.awt.Rectangle;
import java.awt.FlowLayout;
import java.awt.CardLayout;
import java.awt.GridBagLayout;
import java.awt.GridBagConstraints;
import javax.swing.JTextArea;
import javax.swing.JLabel;

public class OrgDatenVerwalten extends JFrame {

private static final long serialVersionUID = 1L;

private JPanel jContentPane = null;

private JTabbedPane BJjTabbedPane = null;

private JTextField NeujTextFieldGruppe = null;

private JTextField NeujTextFieldName = null;

private JPanel NeujPanel = null; // @jve:decl-index=0:visual-constraint="39,328"

private JButton ffjButton = null;

private JPanel BJjPanelAen = null; // @jve:decl-index=0:visual-constraint="39,330"

private JButton AenjButton = null;

private JTextField AenjTextFieldGruppe = null;

private JTextField aebjTextFieldName = null;

private JTextArea NeujTextArea = null;

private JLabel NeujLabelName = null;

private JLabel NeujLabelGruppe = null;

private JLabel NeujLabelBe = null;

/**
* This is the default constructor
*/
public OrgDatenVerwalten() {
super();
initialize();
}

/**
* This method initializes this
*
* @return void
*/
private void initialize() {
this.setSize(746, 311);
this.setContentPane(getJContentPane());
this.setTitle("Daten verwalten");
this.BJjTabbedPane.setVisible(true);
this.BJjTabbedPane.setEnabled(true);

}

/**
* This method initializes jContentPane
*
* @return javax.swing.JPanel
*/
private JPanel getJContentPane() {
if (jContentPane == null) {
jContentPane = new JPanel();
jContentPane.setLayout(null);
jContentPane.add(getBJjTabbedPane(), null);
}
return jContentPane;
}

/**
* This method initializes BJjTabbedPane
*
* @return javax.swing.JTabbedPane
*/
private JTabbedPane getBJjTabbedPane() {
if (BJjTabbedPane == null) {
BJjTabbedPane = new JTabbedPane();
BJjTabbedPane.setBounds(new Rectangle(23, 21, 690, 228));
BJjTabbedPane.addTab("Neu", NeujPanel);
BJjTabbedPane.addTab("Ändern", BJjPanelAen);
}
return BJjTabbedPane;
}

/**
* This method initializes NeujTextFieldGruppe
*
* @return javax.swing.JTextField
*/
private JTextField getNeujTextFieldGruppe() {
if (NeujTextFieldGruppe == null) {
NeujTextFieldGruppe = new JTextField();
NeujTextFieldGruppe.setBounds(new Rectangle(170, 22, 130, 20));
}
return NeujTextFieldGruppe;
}

/**
* This method initializes NeujTextFieldName
*
* @return javax.swing.JTextField
*/
private JTextField getNeujTextFieldName() {
if (NeujTextFieldName == null) {
NeujTextFieldName = new JTextField();
NeujTextFieldName.setBounds(new Rectangle(170, 52, 130, 20));
}
return NeujTextFieldName;
}

/**
* This method initializes NeujPanel
*
* @return javax.swing.JPanel
*/
private JPanel getNeujPanel() {
if (NeujPanel == null) {
NeujPanel = new JPanel();
NeujPanel.setLayout(null);
NeujPanel.setSize(new Dimension(677, 202));
NeujLabelBe = new JLabel();
NeujLabelBe.setBounds(new Rectangle(35, 85, 124, 20));
NeujLabelBe.setText("Beschreibung");
NeujLabelGruppe = new JLabel();
NeujLabelGruppe.setBounds(new Rectangle(33, 22, 113, 20));
NeujLabelGruppe.setText("Gruppe");
NeujLabelName = new JLabel();
NeujLabelName.setBounds(new Rectangle(33, 52, 120, 20));
NeujLabelName.setText("Name");

NeujPanel.add(getNeujTextFieldName());
NeujPanel.add(getFfjButton());
NeujPanel.add(getNeujTextFieldGruppe());
NeujPanel.add(getNeujTextArea());
NeujPanel.add(NeujLabelName);
NeujPanel.add(NeujLabelGruppe);
NeujPanel.add(NeujLabelBe);
}
return NeujPanel;
}

/**
* This method initializes ffjButton
*
* @return javax.swing.JButton
*/
private JButton getFfjButton() {
if (ffjButton == null) {
ffjButton = new JButton("Neu Anlegen");
ffjButton.setBounds(new Rectangle(500, 156, 142, 31));
}
return ffjButton;
}

/**
* This method initializes BJjPanelAen
*
* @return javax.swing.JPanel
*/
private JPanel getBJjPanelAen() {
if (BJjPanelAen == null) {
BJjPanelAen = new JPanel();
BJjPanelAen.setLayout(null);
BJjPanelAen.setSize(new Dimension(677, 202));
BJjPanelAen.add(getAenjButton(), null);
BJjPanelAen.add(getAenjTextFieldGruppe(), null);
BJjPanelAen.add(getAebjTextFieldName(), null);
}
return BJjPanelAen;
}

/**
* This method initializes AenjButton
*
* @return javax.swing.JButton
*/
private JButton getAenjButton() {
if (AenjButton == null) {
AenjButton = new JButton("Ändern");
AenjButton.setBounds(new Rectangle(57, 149, 141, 28));
}
return AenjButton;
}

/**
* This method initializes AenjTextFieldGruppe
*
* @return javax.swing.JTextField
*/
private JTextField getAenjTextFieldGruppe() {
if (AenjTextFieldGruppe == null) {
AenjTextFieldGruppe = new JTextField();
AenjTextFieldGruppe.setBounds(new Rectangle(135, 44, 180, 15));
}
return AenjTextFieldGruppe;
}

/**
* This method initializes aebjTextFieldName
*
* @return javax.swing.JTextField
*/
private JTextField getAebjTextFieldName() {
if (aebjTextFieldName == null) {
aebjTextFieldName = new JTextField();
aebjTextFieldName.setBounds(new Rectangle(135, 65, 137, 16));
}
return aebjTextFieldName;
}

/**
* This method initializes NeujTextArea
*
* @return javax.swing.JTextArea
*/
private JTextArea getNeujTextArea() {
if (NeujTextArea == null) {
NeujTextArea = new JTextArea();
NeujTextArea.setBounds(new Rectangle(170, 83, 474, 62));
}
return NeujTextArea;
}



} // @jve:decl-index=0:visual-constraint="10,10"
 
Zurück