Example usage for java.awt FlowLayout LEFT

List of usage examples for java.awt FlowLayout LEFT

Introduction

In this page you can find the example usage for java.awt FlowLayout LEFT.

Prototype

int LEFT

To view the source code for java.awt FlowLayout LEFT.

Click Source Link

Document

This value indicates that each row of components should be left-justified.

Usage

From source file:org.rdv.datapanel.AbstractDataPanel.java

protected JComponent getChannelComponent() {
    if (channels.size() == 0) {
        return null;
    }//ww  w . j av  a 2 s .c  o  m

    JPanel channelBar = new JPanel();
    channelBar.setOpaque(false);
    channelBar.setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0));

    Iterator<String> i = channels.iterator();
    while (i.hasNext()) {
        String channelName = i.next();

        if (showChannelsInTitle) {
            channelBar.add(new ChannelTitle(channelName));
        }
    }

    return channelBar;
}

From source file:org.openmicroscopy.shoola.agents.fsimporter.view.ImporterUIElement.java

/** 
 * Builds a row.//from ww w.ja v  a  2 s.c  om
 * 
 * @return See above.
 */
private JPanel createRow() {
    JPanel p = new JPanel();
    p.setLayout(new FlowLayout(FlowLayout.LEFT));
    p.setBackground(UIUtilities.BACKGROUND_COLOR);
    return p;
}

From source file:lol.search.RankedStatsPage.java

