use of net.parostroj.timetable.gui.components.BnTextAreaGrey in project grafikon by jub77.
the class EditInfoDialog method createRoutePanel.
private JPanel createRoutePanel(Font font) {
JPanel routePanel = new JPanel();
GridBagLayout gbl_routePanel = new GridBagLayout();
routePanel.setLayout(gbl_routePanel);
JLabel label = new JLabel(ResourceLoader.getString("info.route.number"));
GridBagConstraints gbc_label = new GridBagConstraints();
gbc_label.anchor = GridBagConstraints.NORTHWEST;
gbc_label.insets = new Insets(0, 5, 0, 5);
gbc_label.gridx = 0;
gbc_label.gridy = 0;
routePanel.add(label, gbc_label);
BnTextAreaGrey routeNumberTextArea = new BnTextAreaGrey();
routeNumberTextArea.setColumns(35);
routeNumberTextArea.setRows(3);
javax.swing.JScrollPane scrollPane1 = new javax.swing.JScrollPane();
GridBagConstraints gbc_scrollPane1 = new GridBagConstraints();
gbc_scrollPane1.anchor = GridBagConstraints.NORTHWEST;
gbc_scrollPane1.insets = new Insets(0, 5, 0, 5);
gbc_scrollPane1.gridx = 0;
gbc_scrollPane1.gridy = 1;
gbc_scrollPane1.weightx = 1.0;
gbc_scrollPane1.fill = GridBagConstraints.HORIZONTAL;
routePanel.add(scrollPane1, gbc_scrollPane1);
scrollPane1.setViewportView(routeNumberTextArea);
routeNumberTextArea.setFont(font);
JLabel label_1 = new JLabel(ResourceLoader.getString("info.routes"));
GridBagConstraints gbc_label_1 = new GridBagConstraints();
gbc_label_1.anchor = GridBagConstraints.NORTHWEST;
gbc_label_1.insets = new Insets(0, 5, 0, 5);
gbc_label_1.gridx = 0;
gbc_label_1.gridy = 2;
routePanel.add(label_1, gbc_label_1);
javax.swing.JScrollPane scrollPane2 = new javax.swing.JScrollPane();
GridBagConstraints gbc_scrollPane2 = new GridBagConstraints();
gbc_scrollPane2.weighty = 1.0;
gbc_scrollPane2.insets = new Insets(0, 5, 5, 5);
gbc_scrollPane2.anchor = GridBagConstraints.NORTHWEST;
gbc_scrollPane2.gridx = 0;
gbc_scrollPane2.gridy = 3;
gbc_scrollPane2.weightx = 1.0;
gbc_scrollPane2.fill = GridBagConstraints.BOTH;
routePanel.add(scrollPane2, gbc_scrollPane2);
BnTextAreaGrey routesTextArea = new BnTextAreaGrey();
routesTextArea.setColumns(35);
routesTextArea.setRows(5);
scrollPane2.setViewportView(routesTextArea);
routesTextArea.setFont(font);
routeNumberTextArea.setModelProvider(provider);
routeNumberTextArea.setPath(new Path("routeNumbers"));
routesTextArea.setModelProvider(provider);
routesTextArea.setPath(new Path("routeNodes"));
return routePanel;
}
Aggregations