private void init() { credits.add(new CreditsEntry(true, "Programmierung")); credits.add(new CreditsEntry(false, "Maj0r")); credits.add(new CreditsEntry(false, "([email protected])")); credits.add(new CreditsEntry(false, "loevenwong")); credits.add(new CreditsEntry(false, "([email protected])")); credits.add(new CreditsEntry(true, "Besonderen Dank an")); credits.add(new CreditsEntry(false, "muhviehstarr")); credits.add(new CreditsEntry(true, "Banner & Bilder")); credits.add(new CreditsEntry(false, "saschxd")); credits.add(new CreditsEntry(true, "Übersetzung")); credits.add(new CreditsEntry(false, "BlueTiger")); credits.add(new CreditsEntry(false, "nurseppel")); credits.add(new CreditsEntry(true, "Kontakt")); credits.add(new CreditsEntry(false, "irc.devStaff.net:6667")); credits.add(new CreditsEntry(false, "#applejuice")); credits.add(new CreditsEntry(false, "www.applejuicenet.de")); backgroundImage = IconManager.getInstance().getIcon("applejuiceinfobanner").getImage(); flagge = IconManager.getInstance().getIcon("deutsch").getImage(); MediaTracker mt = new MediaTracker(this); mt.addImage(backgroundImage, 0); try { mt.waitForAll(); } catch (InterruptedException x) { // kein Bild da, dann kack drauf ;-) } version.setText( "Version " + AppleJuiceDialog.GUI_VERSION + "/" + ApplejuiceFassade.FASSADE_VERSION); Font font = version.getFont(); font = new Font(font.getName(), Font.PLAIN, font.getSize()); version.setFont(font); setLayout(new BorderLayout()); TKLPanel panel1 = new TKLPanel(new FlowLayout(FlowLayout.RIGHT)); panel1.add(version); panel1.setOpaque(false); add(panel1, BorderLayout.SOUTH); }
private void init() throws Exception { setLayout(new BorderLayout()); serverMessage = new JTextPane(); serverMessage.setContentType("text/html"); serverMessage.setEditable(false); JPanel panel3 = new JPanel(new GridBagLayout()); panel3.setBackground(Color.WHITE); JPanel panel4 = new JPanel(new BorderLayout()); panel4.setBackground(Color.WHITE); IconManager im = IconManager.getInstance(); JPanel panel1 = new NorthPanel(serverMessage); panel1.setBackground(Color.WHITE); GridBagConstraints constraints = new GridBagConstraints(); constraints.anchor = GridBagConstraints.NORTH; constraints.fill = GridBagConstraints.BOTH; constraints.gridx = 0; constraints.gridy = 0; constraints.insets.left = 5; ImageIcon icon2 = im.getIcon("start"); JLabel label2 = new JLabel(icon2); panel3.add(label2, constraints); constraints.gridx = 1; constraints.weightx = 1; deinClient = new JLabel(); deinClient.setForeground(APFEL_ROT); panel3.add(deinClient, constraints); constraints.weightx = 0; constraints.gridy++; constraints.insets.left = 15; version = new JLabel(); panel3.add(version, constraints); constraints.gridy++; constraints.insets.left = 15; faq = new JTextPane(); faq.setContentType("text/html"); faq.setEditable(false); faq.setText("<html><a href=\"http://www.applejuicenet.de/13.0.html\">FAQ</a></html>"); panel3.add(faq, constraints); constraints.gridy++; constraints.insets.left = 5; constraints.gridx = 0; ImageIcon icon3 = im.getIcon("warnung"); warnungIcon = new JLabel(icon3); panel3.add(warnungIcon, constraints); constraints.gridx = 1; warnungen = new JLabel(); warnungen.setForeground(APFEL_ROT); panel3.add(warnungen, constraints); constraints.gridy++; constraints.insets.left = 15; firewallWarning = new JLabel(); firewallWarning.setForeground(Color.RED); panel3.add(firewallWarning, constraints); constraints.gridy++; constraints.insets.left = 5; constraints.gridx = 0; ImageIcon icon4 = im.getIcon("netzwerk"); JLabel label4 = new JLabel(icon4); panel3.add(label4, constraints); constraints.gridx = 1; neuigkeiten = new JLabel(); neuigkeiten.setForeground(APFEL_ROT); panel3.add(neuigkeiten, constraints); constraints.gridy++; constraints.insets.left = 15; nachrichten = new JTextPane(); panel3.add(nachrichten, constraints); nachrichten.setEditable(false); constraints.gridy++; constraints.insets.left = 5; constraints.gridx = 0; ImageIcon icon5 = im.getIcon("server"); JLabel label5 = new JLabel(icon5); panel3.add(label5, constraints); constraints.gridx = 1; netzwerk = new JLabel(); netzwerk.setForeground(APFEL_ROT); panel3.add(netzwerk, constraints); constraints.gridy++; constraints.insets.left = 15; verbindungsNachricht = new JLabel(); panel3.add(verbindungsNachricht, constraints); verbindungen = new JLabel(); constraints.gridy++; constraints.insets.top = 5; panel3.add(verbindungen, constraints); constraints.gridy++; status = new JLabel(); panel3.add(status, constraints); constraints.insets.top = 0; add(panel1, BorderLayout.NORTH); panel4.add(panel3, BorderLayout.NORTH); JScrollPane scrollPane = new JScrollPane(panel4); scrollPane.setBorder(null); add(scrollPane, BorderLayout.CENTER); }