private JPanel statsPanel() {
    JPanel panel = new JPanel();
    panel.setBorder(BorderFactory.createLineBorder(Color.DARK_GRAY));
    panel.setOpaque(false);//from   w w  w  .  jav  a2 s  .c  o  m
    panel.setLayout(new FlowLayout());
    panel.setPreferredSize(new Dimension(910, 464));
    JPanel statsPanelTotals = new JPanel();
    statsPanelTotals.setLayout(new BoxLayout(statsPanelTotals, BoxLayout.X_AXIS));
    statsPanelTotals.setOpaque(false);
    //statsPanelTotals.setBorder(BorderFactory.createLineBorder(Color.DARK_GRAY));
    //totals
    statsPanelTotals.setPreferredSize(new Dimension(910, 45));
    totalJLabel(winsLabel, "   W: ", Color.WHITE);
    winsLabel.setAlignmentX(Component.LEFT_ALIGNMENT);
    totalJLabel(totalWins, "" + this.wins, valueOrange);
    totalJLabel(lossesLabel, "   L: ", Color.WHITE);
    totalJLabel(totalLosses, "" + this.losses, valueOrange);
    totalJLabel(winPercentLabel, "   Win Ratio: ", Color.WHITE);
    totalJLabel(winPercent, winPercentage + "%", valueOrange);
    totalJLabel(totalGames, "   Total Games Played: ", Color.WHITE);
    totalJLabel(this.totalGamesPlayed, String.valueOf(totalGamesInt), valueOrange);
    statsPanelTotals.add(winsLabel);
    statsPanelTotals.add(totalWins);
    statsPanelTotals.add(lossesLabel);
    statsPanelTotals.add(totalLosses);
    statsPanelTotals.add(winPercentLabel);
    statsPanelTotals.add(winPercent);
    statsPanelTotals.add(totalGames);
    statsPanelTotals.add(totalGamesPlayed);
    JPanel totalsAndAverages = new JPanel();
    totalsAndAverages.setOpaque(false);
    totalsAndAverages.setBorder(BorderFactory.createLineBorder(Color.DARK_GRAY));
    totalsAndAverages.setPreferredSize(new Dimension(910, 405));
    totalsAndAverages.setLayout(new GridLayout());
    JPanel leftSide = new JPanel();
    leftSide.setOpaque(false);
    leftSide.setBorder(BorderFactory.createLineBorder(Color.DARK_GRAY));
    JPanel leftSideHeader = new JPanel();
    leftSideHeader.setOpaque(false);
    leftSideHeader.setLayout(new FlowLayout());
    leftSideHeader.setPreferredSize(new Dimension(455, 35));
    //leftSideHeader.setBorder(BorderFactory.createLineBorder(Color.CYAN));
    totalJLabel(this.leftSideHeaderLabel, "   Per Game Averages:", Color.WHITE);
    leftSideHeader.add(this.leftSideHeaderLabel);
    JPanel leftSideBody = new JPanel();
    leftSideBody.setOpaque(false);
    leftSideBody.setLayout(new FlowLayout(FlowLayout.LEFT));
    leftSideBody.setPreferredSize(new Dimension(250, 360));
    //leftSideBody.setBorder(BorderFactory.createLineBorder(Color.RED));
    JPanel avgKillsPanel = new JPanel();
    avgKillsPanel.setOpaque(false);
    //avgKillsPanel.setBorder(BorderFactory.createLineBorder(Color.CYAN));
    JPanel avgDeathsPanel = new JPanel();
    avgDeathsPanel.setOpaque(false);
    JPanel avgAssistsPanel = new JPanel();
    avgAssistsPanel.setOpaque(false);
    JPanel avgMinionsPanel = new JPanel();
    avgMinionsPanel.setOpaque(false);
    JPanel avgDoubleKillsPanel = new JPanel();
    avgDoubleKillsPanel.setOpaque(false);
    JPanel avgTripleKillsPanel = new JPanel();
    avgTripleKillsPanel.setOpaque(false);
    JPanel avgQuadKillsPanel = new JPanel();
    avgQuadKillsPanel.setOpaque(false);
    JPanel avgPentaKillsPanel = new JPanel();
    avgPentaKillsPanel.setOpaque(false);
    totalJLabel(this.avgKillsLabel, "   Avg. Kills: ", Color.WHITE);
    totalJLabel(this.avgDeathsLabel, "   Avg. Deaths: ", Color.WHITE);
    totalJLabel(this.avgAssistsLabel, "   Avg. Assists: ", Color.WHITE);
    totalJLabel(this.avgMinionKillsLabel, "   Avg. Minion Kills: ", Color.WHITE);
    totalJLabel(this.avgDoubleKillsLabel, "   Avg. Double Kills: ", Color.WHITE);
    totalJLabel(this.avgTripleKillsLabel, "   Avg. Triple Kills: ", Color.WHITE);
    totalJLabel(this.avgQuadKillsLabel, "   Avg. Quadra Kills: ", Color.WHITE);
    totalJLabel(this.avgPentaKillsLabel, "   Avg. Penta Kills: ", Color.WHITE);
    double totalKills = 00000;
    double totalDeaths = 00000;
    double totalAssists = 00000;
    double totalMinions = 00000;
    double totalDoubleKills = 00000;
    double totalTripleKills = 00000;
    double totalQuadraKills = 00000;
    double totalPentaKills = 00000;
    double avgKills = 99999;
    double avgAssists = 99999;
    double avgDeaths = 99999;
    double avgMinions = 99999;
    double avgDoubleKills = 99999;
    double avgTripleKills = 99999;
    double avgQuadraKills = 99999;
    double avgPentaKills = 99999;
    try {
        double totalGamesPlayed = this.objChampRankedList.get(0).getJSONObject("stats")
                .getInt("totalSessionsPlayed");
        //operations
        totalKills = this.objChampRankedList.get(0).getJSONObject("stats").getInt("totalChampionKills");
        avgKills = totalKills / totalGamesPlayed;
        totalDeaths = this.objChampRankedList.get(0).getJSONObject("stats").getInt("totalDeathsPerSession");
        avgDeaths = totalDeaths / totalGamesPlayed;
        totalAssists = this.objChampRankedList.get(0).getJSONObject("stats").getInt("totalAssists");
        avgAssists = totalAssists / totalGamesPlayed;
        totalMinions = this.objChampRankedList.get(0).getJSONObject("stats").getInt("totalMinionKills");
        avgMinions = totalMinions / totalGamesPlayed;
        totalDoubleKills = this.objChampRankedList.get(0).getJSONObject("stats").getInt("totalDoubleKills");
        avgDoubleKills = totalDoubleKills / totalGamesPlayed;
        totalTripleKills = this.objChampRankedList.get(0).getJSONObject("stats").getInt("totalTripleKills");
        avgTripleKills = totalTripleKills / totalGamesPlayed;
        totalQuadraKills = this.objChampRankedList.get(0).getJSONObject("stats").getInt("totalQuadraKills");
        avgQuadraKills = totalQuadraKills / totalGamesPlayed;
        totalPentaKills = this.objChampRankedList.get(0).getJSONObject("stats").getInt("totalPentaKills");
        avgPentaKills = totalPentaKills / totalGamesPlayed;
    } catch (JSONException ex) {
        Logger.getLogger(RankedStatsPage.class.getName()).log(Level.SEVERE, null, ex);
    }
    String avgKillsString = new DecimalFormat("##.##").format(avgKills);
    String avgDeathsString = new DecimalFormat("##.##").format(avgDeaths);
    String avgAssistsString = new DecimalFormat("##.##").format(avgAssists);
    String avgMinionsString = new DecimalFormat("##.##").format(avgMinions);
    String avgDoubleKillsString = new DecimalFormat("##.##").format(avgDoubleKills);
    String avgTripleKillsString = new DecimalFormat("##.##").format(avgTripleKills);
    String avgQuadraKillsString = new DecimalFormat("##.##").format(avgQuadraKills);
    String avgPentaKillsString = new DecimalFormat("##.##").format(avgPentaKills);
    totalJLabel(this.avgKillsLabelValue, avgKillsString, valueOrange);
    totalJLabel(this.avgDeathsLabelValue, avgDeathsString, valueOrange);
    totalJLabel(this.avgAssistsLabelValue, avgAssistsString, valueOrange);
    totalJLabel(this.avgMinionKillsLabelValue, avgMinionsString, valueOrange);
    totalJLabel(this.avgDoubleKillsLabelValue, avgDoubleKillsString, valueOrange);
    totalJLabel(this.avgTripleKillsLabelValue, avgTripleKillsString, valueOrange);
    totalJLabel(this.avgQuadKillsLabelValue, avgQuadraKillsString, valueOrange);
    totalJLabel(this.avgPentaKillsLabelValue, avgPentaKillsString, valueOrange);
    avgKillsPanel.add(avgKillsLabel);
    avgKillsPanel.add(avgKillsLabelValue);
    avgDeathsPanel.add(avgDeathsLabel);
    avgDeathsPanel.add(avgDeathsLabelValue);
    avgAssistsPanel.add(avgAssistsLabel);
    avgAssistsPanel.add(avgAssistsLabelValue);
    avgMinionsPanel.add(avgMinionKillsLabel);
    avgMinionsPanel.add(avgMinionKillsLabelValue);
    avgDoubleKillsPanel.add(avgDoubleKillsLabel);
    avgDoubleKillsPanel.add(avgDoubleKillsLabelValue);
    avgTripleKillsPanel.add(avgTripleKillsLabel);
    avgTripleKillsPanel.add(avgTripleKillsLabelValue);
    avgQuadKillsPanel.add(avgQuadKillsLabel);
    avgQuadKillsPanel.add(avgQuadKillsLabelValue);
    avgPentaKillsPanel.add(avgPentaKillsLabel);
    avgPentaKillsPanel.add(avgPentaKillsLabelValue);
    leftSideBody.add(avgKillsPanel);
    leftSideBody.add(avgDeathsPanel);
    leftSideBody.add(avgAssistsPanel);
    leftSideBody.add(avgMinionsPanel);
    leftSideBody.add(avgDoubleKillsPanel);
    leftSideBody.add(avgTripleKillsPanel);
    leftSideBody.add(avgQuadKillsPanel);
    leftSideBody.add(avgPentaKillsPanel);
    leftSide.add(leftSideHeader);
    leftSide.add(leftSideBody);
    JPanel rightSide = new JPanel();
    /**/
    rightSide.setOpaque(false);
    rightSide.setBorder(BorderFactory.createLineBorder(Color.DARK_GRAY));
    JPanel rightSideHeader = new JPanel();
    rightSideHeader.setOpaque(false);
    rightSideHeader.setLayout(new FlowLayout());
    rightSideHeader.setPreferredSize(new Dimension(455, 35));
    //rightSideHeader.setBorder(BorderFactory.createLineBorder(Color.MAGENTA));
    totalJLabel(this.rightSideHeaderLabel, "   Season Totals:", Color.WHITE);
    rightSideHeader.add(this.rightSideHeaderLabel);
    JPanel rightSideBody = new JPanel();
    rightSideBody.setOpaque(false);
    rightSideBody.setLayout(new FlowLayout(FlowLayout.LEFT));
    rightSideBody.setPreferredSize(new Dimension(270, 360));
    //rightSideBody.setBorder(BorderFactory.createLineBorder(Color.MAGENTA));
    JPanel totalKillsPanel = new JPanel();
    totalKillsPanel.setOpaque(false);
    JPanel totalDeathsPanel = new JPanel();
    totalDeathsPanel.setOpaque(false);
    JPanel totalAssistsPanel = new JPanel();
    totalAssistsPanel.setOpaque(false);
    JPanel totalMinionsPanel = new JPanel();
    totalMinionsPanel.setOpaque(false);
    JPanel totalDoubleKillsPanel = new JPanel();
    totalDoubleKillsPanel.setOpaque(false);
    JPanel totalTripleKillsPanel = new JPanel();
    totalTripleKillsPanel.setOpaque(false);
    JPanel totalQuadKillsPanel = new JPanel();
    totalQuadKillsPanel.setOpaque(false);
    JPanel totalPentaKillsPanel = new JPanel();
    totalPentaKillsPanel.setOpaque(false);
    totalJLabel(this.totalKillsLabel, "   Total Kills: ", Color.WHITE);
    totalJLabel(this.totalKillsLabelValue, new DecimalFormat("#######").format(totalKills), valueOrange);
    totalJLabel(this.totalDeathsLabel, "   Total Deaths: ", Color.WHITE);
    totalJLabel(this.totalDeathsLabelValue, new DecimalFormat("#######").format(totalDeaths), valueOrange);
    totalJLabel(this.totalAssistsLabel, "   Total Assists: ", Color.WHITE);
    totalJLabel(this.totalAssistsLabelValue, new DecimalFormat("#######").format(totalAssists), valueOrange);
    totalJLabel(this.totalMinionsLabel, "   Total Minion Kills: ", Color.WHITE);
    totalJLabel(this.totalMinionsLabelValue, new DecimalFormat("#######").format(totalMinions), valueOrange);
    totalJLabel(this.totalDoubleKillsLabel, "   Total Double Kills: ", Color.WHITE);
    totalJLabel(this.totalDoubleKillsLabelValue, new DecimalFormat("#######").format(totalDoubleKills),
            valueOrange);
    totalJLabel(this.totalTripleKillsLabel, "   Total Triple Kills: ", Color.WHITE);
    totalJLabel(this.totalTripleKillsLabelValue, new DecimalFormat("#######").format(totalTripleKills),
            valueOrange);
    totalJLabel(this.totalQuadKillsLabel, "   Total Quadra Kills: ", Color.WHITE);
    totalJLabel(this.totalQuadKillsLabelValue, new DecimalFormat("#######").format(totalQuadraKills),
            valueOrange);
    totalJLabel(this.totalPentaKillsLabel, "   Total Penta Kills: ", Color.WHITE);
    totalJLabel(this.totalPentaKillsLabelValue, new DecimalFormat("#######").format(totalPentaKills),
            valueOrange);
    totalKillsPanel.add(totalKillsLabel);
    totalKillsPanel.add(totalKillsLabelValue);
    totalDeathsPanel.add(totalDeathsLabel);
    totalDeathsPanel.add(totalDeathsLabelValue);
    totalAssistsPanel.add(totalAssistsLabel);
    totalAssistsPanel.add(totalAssistsLabelValue);
    totalMinionsPanel.add(totalMinionsLabel);
    totalMinionsPanel.add(totalMinionsLabelValue);
    totalDoubleKillsPanel.add(totalDoubleKillsLabel);
    totalDoubleKillsPanel.add(totalDoubleKillsLabelValue);
    totalTripleKillsPanel.add(totalTripleKillsLabel);
    totalTripleKillsPanel.add(totalTripleKillsLabelValue);
    totalQuadKillsPanel.add(totalQuadKillsLabel);
    totalQuadKillsPanel.add(totalQuadKillsLabelValue);
    totalPentaKillsPanel.add(totalPentaKillsLabel);
    totalPentaKillsPanel.add(totalPentaKillsLabelValue);
    rightSideBody.add(totalKillsPanel);
    rightSideBody.add(totalDeathsPanel);
    rightSideBody.add(totalAssistsPanel);
    rightSideBody.add(totalMinionsPanel);
    rightSideBody.add(totalDoubleKillsPanel);
    rightSideBody.add(totalTripleKillsPanel);
    rightSideBody.add(totalQuadKillsPanel);
    rightSideBody.add(totalPentaKillsPanel);
    //rightSideBody.setBorder(BorderFactory.createLineBorder(Color.RED));
    rightSide.add(rightSideHeader);
    rightSide.add(rightSideBody);
    totalsAndAverages.add(rightSide);
    totalsAndAverages.add(leftSide);
    panel.add(statsPanelTotals);
    panel.add(totalsAndAverages);
    return panel;
}

From source file:org.openmicroscopy.shoola.agents.fsimporter.chooser.ImportDialog.java

/**
 * Builds and lays out a tag./*ww w  .ja v a2 s . co  m*/
 * 
 * @param tag
 *            The tag to display.
 * @param icon
 *            The icon used to remove the tag from the display.
 * @return See above.
 */
private JPanel buildTagEntryPanel(TagAnnotationData tag, Icon icon) {
    JButton tagButton = new JButton(icon);
    UIUtilities.unifiedButtonLookAndFeel(tagButton);
    tagButton.addActionListener(tagSelectionListener);
    tagsMap.put(tagButton, tag);
    JPanel tagPanel = new JPanel();
    JLabel tagLabel = new JLabel(tag.getTagValue());
    tagPanel.setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0));
    tagPanel.add(tagLabel);
    tagPanel.add(tagButton);
    return tagPanel;
}

From source file:org.openmicroscopy.shoola.agents.treeviewer.view.ToolBar.java

/**
 * Creates the menu displaying the groups and users.
 * //w  ww . jav  a 2s .com
 * @param source The invoker.
 * @param p The location of the mouse clicked.
 */
private void createGroupsAndUsersMenu(Component source, Point p) {
    if (!source.isEnabled())
        return;
    Collection groups = model.getGroups();
    if (CollectionUtils.isEmpty(groups))
        return;
    popupMenu.removeAll();
    GroupData group;
    List sortedGroups = sorter.sort(groups);

    //Determine the group already displayed.
    Browser browser = model.getBrowser(Browser.PROJECTS_EXPLORER);
    List<TreeImageDisplay> nodes;
    ExperimenterVisitor visitor;
    //Find the user already added to the selected group.
    visitor = new ExperimenterVisitor(browser, -1);
    browser.accept(visitor);
    nodes = visitor.getNodes();
    Iterator<TreeImageDisplay> k = nodes.iterator();
    List<Long> groupIds = new ArrayList<Long>();
    long id;
    while (k.hasNext()) {
        id = k.next().getUserObjectId();
        if (id >= 0)
            groupIds.add(id);
    }

    //Create the group menu.
    Iterator i = sortedGroups.iterator();
    int size = sortedGroups.size();
    long userID = model.getExperimenter().getId();

    //First add item to toggle between users and group display
    DataMenuItem data = new DataMenuItem(DataMenuItem.USERS_TEXT, null);
    data.setSelected(model.getDisplayMode() == LookupNames.EXPERIMENTER_DISPLAY);
    data.addPropertyChangeListener(new PropertyChangeListener() {

        @Override
        public void propertyChange(PropertyChangeEvent evt) {
            String name = evt.getPropertyName();
            if (DataMenuItem.ITEM_SELECTED_PROPERTY.equals(name)) {
                DataMenuItem data = (DataMenuItem) evt.getNewValue();
                handleSelectionDisplay(data.isSelected());
            }
        }
    });
    JPanel panel = new JPanel();
    panel.setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0));
    panel.setBorder(null);
    IconManager icons = IconManager.getInstance();
    panel.add(new JLabel(icons.getIcon(IconManager.TRANSPARENT)));
    panel.add(data);
    popupMenu.add(panel);
    popupMenu.add(new JSeparator());
    GroupItem item;
    GroupItem allGroup = null;
    //First add option to add all the groups.
    if (size > 1) {
        item = new GroupItem(false);
        item.setUserID(userID);
        createGroupMenu(item, 0);
        popupMenu.add(item);
        popupMenu.add(new JSeparator());
        allGroup = item;
    }

    boolean selected;
    int count = 0;
    while (i.hasNext()) {
        group = (GroupData) i.next();
        boolean b = groupIds.contains(group.getId());
        item = new GroupItem(group, b, size > 1);
        item.setUserID(userID);
        selected = createGroupMenu(item, size);
        popupMenu.add(item);
        if (selected)
            count++;
    }
    if (allGroup != null) {
        allGroup.setMenuSelected(count == sortedGroups.size(), false);
    }
    popupMenu.show(source, p.x, p.y);
}

From source file:org.openmicroscopy.shoola.agents.metadata.editor.AnnotationDataUI.java

/** Builds and lays out the UI. */
private void buildGUI() {
    removeAll();/*w  ww  .  j a v a 2 s.  com*/

    JLabel l = new JLabel();
    Font f = l.getFont();
    int size = f.getSize() - 1;
    content.removeAll();
    content.setLayout(new GridBagLayout());

    GridBagConstraints c = new GridBagConstraints();
    c.insets = new Insets(2, 1, 2, 1);
    c.anchor = GridBagConstraints.WEST;
    c.gridx = 0;
    c.gridy = 0;
    c.weightx = 1;
    c.weighty = 1;
    c.gridwidth = 2;
    c.fill = GridBagConstraints.HORIZONTAL;

    if (!model.isAnnotationLoaded()) {
        l.setText("Annotation could not be loaded");
        content.add(l, c);
        return;
    }

    if (model.isMultiSelection()) {
        Object refObject = model.getRefObject();
        StringBuffer buffer = new StringBuffer();
        buffer.append("Annotate the selected ");
        buffer.append(model.getObjectTypeAsString(refObject));
        buffer.append("s");
        l.setText(buffer.toString());
        content.add(l, c);
        c.gridy++;
    }

    // filters
    content.add(createBar(filterButton, null), c);
    c.gridy++;

    // rating
    c.gridwidth = 1;
    c.gridx = 0;
    c.weightx = 0;
    c.fill = GridBagConstraints.NONE;
    JPanel p = new JPanel(new FlowLayout(FlowLayout.LEFT, 0, 0));
    p.setBackground(UIUtilities.BACKGROUND_COLOR);
    p.add(UIUtilities.setTextFont("Rating:", Font.BOLD, size));
    p.add(createBar(unrateButton, null));
    content.add(p, c);
    c.gridx = 1;
    c.weightx = 1;
    c.fill = GridBagConstraints.HORIZONTAL;
    p = new JPanel(new FlowLayout(FlowLayout.LEFT, 0, 0));
    p.setBackground(UIUtilities.BACKGROUND_COLOR);
    p.add(rating);
    p.add(Box.createHorizontalStrut(2));
    p.add(otherRating);
    content.add(p, c);
    c.gridy++;

    // tags
    c.gridx = 0;
    p = new JPanel(new FlowLayout(FlowLayout.LEFT, 0, 0));
    p.setBackground(UIUtilities.BACKGROUND_COLOR);
    p.add(UIUtilities.setTextFont("Tags:", Font.BOLD, size));
    p.add(createBar(addTagsButton, removeTagsButton));
    content.add(p, c);
    c.gridy++;
    content.add(tagsPane, c);
    c.gridy++;

    // attachment
    c.gridx = 0;
    c.gridwidth = 2;
    p = new JPanel(new FlowLayout(FlowLayout.LEFT, 0, 0));
    p.setBackground(UIUtilities.BACKGROUND_COLOR);
    p.add(UIUtilities.setTextFont("Attachments:", Font.BOLD, size));
    p.add(createBar(addDocsButton, removeDocsButton));
    content.add(p, c);
    c.gridy++;
    content.add(docRef, c);
    c.gridy++;

    if (!model.isMultiSelection()) {
        mapsPane.reload(filter);
        content.add(mapsPane, c);
        c.gridy++;
    }

    // other
    if (!CollectionUtils.isEmpty(model.getAllOtherAnnotations())) {
        p = new JPanel(new FlowLayout(FlowLayout.LEFT, 0, 0));
        p.setBackground(UIUtilities.BACKGROUND_COLOR);
        p.add(UIUtilities.setTextFont("Others:", Font.BOLD, size));
        p.add(createBar(null, removeOtherAnnotationsButton));
        content.add(p, c);
        c.gridy++;
        content.add(otherPane, c);
    }

    add(content, BorderLayout.CENTER);
}

From source file:de.whiledo.iliasdownloader2.swing.service.MainController.java

public static void showError(final Component parent, String description, final Throwable e) {
    String s = "";
    if (e instanceof IliasHTTPSException) {
        s = "<br><br>Die SSL Verbindung konnte nicht aufgebaut werden." + "<br>Sie benutzen Java Version "
                + System.getProperty("java.version") + "."
                + "<br>Fr einige SSL Verbindungen bentigen Sie <b>Java 1.8 oder hher.</b>"
                + "<br>Sie knnen Java hier herunterladen: http://java.com"
                + "<br><br>Alternativ knnen Sie in den Einstellungen beim Serverpfad https:// durch http:// ersetzen."
                + "<br><b>Das wird aber NICHT empfohlen, da Ihr Loginname und Ihr Passwort ungeschtzt bertragen werden.</b>";
    }// w w  w .  ja  v  a  2s.  co m

    description = description + s;

    JPanel panel = new JPanel(new FlowLayout(FlowLayout.LEFT));
    panel.add(new JLabel("<html>" + description + "</html>"));

    JButton b = new JButton("Details");
    b.addActionListener(new ActionListener() {

        @Override
        public void actionPerformed(ActionEvent ev) {
            final JTextArea textarea = new JTextArea();
            val c = new CircularStream();

            Thread t = new Thread(new Runnable() {

                @Override
                public void run() {
                    e.printStackTrace(new PrintStream(c.getOutputStream()));
                    IOUtils.closeQuietly(c.getOutputStream());
                }
            });
            t.start();

            try {
                textarea.append(IOUtils.toString(c.getInputStream()));
            } catch (IOException e1) {
                e1.printStackTrace();
            }

            try {
                t.join();
            } catch (InterruptedException e1) {
                e1.printStackTrace();
            }

            JPanel p = new JPanel(new BorderLayout());
            p.add(new JLabel(e.getMessage()), BorderLayout.NORTH);

            JScrollPane scrollpane = new JScrollPane(textarea);
            Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
            p.add(scrollpane, BorderLayout.CENTER);
            p.setMaximumSize(new Dimension(screenSize.width / 2, screenSize.height / 2));
            p.setPreferredSize(new Dimension(screenSize.width / 2, screenSize.height / 2));
            p.setSize(new Dimension(screenSize.width / 2, screenSize.height / 2));

            JOptionPane.showMessageDialog(parent, p, "Fehlerdetails", JOptionPane.ERROR_MESSAGE);

        }
    });
    panel.add(b);

    JOptionPane.showMessageDialog(parent, panel, "Fehler", JOptionPane.ERROR_MESSAGE);
}

From source file:org.openmicroscopy.shoola.util.ui.MessengerDialog.java

/**
 * Builds and lays out the buttons./* ww w. jav  a  2  s . c  o  m*/
 * 
 * @param submit Pass <code>true</code> to display the submit files option,
 *              <code>false</code> otherwise.
 * @return See above.
 */
private JPanel buildToolBar(boolean submit) {
    JPanel bars = new JPanel();
    bars.setLayout(new BoxLayout(bars, BoxLayout.X_AXIS));
    if (submit) {
        JPanel row = new JPanel();
        row.setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0));
        row.add(new JLabel("Submit Exceptions and: "));
        row.add(UIUtilities.buildComponentPanel(submitFile));
        JPanel p = new JPanel();
        p.setBorder(null);
        p.setLayout(new BoxLayout(p, BoxLayout.Y_AXIS));
        p.add(row);
        JPanel progressPane = new JPanel();
        progressPane.setLayout(new BoxLayout(progressPane, BoxLayout.X_AXIS));
        progressPane.add(progress);
        progressPane.add(Box.createHorizontalStrut(5));
        progressPane.add(progressLabel);
        p.add(UIUtilities.buildComponentPanel(progressPane));
        bars.add(UIUtilities.buildComponentPanel(p));
    }
    JPanel bar = new JPanel();
    bar.setLayout(new BoxLayout(bar, BoxLayout.X_AXIS));
    bar.add(cancelButton);
    bar.add(Box.createHorizontalStrut(5));
    bar.add(sendButton);
    bar.add(Box.createHorizontalStrut(10));
    bars.add(UIUtilities.buildComponentPanelRight(bar));
    return bars;
}

From source file:org.jas.dnd.DragTooltipDialog.java

private DynamicPanel getDynamicPanel(IconType type, List<?> list) {
    if (list == null || list.isEmpty()) {
        return null;
    }/*from w  w w.j  av  a 2 s.co  m*/

    JPanel dynamicPanel = null;
    JLabel dynamicText = null;

    String text = list.isEmpty() ? null : (list.size()) + " " + (type == null ? "ERROR" : type.getText());
    if (list.size() == 1) {
        text = list.get(0) instanceof File ? ((File) list.get(0)).getName() : list.get(0).toString();
    }

    dynamicText = new JLabel(text);
    dynamicText.setForeground(Color.WHITE);
    FontMetrics fontMetrics = dynamicText.getFontMetrics(dynamicText.getFont());
    int width = fontMetrics.stringWidth(dynamicText.getText()) + DEFAULT_MIN_FONT_WIDTH;
    int realHeight = ROW_HEIGHT;
    String longestText = "";
    while (text.contains("<br>")) {
        text = text.substring(text.indexOf("<br>") + DEFAULT_MIN_FONT_WIDTH);
        if (text.length() > longestText.length()) {
            longestText = text;
        }
        realHeight += ROW_HEIGHT;
    }
    if (!longestText.isEmpty()) {
        width = fontMetrics.stringWidth(longestText) + DEFAULT_MIN_FONT_WIDTH;
    }
    dynamicPanel = new JPanel();
    dynamicPanel.setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0));
    dynamicPanel.setMaximumSize(new Dimension(Integer.MAX_VALUE, realHeight));
    dynamicPanel.setMinimumSize(new Dimension(0, realHeight));
    dynamicPanel.setPreferredSize(new Dimension(100, realHeight));
    dynamicPanel.setSize(new Dimension(100, realHeight));
    if (type != null) {
        dynamicPanel.add(getDynamicIcon(type), null);
        JPanel spacer = new JPanel();
        Dimension d = new Dimension(SPACER_WIDTH, SPACER_WIDTH);
        width += SPACER_WIDTH;

        spacer.setSize(d);
        spacer.setMinimumSize(d);
        spacer.setMaximumSize(d);
        spacer.setPreferredSize(d);
        dynamicPanel.add(spacer);
        width += type.width;
    }
    dynamicPanel.add(dynamicText);
    return new DynamicPanel(dynamicPanel, width, realHeight);
}

From source file:simMPLS.ui.simulator.JVentanaHija.java

/** Este mtodo es llamado desde el constructor para actualizar la mayor parte de
 * los atributos de la clase que tienen que ver con la interfaz de usuario. Es un
 * mtodo creado por NetBeans automaticamente.
 * @since 1.0/*from www  .j a v  a 2 s .c  o m*/
 */
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
    java.awt.GridBagConstraints gridBagConstraints;

    diseElementoPopUp = new javax.swing.JPopupMenu();
    dEliminarMenuItem = new javax.swing.JMenuItem();
    dVerNombreMenuItem = new javax.swing.JCheckBoxMenuItem();
    jSeparator1 = new javax.swing.JSeparator();
    dPropiedadesMenuItem = new javax.swing.JMenuItem();
    diseFondoPopUp = new javax.swing.JPopupMenu();
    dVerNombresNodosMenuItem = new javax.swing.JMenuItem();
    dOcultarNombresNodosMenuItem = new javax.swing.JMenuItem();
    dVerNombresEnlacesMenuItem = new javax.swing.JMenuItem();
    dOcultarNombresEnlacesMenuItem = new javax.swing.JMenuItem();
    jSeparator2 = new javax.swing.JSeparator();
    dEliminarTodoMenuItem = new javax.swing.JMenuItem();
    jTabbedPane1 = new javax.swing.JTabbedPane();
    panelDisenioSuperior = new javax.swing.JPanel();
    panelBotonesDisenio = new javax.swing.JPanel();
    iconoEmisor = new javax.swing.JLabel();
    iconoReceptor = new javax.swing.JLabel();
    iconoLER = new javax.swing.JLabel();
    iconoLERA = new javax.swing.JLabel();
    iconoLSR = new javax.swing.JLabel();
    iconoLSRA = new javax.swing.JLabel();
    iconoEnlace = new javax.swing.JLabel();
    jScrollPane1 = new javax.swing.JScrollPane();
    panelDisenio = new simMPLS.ui.simulator.JPanelDisenio();
    panelSimulacionSuperior = new javax.swing.JPanel();
    panelBotonesSimulacion = new javax.swing.JPanel();
    iconoComenzar = new javax.swing.JLabel();
    iconoFinalizar = new javax.swing.JLabel();
    iconoReanudar = new javax.swing.JLabel();
    iconoPausar = new javax.swing.JLabel();
    barraDeProgreso = new javax.swing.JProgressBar();
    mlsPorTic = new javax.swing.JSlider();
    etiquetaMlsPorTic = new javax.swing.JLabel();
    crearTraza = new javax.swing.JCheckBox();
    jScrollPane2 = new javax.swing.JScrollPane();
    panelSimulacion = new simMPLS.ui.simulator.JSimulationPanel();
    panelAnalisisSuperior = new javax.swing.JPanel();
    panelSeleccionElemento = new javax.swing.JPanel();
    jLabel1 = new javax.swing.JLabel();
    selectorElementoEstadisticas = new javax.swing.JComboBox();
    jScrollPane4 = new javax.swing.JScrollPane();
    panelAnalisis = new javax.swing.JPanel();
    panelFijo = new javax.swing.JPanel();
    etiquetaEstadisticasTituloEscenario = new javax.swing.JLabel();
    etiquetaEstadisticasNombreAutor = new javax.swing.JLabel();
    areaEstadisticasDescripcion = new javax.swing.JTextArea();
    etiquetaNombreElementoEstadistica = new javax.swing.JLabel();
    panelOpcionesSuperior = new javax.swing.JPanel();
    jScrollPane3 = new javax.swing.JScrollPane();
    panelOpciones = new javax.swing.JPanel();
    jPanel3 = new javax.swing.JPanel();
    jLabel5 = new javax.swing.JLabel();
    nombreEscenario = new javax.swing.JTextField();
    jLabel6 = new javax.swing.JLabel();
    nombreAutor = new javax.swing.JTextField();
    jLabel7 = new javax.swing.JLabel();
    descripcionEscenario = new javax.swing.JTextField();
    jPanel2 = new javax.swing.JPanel();
    jLabel3 = new javax.swing.JLabel();
    duracionMs = new javax.swing.JSlider();
    etiquetaDuracionMs = new javax.swing.JLabel();
    duracionNs = new javax.swing.JSlider();
    etiquetaDuracionNs = new javax.swing.JLabel();
    jLabel4 = new javax.swing.JLabel();
    pasoNs = new javax.swing.JSlider();
    etiquetaPasoNs = new javax.swing.JLabel();

    diseElementoPopUp.setFont(new java.awt.Font("Dialog", 0, 12)); // NOI18N

    dEliminarMenuItem.setFont(new java.awt.Font("Dialog", 0, 12)); // NOI18N
    dEliminarMenuItem.setMnemonic(java.util.ResourceBundle.getBundle("simMPLS/lenguajes/lenguajes")
            .getString("VentanaHija.PopUpDisenio.mne.Delete").charAt(0));
    java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("simMPLS/lenguajes/lenguajes"); // NOI18N
    dEliminarMenuItem.setText(bundle.getString("VentanaHija.PopUpDisenio.Delete")); // NOI18N
    dEliminarMenuItem.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            clicEnPopUpDisenioEliminar(evt);
        }
    });
    diseElementoPopUp.add(dEliminarMenuItem);

    dVerNombreMenuItem.setFont(new java.awt.Font("Dialog", 0, 12)); // NOI18N
    dVerNombreMenuItem.setMnemonic(java.util.ResourceBundle.getBundle("simMPLS/lenguajes/lenguajes")
            .getString("VentanaHija.PopUpDisenio.mne.verNombre").charAt(0));
    dVerNombreMenuItem.setText(bundle.getString("VentanaHija.PopUpDisenio.verNombre")); // NOI18N
    dVerNombreMenuItem.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            clicEnPopUpDisenioVerNombre(evt);
        }
    });
    diseElementoPopUp.add(dVerNombreMenuItem);
    diseElementoPopUp.add(jSeparator1);

    dPropiedadesMenuItem.setFont(new java.awt.Font("Dialog", 0, 12)); // NOI18N
    dPropiedadesMenuItem.setMnemonic(java.util.ResourceBundle.getBundle("simMPLS/lenguajes/lenguajes")
            .getString("VentanaHija.PopUpDisenio.mne.Propiedades").charAt(0));
    dPropiedadesMenuItem.setText(bundle.getString("VentanaHija.PopUpDisenio.Propiedades")); // NOI18N
    dPropiedadesMenuItem.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            clicEnPropiedadesPopUpDisenioElemento(evt);
        }
    });
    diseElementoPopUp.add(dPropiedadesMenuItem);

    diseFondoPopUp.setFont(new java.awt.Font("Dialog", 0, 12)); // NOI18N

    dVerNombresNodosMenuItem.setFont(new java.awt.Font("Dialog", 0, 12)); // NOI18N
    dVerNombresNodosMenuItem.setMnemonic(java.util.ResourceBundle.getBundle("simMPLS/lenguajes/lenguajes")
            .getString("popUpDisenioFondo.mne.verTodosNodos").charAt(0));
    dVerNombresNodosMenuItem.setText(bundle.getString("popUpDisenioFondo.verTodosNodos")); // NOI18N
    dVerNombresNodosMenuItem.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            clicEnPopUpDisenioFondoVerNombreNodos(evt);
        }
    });
    diseFondoPopUp.add(dVerNombresNodosMenuItem);

    dOcultarNombresNodosMenuItem.setFont(new java.awt.Font("Dialog", 0, 12)); // NOI18N
    dOcultarNombresNodosMenuItem.setMnemonic(java.util.ResourceBundle.getBundle("simMPLS/lenguajes/lenguajes")
            .getString("popUpDisenioFondo.mne.ocultarTodosNodos").charAt(0));
    dOcultarNombresNodosMenuItem.setText(bundle.getString("popUpDisenioFondo.ocultarTodosNodos")); // NOI18N
    dOcultarNombresNodosMenuItem.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            clicEnPopUpDisenioFondoOcultarNombreNodos(evt);
        }
    });
    diseFondoPopUp.add(dOcultarNombresNodosMenuItem);

    dVerNombresEnlacesMenuItem.setFont(new java.awt.Font("Dialog", 0, 12)); // NOI18N
    dVerNombresEnlacesMenuItem.setMnemonic(java.util.ResourceBundle.getBundle("simMPLS/lenguajes/lenguajes")
            .getString("popUpDisenioFondo.mne.verTodosEnlaces").charAt(0));
    dVerNombresEnlacesMenuItem.setText(bundle.getString("popUpDisenioFondo.verTodosEnlaces")); // NOI18N
    dVerNombresEnlacesMenuItem.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            clicEnPopUpDisenioFondoVerNombreEnlaces(evt);
        }
    });
    diseFondoPopUp.add(dVerNombresEnlacesMenuItem);

    dOcultarNombresEnlacesMenuItem.setFont(new java.awt.Font("Dialog", 0, 12)); // NOI18N
    dOcultarNombresEnlacesMenuItem.setMnemonic(java.util.ResourceBundle.getBundle("simMPLS/lenguajes/lenguajes")
            .getString("popUpDisenioFondo.mne.ocultarTodosEnlaces").charAt(0));
    dOcultarNombresEnlacesMenuItem.setText(bundle.getString("popUpDisenioFondo.ocultarTodosEnlaces")); // NOI18N
    dOcultarNombresEnlacesMenuItem.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            clicEnPopUpDisenioFondoOcultarNombreEnlaces(evt);
        }
    });
    diseFondoPopUp.add(dOcultarNombresEnlacesMenuItem);
    diseFondoPopUp.add(jSeparator2);

    dEliminarTodoMenuItem.setFont(new java.awt.Font("Dialog", 0, 12)); // NOI18N
    dEliminarTodoMenuItem.setMnemonic(java.util.ResourceBundle.getBundle("simMPLS/lenguajes/lenguajes")
            .getString("popUpDisenioFondo.mne.eliminarTodo").charAt(0));
    dEliminarTodoMenuItem.setText(bundle.getString("popUpDisenioFondo.borrarTodo")); // NOI18N
    dEliminarTodoMenuItem.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            clicEnPopUpDisenioFondoEliminar(evt);
        }
    });
    diseFondoPopUp.add(dEliminarTodoMenuItem);

    setIconifiable(true);
    setMaximizable(true);
    setResizable(true);
    setTitle(bundle.getString("VentanaHija.Titulo")); // NOI18N
    setAutoscrolls(true);
    setFont(new java.awt.Font("Dialog", 0, 12)); // NOI18N
    setFrameIcon(dispensadorDeImagenes.obtenerIcono(simMPLS.ui.utils.TImagesBroker.ICONO_VENTANA_INTERNA_MENU));
    setNormalBounds(new java.awt.Rectangle(10, 10, 100, 100));
    setPreferredSize(new java.awt.Dimension(100, 100));
    setVisible(true);

    jTabbedPane1.setTabLayoutPolicy(javax.swing.JTabbedPane.SCROLL_TAB_LAYOUT);
    jTabbedPane1.setFont(new java.awt.Font("Dialog", 0, 12)); // NOI18N

    panelDisenioSuperior.setLayout(new java.awt.BorderLayout());

    panelBotonesDisenio.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    panelBotonesDisenio.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT));

    iconoEmisor.setIcon(dispensadorDeImagenes.obtenerIcono(simMPLS.ui.utils.TImagesBroker.EMISOR_MENU));
    iconoEmisor.setToolTipText(bundle.getString("VentanaHija.Topic.Emisor")); // NOI18N
    iconoEmisor.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseEntered(java.awt.event.MouseEvent evt) {
            ratonEntraEnIconoEmisor(evt);
        }

        public void mouseExited(java.awt.event.MouseEvent evt) {
            ratonSaleDeIconoEmisor(evt);
        }

        public void mousePressed(java.awt.event.MouseEvent evt) {
            clicEnAniadirEmisorDeTrafico(evt);
        }
    });
    panelBotonesDisenio.add(iconoEmisor);

    iconoReceptor.setIcon(dispensadorDeImagenes.obtenerIcono(simMPLS.ui.utils.TImagesBroker.RECEPTOR_MENU));
    iconoReceptor.setToolTipText(bundle.getString("VentanaHija.Topic.Receptor")); // NOI18N
    iconoReceptor.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseEntered(java.awt.event.MouseEvent evt) {
            ratonEntraEnIconoReceptor(evt);
        }

        public void mouseExited(java.awt.event.MouseEvent evt) {
            ratonSaleDeIconoReceptor(evt);
        }

        public void mousePressed(java.awt.event.MouseEvent evt) {
            clicEnAniadirReceptor(evt);
        }
    });
    panelBotonesDisenio.add(iconoReceptor);

    iconoLER.setIcon(dispensadorDeImagenes.obtenerIcono(simMPLS.ui.utils.TImagesBroker.LER_MENU));
    iconoLER.setToolTipText(bundle.getString("VentanaHija.Topic.LER")); // NOI18N
    iconoLER.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseEntered(java.awt.event.MouseEvent evt) {
            ratonEntraEnIconoLER(evt);
        }

        public void mouseExited(java.awt.event.MouseEvent evt) {
            ratonSaleDeIconoLER(evt);
        }

        public void mousePressed(java.awt.event.MouseEvent evt) {
            clicEnAniadirLER(evt);
        }
    });
    panelBotonesDisenio.add(iconoLER);

    iconoLERA.setIcon(dispensadorDeImagenes.obtenerIcono(simMPLS.ui.utils.TImagesBroker.LERA_MENU));
    iconoLERA.setToolTipText(bundle.getString("VentanaHija.Topic.LERActivo")); // NOI18N
    iconoLERA.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseEntered(java.awt.event.MouseEvent evt) {
            ratonEntraEnIconoLERA(evt);
        }

        public void mouseExited(java.awt.event.MouseEvent evt) {
            ratonSaleDeIconoLERA(evt);
        }

        public void mousePressed(java.awt.event.MouseEvent evt) {
            clicEnAniadirLERA(evt);
        }
    });
    panelBotonesDisenio.add(iconoLERA);

    iconoLSR.setIcon(dispensadorDeImagenes.obtenerIcono(simMPLS.ui.utils.TImagesBroker.LSR_MENU));
    iconoLSR.setToolTipText(bundle.getString("VentanaHija.Topic.LSR")); // NOI18N
    iconoLSR.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseEntered(java.awt.event.MouseEvent evt) {
            ratonEntraEnIconoLSR(evt);
        }

        public void mouseExited(java.awt.event.MouseEvent evt) {
            ratonSaleDeIconoLSR(evt);
        }

        public void mousePressed(java.awt.event.MouseEvent evt) {
            clicEnAniadirLSR(evt);
        }
    });
    panelBotonesDisenio.add(iconoLSR);

    iconoLSRA.setIcon(dispensadorDeImagenes.obtenerIcono(simMPLS.ui.utils.TImagesBroker.LSRA_MENU));
    iconoLSRA.setToolTipText(bundle.getString("VentanaHija.Topic.LSRActivo")); // NOI18N
    iconoLSRA.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseEntered(java.awt.event.MouseEvent evt) {
            ratonEntraEnIconoLSRA(evt);
        }

        public void mouseExited(java.awt.event.MouseEvent evt) {
            ratonSaleDeIconoLSRA(evt);
        }

        public void mousePressed(java.awt.event.MouseEvent evt) {
            clicEnAniadirLSRA(evt);
        }
    });
    panelBotonesDisenio.add(iconoLSRA);

    iconoEnlace.setIcon(dispensadorDeImagenes.obtenerIcono(simMPLS.ui.utils.TImagesBroker.ENLACE_MENU));
    iconoEnlace.setToolTipText(bundle.getString("VentanaHija.Topic.Enlace")); // NOI18N
    iconoEnlace.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            clicEnAniadirEnlace(evt);
        }

        public void mouseEntered(java.awt.event.MouseEvent evt) {
            ratonEntraEnIconoEnlace(evt);
        }

        public void mouseExited(java.awt.event.MouseEvent evt) {
            ratonSaleDeIconoEnlace(evt);
        }
    });
    panelBotonesDisenio.add(iconoEnlace);

    panelDisenioSuperior.add(panelBotonesDisenio, java.awt.BorderLayout.NORTH);

    jScrollPane1.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED));

    panelDisenio.setBackground(java.awt.Color.white);
    panelDisenio.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    panelDisenio.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            clicDerechoEnPanelDisenio(evt);
        }

        public void mousePressed(java.awt.event.MouseEvent evt) {
            clicEnPanelDisenio(evt);
        }

        public void mouseReleased(java.awt.event.MouseEvent evt) {
            clicSoltadoEnPanelDisenio(evt);
        }
    });
    panelDisenio.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
        public void mouseDragged(java.awt.event.MouseEvent evt) {
            arrastrandoEnPanelDisenio(evt);
        }

        public void mouseMoved(java.awt.event.MouseEvent evt) {
            ratonSobrePanelDisenio(evt);
        }
    });
    panelDisenio.setLayout(null);
    jScrollPane1.setViewportView(panelDisenio);

    panelDisenioSuperior.add(jScrollPane1, java.awt.BorderLayout.CENTER);

    jTabbedPane1.addTab(bundle.getString("VentanaHija.Tab.Disenio"),
            dispensadorDeImagenes.obtenerIcono(simMPLS.ui.utils.TImagesBroker.DISENIO), panelDisenioSuperior,
            bundle.getString("VentanaHija.A_panel_to_design_network_topology")); // NOI18N

    panelSimulacionSuperior.setLayout(new java.awt.BorderLayout());

    panelBotonesSimulacion.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    panelBotonesSimulacion.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT));

    iconoComenzar.setIcon(dispensadorDeImagenes.obtenerIcono(simMPLS.ui.utils.TImagesBroker.BOTON_GENERAR));
    iconoComenzar.setToolTipText(bundle.getString("VentanaHija.Topic.Generar")); // NOI18N
    iconoComenzar.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseEntered(java.awt.event.MouseEvent evt) {
            ratonEntraEnIconoComenzar(evt);
        }

        public void mouseExited(java.awt.event.MouseEvent evt) {
            ratonSaleDelIconoComenzar(evt);
        }

        public void mousePressed(java.awt.event.MouseEvent evt) {
            clicEnComenzar(evt);
        }
    });
    panelBotonesSimulacion.add(iconoComenzar);

    iconoFinalizar.setIcon(dispensadorDeImagenes.obtenerIcono(simMPLS.ui.utils.TImagesBroker.BOTON_PARAR));
    iconoFinalizar.setToolTipText(bundle.getString("VentanaHija.Topic.Finalizar")); // NOI18N
    iconoFinalizar.setEnabled(false);
    iconoFinalizar.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseEntered(java.awt.event.MouseEvent evt) {
            ratonEntraEnIconoFinalizar(evt);
        }

        public void mouseExited(java.awt.event.MouseEvent evt) {
            ratonSaleDelIconoFinalizar(evt);
        }

        public void mousePressed(java.awt.event.MouseEvent evt) {
            clicEnFinalizar(evt);
        }
    });
    panelBotonesSimulacion.add(iconoFinalizar);

    iconoReanudar.setIcon(dispensadorDeImagenes.obtenerIcono(simMPLS.ui.utils.TImagesBroker.BOTON_COMENZAR));
    iconoReanudar.setToolTipText(bundle.getString("VentanaHija.Topic.Simulacion")); // NOI18N
    iconoReanudar.setEnabled(false);
    iconoReanudar.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseEntered(java.awt.event.MouseEvent evt) {
            ratonEntraEnIconoReanudar(evt);
        }

        public void mouseExited(java.awt.event.MouseEvent evt) {
            ratonSaleDelIconoReanudar(evt);
        }

        public void mousePressed(java.awt.event.MouseEvent evt) {
            clicEnReanudar(evt);
        }
    });
    panelBotonesSimulacion.add(iconoReanudar);

    iconoPausar.setIcon(dispensadorDeImagenes.obtenerIcono(simMPLS.ui.utils.TImagesBroker.BOTON_PAUSA));
    iconoPausar.setToolTipText(bundle.getString("VentanaHija.Topic.Detener")); // NOI18N
    iconoPausar.setEnabled(false);
    iconoPausar.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseEntered(java.awt.event.MouseEvent evt) {
            ratonEntraEnIconoPausar(evt);
        }

        public void mouseExited(java.awt.event.MouseEvent evt) {
            ratonSaleDelIconoPausar(evt);
        }

        public void mousePressed(java.awt.event.MouseEvent evt) {
            clicAlPausar(evt);
        }
    });
    panelBotonesSimulacion.add(iconoPausar);

    barraDeProgreso.setFont(new java.awt.Font("Dialog", 0, 12)); // NOI18N
    barraDeProgreso.setToolTipText(bundle.getString("VentanaHija.BarraProgreso.tooltip")); // NOI18N
    barraDeProgreso.setStringPainted(true);
    panelBotonesSimulacion.add(barraDeProgreso);

    mlsPorTic.setMajorTickSpacing(10);
    mlsPorTic.setMaximum(500);
    mlsPorTic.setMinimum(1);
    mlsPorTic.setMinorTickSpacing(1);
    mlsPorTic.setSnapToTicks(true);
    mlsPorTic.setToolTipText(bundle.getString("VentanaHija.Simulacion.SelectorDeVelocidad.tooltip")); // NOI18N
    mlsPorTic.setPreferredSize(new java.awt.Dimension(100, 20));
    mlsPorTic.addChangeListener(new javax.swing.event.ChangeListener() {
        public void stateChanged(javax.swing.event.ChangeEvent evt) {
            mlsPorTicCambiado(evt);
        }
    });
    panelBotonesSimulacion.add(mlsPorTic);

    etiquetaMlsPorTic.setFont(new java.awt.Font("Dialog", 0, 10)); // NOI18N
    etiquetaMlsPorTic.setForeground(new java.awt.Color(102, 102, 102));
    panelBotonesSimulacion.add(etiquetaMlsPorTic);

    crearTraza.setText(bundle.getString("JVentanaHija.Create_trace_file")); // NOI18N
    panelBotonesSimulacion.add(crearTraza);

    panelSimulacionSuperior.add(panelBotonesSimulacion, java.awt.BorderLayout.NORTH);

    jScrollPane2.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED));

    panelSimulacion.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    panelSimulacion.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            ratonPulsadoYSoltadoEnPanelSimulacion(evt);
        }

        public void mousePressed(java.awt.event.MouseEvent evt) {
            clicEnPanelSimulacion(evt);
        }

        public void mouseReleased(java.awt.event.MouseEvent evt) {
            ratonSoltadoEnPanelSimulacion(evt);
        }
    });
    panelSimulacion.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
        public void mouseDragged(java.awt.event.MouseEvent evt) {
            ratonArrastradoEnPanelSimulacion(evt);
        }

        public void mouseMoved(java.awt.event.MouseEvent evt) {
            ratonSobrePanelSimulacion(evt);
        }
    });
    jScrollPane2.setViewportView(panelSimulacion);

    panelSimulacionSuperior.add(jScrollPane2, java.awt.BorderLayout.CENTER);

    jTabbedPane1.addTab(bundle.getString("VentanaHija.Tab.Simulacion"),
            dispensadorDeImagenes.obtenerIcono(simMPLS.ui.utils.TImagesBroker.SIMULACION),
            panelSimulacionSuperior, bundle.getString("VentanaHija.A_panel_to_generate_and_play_simulation.")); // NOI18N

    panelAnalisisSuperior.setLayout(new java.awt.BorderLayout());

    panelSeleccionElemento.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    panelSeleccionElemento.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT));

    jLabel1.setText(bundle.getString("JVentanaHija.SelcUnElemParaVerDatos")); // NOI18N
    panelSeleccionElemento.add(jLabel1);

    selectorElementoEstadisticas.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "" }));
    selectorElementoEstadisticas.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            clicEnSeleccionalElementoEstadistica(evt);
        }
    });
    panelSeleccionElemento.add(selectorElementoEstadisticas);

    panelAnalisisSuperior.add(panelSeleccionElemento, java.awt.BorderLayout.NORTH);

    jScrollPane4.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED));

    panelAnalisis.setBackground(new java.awt.Color(252, 246, 226));
    panelAnalisis.setLayout(new java.awt.GridBagLayout());

    panelFijo.setBackground(new java.awt.Color(252, 246, 226));
    panelFijo.setLayout(new java.awt.GridBagLayout());

    etiquetaEstadisticasTituloEscenario.setBackground(new java.awt.Color(252, 246, 226));
    etiquetaEstadisticasTituloEscenario.setFont(new java.awt.Font("Arial", 1, 18)); // NOI18N
    etiquetaEstadisticasTituloEscenario.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    etiquetaEstadisticasTituloEscenario.setText(bundle.getString("JVentanaHija.TituloDelEscenario")); // NOI18N
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    panelFijo.add(etiquetaEstadisticasTituloEscenario, gridBagConstraints);

    etiquetaEstadisticasNombreAutor.setBackground(new java.awt.Color(252, 246, 226));
    etiquetaEstadisticasNombreAutor.setFont(new java.awt.Font("Arial", 1, 14)); // NOI18N
    etiquetaEstadisticasNombreAutor.setForeground(new java.awt.Color(102, 0, 51));
    etiquetaEstadisticasNombreAutor.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    etiquetaEstadisticasNombreAutor.setText(bundle.getString("JVentanaHija.AutorDelEscenario")); // NOI18N
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    panelFijo.add(etiquetaEstadisticasNombreAutor, gridBagConstraints);

    areaEstadisticasDescripcion.setBackground(new java.awt.Color(252, 246, 226));
    areaEstadisticasDescripcion.setEditable(false);
    areaEstadisticasDescripcion.setFont(new java.awt.Font("MonoSpaced", 0, 11)); // NOI18N
    areaEstadisticasDescripcion.setLineWrap(true);
    areaEstadisticasDescripcion.setRows(3);
    areaEstadisticasDescripcion.setText(bundle.getString("JVentanaHija.DescripcionDelEscenario")); // NOI18N
    areaEstadisticasDescripcion.setWrapStyleWord(true);
    areaEstadisticasDescripcion.setMinimumSize(new java.awt.Dimension(500, 16));
    areaEstadisticasDescripcion.setPreferredSize(new java.awt.Dimension(500, 48));
    areaEstadisticasDescripcion.setAutoscrolls(false);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    panelFijo.add(areaEstadisticasDescripcion, gridBagConstraints);

    etiquetaNombreElementoEstadistica.setBackground(new java.awt.Color(252, 246, 226));
    etiquetaNombreElementoEstadistica.setFont(new java.awt.Font("Arial", 1, 14)); // NOI18N
    etiquetaNombreElementoEstadistica.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    etiquetaNombreElementoEstadistica.setText(bundle.getString("JVentanaHija.SeleccioneNodoAInspeccionar")); // NOI18N
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 3;
    panelFijo.add(etiquetaNombreElementoEstadistica, gridBagConstraints);

    panelAnalisis.add(panelFijo, new java.awt.GridBagConstraints());

    jScrollPane4.setViewportView(panelAnalisis);

    panelAnalisisSuperior.add(jScrollPane4, java.awt.BorderLayout.CENTER);

    jTabbedPane1.addTab(bundle.getString("JVentanaHija.Analisis"),
            dispensadorDeImagenes.obtenerIcono(simMPLS.ui.utils.TImagesBroker.ANALISIS), panelAnalisisSuperior,
            bundle.getString("JVentanaHija.Analisis.Tooltip")); // NOI18N

    panelOpcionesSuperior.setLayout(new java.awt.BorderLayout());

    jScrollPane3.setBorder(null);

    panelOpciones.setPreferredSize(new java.awt.Dimension(380, 230));
    panelOpciones.setLayout(new java.awt.GridBagLayout());

    jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(null,
            bundle.getString("VentanaHija.GParameters"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,
            javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Dialog", 0, 12))); // NOI18N
    jPanel3.setLayout(new java.awt.GridBagLayout());

    jLabel5.setFont(new java.awt.Font("Dialog", 0, 12)); // NOI18N
    jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    jLabel5.setText(bundle.getString("VentanaHija.Scene_title")); // NOI18N
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
    jPanel3.add(jLabel5, gridBagConstraints);

    nombreEscenario.setToolTipText(bundle.getString("VentanaHija.Type_a__title_of_the_scene")); // NOI18N
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.weightx = 200.0;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
    jPanel3.add(nombreEscenario, gridBagConstraints);

    jLabel6.setFont(new java.awt.Font("Dialog", 0, 12)); // NOI18N
    jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    jLabel6.setText(bundle.getString("VentanaHija.Scene_author")); // NOI18N
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
    jPanel3.add(jLabel6, gridBagConstraints);

    nombreAutor.setToolTipText(bundle.getString("VentanaHija.Type_de_name_of_the_author")); // NOI18N
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.weightx = 200.0;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
    jPanel3.add(nombreAutor, gridBagConstraints);

    jLabel7.setFont(new java.awt.Font("Dialog", 0, 12)); // NOI18N
    jLabel7.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    jLabel7.setText(bundle.getString("VentanaHija.Description")); // NOI18N
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
    jPanel3.add(jLabel7, gridBagConstraints);

    descripcionEscenario.setToolTipText(bundle.getString("VentanaHija.Enter_a_short_description.")); // NOI18N
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.weightx = 200.0;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
    jPanel3.add(descripcionEscenario, gridBagConstraints);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.weightx = 350.0;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
    panelOpciones.add(jPanel3, gridBagConstraints);

    jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(null,
            bundle.getString("VentanaHija.TParameters"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,
            javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Dialog", 0, 12))); // NOI18N
    jPanel2.setLayout(new java.awt.GridBagLayout());

    jLabel3.setFont(new java.awt.Font("Dialog", 0, 12)); // NOI18N
    jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    jLabel3.setText(bundle.getString("VentanaHija.Duration")); // NOI18N
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.weightx = 100.0;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
    jPanel2.add(jLabel3, gridBagConstraints);

    duracionMs.setMajorTickSpacing(10);
    duracionMs.setMaximum(10);
    duracionMs.setMinorTickSpacing(1);
    duracionMs.setToolTipText(
            bundle.getString("VentanaHija.Slide_it_to_change_the_ms._component_of_simulation_duration.")); // NOI18N
    duracionMs.setValue(0);
    duracionMs.setMaximumSize(new java.awt.Dimension(30, 20));
    duracionMs.setMinimumSize(new java.awt.Dimension(30, 24));
    duracionMs.setPreferredSize(new java.awt.Dimension(30, 20));
    duracionMs.addChangeListener(new javax.swing.event.ChangeListener() {
        public void stateChanged(javax.swing.event.ChangeEvent evt) {
            clicEnDuracionMs(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.weightx = 150.0;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
    jPanel2.add(duracionMs, gridBagConstraints);

    etiquetaDuracionMs.setFont(new java.awt.Font("Dialog", 0, 10)); // NOI18N
    etiquetaDuracionMs.setForeground(new java.awt.Color(102, 102, 102));
    etiquetaDuracionMs.setText(bundle.getString("VentanaHija.ms.")); // NOI18N
    etiquetaDuracionMs.setMaximumSize(new java.awt.Dimension(30, 14));
    etiquetaDuracionMs.setMinimumSize(new java.awt.Dimension(30, 14));
    etiquetaDuracionMs.setPreferredSize(new java.awt.Dimension(30, 14));
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.weightx = 40.0;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
    jPanel2.add(etiquetaDuracionMs, gridBagConstraints);

    duracionNs.setMajorTickSpacing(1000);
    duracionNs.setMaximum(999999);
    duracionNs.setMinorTickSpacing(100);
    duracionNs.setToolTipText(
            bundle.getString("VentanaHija.Slide_it_to_change_the_ns._component_of_simulation_duration.")); // NOI18N
    duracionNs.setValue(100000);
    duracionNs.setMaximumSize(new java.awt.Dimension(32767, 20));
    duracionNs.setMinimumSize(new java.awt.Dimension(36, 20));
    duracionNs.setPreferredSize(new java.awt.Dimension(200, 20));
    duracionNs.addChangeListener(new javax.swing.event.ChangeListener() {
        public void stateChanged(javax.swing.event.ChangeEvent evt) {
            clicEnDuracionNs(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.weightx = 150.0;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
    jPanel2.add(duracionNs, gridBagConstraints);

    etiquetaDuracionNs.setFont(new java.awt.Font("Dialog", 0, 10)); // NOI18N
    etiquetaDuracionNs.setForeground(new java.awt.Color(102, 102, 102));
    etiquetaDuracionNs.setText(bundle.getString("VentanaHija.ns.")); // NOI18N
    etiquetaDuracionNs.setMaximumSize(new java.awt.Dimension(40, 14));
    etiquetaDuracionNs.setMinimumSize(new java.awt.Dimension(40, 14));
    etiquetaDuracionNs.setPreferredSize(new java.awt.Dimension(40, 14));
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.weightx = 100.0;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
    jPanel2.add(etiquetaDuracionNs, gridBagConstraints);

    jLabel4.setFont(new java.awt.Font("Dialog", 0, 12)); // NOI18N
    jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    jLabel4.setText(bundle.getString("VentanaHija.Step")); // NOI18N
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.weightx = 100.0;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
    jPanel2.add(jLabel4, gridBagConstraints);

    pasoNs.setMajorTickSpacing(1000);
    pasoNs.setMaximum(999999);
    pasoNs.setMinimum(1);
    pasoNs.setMinorTickSpacing(100);
    pasoNs.setToolTipText(bundle.getString("VentanaHija.Slide_it_to_change_the_step_duration_(ns)..")); // NOI18N
    pasoNs.setValue(10000);
    pasoNs.setMaximumSize(new java.awt.Dimension(32767, 20));
    pasoNs.setPreferredSize(new java.awt.Dimension(100, 20));
    pasoNs.addChangeListener(new javax.swing.event.ChangeListener() {
        public void stateChanged(javax.swing.event.ChangeEvent evt) {
            clicEnPasoNs(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.gridwidth = 3;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
    jPanel2.add(pasoNs, gridBagConstraints);

    etiquetaPasoNs.setFont(new java.awt.Font("Dialog", 0, 10)); // NOI18N
    etiquetaPasoNs.setForeground(new java.awt.Color(102, 102, 102));
    etiquetaPasoNs.setText(bundle.getString("VentanaHija.ns.")); // NOI18N
    etiquetaPasoNs.setMaximumSize(new java.awt.Dimension(40, 14));
    etiquetaPasoNs.setMinimumSize(new java.awt.Dimension(40, 14));
    etiquetaPasoNs.setPreferredSize(new java.awt.Dimension(40, 14));
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 4;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.weightx = 100.0;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
    jPanel2.add(etiquetaPasoNs, gridBagConstraints);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.weightx = 350.0;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
    panelOpciones.add(jPanel2, gridBagConstraints);

    jScrollPane3.setViewportView(panelOpciones);

    panelOpcionesSuperior.add(jScrollPane3, java.awt.BorderLayout.NORTH);

    jTabbedPane1.addTab(bundle.getString("VentanaHija.Options"),
            dispensadorDeImagenes.obtenerIcono(simMPLS.ui.utils.TImagesBroker.OPCIONES), panelOpcionesSuperior,
            bundle.getString("VentanaHija.Options_about_the_scene")); // NOI18N

    getContentPane().add(jTabbedPane1, java.awt.BorderLayout.CENTER);

    pack();
}