Test: Unterschied zwischen den Versionen

Aus Byte-Welt Wiki
Zur Navigation springenZur Suche springen
 
K (japi)
 
(18 dazwischenliegende Versionen von 7 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
<math>a\sqrt{a}</math>Code funktioniert mit &lt;code=blup&gt;&lt;/code=blup&gt; :) Und er verzieht nicht das Layout :D
+
=tagcloud=
 +
<tagcloud>
 +
</tagcloud>
  
<code=csharp>
+
 
using System.Runtime.InteropServices;
+
=code=php=
using System;
+
<code=php>!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de" dir="ltr">
public class Blupp
+
<head>
 +
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 +
<meta name="generator" content="MediaWiki 1.13.2" />
 +
</code=php>
 +
 
 +
 
 +
Lalilu<ref>holla die waldfee</ref><br>
 +
und noch<ref>eagleeye ist d00f</ref>
 +
 
 +
=rechnen=
 +
was 17 + 25 ergibt: {{ #expr: 17 + 25 }}<br>
 +
Jetzt ist {{ #time: j.n.y, G:i:s }}
 +
 
 +
 
 +
=java=
 +
<code=Java5>
 +
class RepaintCatcher extends JComponent
 
{
 
{
    [DllImport("user32", CharSet = CharSet.Auto)]
+
  public RepaintCatcher (JLabel label)
    public static extern bool EnumWindows(EnumWindowsProc lpEnumFunc, int lParam);
+
  {
    [DllImport("user32", CharSet = CharSet.Auto)]
+
     label.setLayout(new BorderLayout());
    public static extern bool IsWindowVisible(IntPtr hwnd);
+
    label.add(this);
     [DllImport("user32", CharSet = CharSet.Auto)]
+
    this.setOpaque(false);
    public static extern bool SetWindowText(IntPtr hWnd, string lpString);
+
  }
    public static void Main(string[] args)
+
  @Override
    {
+
  public void paint(Graphics blup)
        bool b = EnumWindows(new EnumWindowsProc(EnumWindowsImpl), 34);
+
  {
        System.Console.WriteLine(b);
+
    super.paint(blup);
        Environment.Exit(0);
+
    System.out.println("Roar darf die nächste Frage stellen :)");
    }
+
  }
    public delegate bool EnumWindowsProc (IntPtr hwnd, int lParam);
 
    public static bool EnumWindowsImpl(IntPtr hwnd, int lParam)
 
    {
 
    if(IsWindowVisible (hwnd)){
 
    SetWindowText (hwnd, "Illuvatar hax0rs da w0rld!!!11einself");
 
    }
 
        return true;
 
    }
 
 
}
 
}
</code=csharp>
+
</code=Java5>
 +
 
 +
=tex=
 +
sa
 +
<math>\sqrt{(qweas^a)}d</math>
 +
<math>\sqrt{(qwe^a)}f</math>
 +
<table border="1">
 +
<tr><td>test</td><td>ttt</td></tr>
 +
<tr><td colspan="2">test2</td></tr>
 +
</table>
 +
 
 +
<references/>
  
== Test von &lt;code&gt;&lt;/code&gt; ==
+
=JAPI=
 +
{{JAPI|String}}
  
<code>
+
[[Kategorie:Byte-Welt]]
import java.awt.BorderLayout;
 
import java.awt.Color;
 
import java.awt.GridBagConstraints;
 
import java.awt.GridBagLayout;
 
import java.awt.Insets;
 
import java.awt.event.ActionEvent;
 
import java.awt.event.ActionListener;
 
import java.util.Vector;
 
 
import javax.swing.JButton;
 
import javax.swing.JFrame;
 
import javax.swing.JLabel;
 
import javax.swing.JPanel;
 
import javax.swing.JTextField;
 
 
 
public class InstallView extends JFrame
 
{
 
  private Vector<String> infos = new WinInstallTime().getInfos();
 
  private JPanel infoPanel = new JPanel();
 
  private GridBagLayout gbl = new GridBagLayout();
 
  private GridBagConstraints gbc = new GridBagConstraints();
 
  private JLabel osname = new JLabel("OS Name:");
 
  private JTextField nameTF = new JTextField();
 
  private JLabel osarch = new JLabel("OS Arch:");
 
  private JTextField archTF = new JTextField();
 
  private JLabel osversion = new JLabel("OS Version:");
 
  private JTextField versionTF = new JTextField();
 
  private JLabel installDate = new JLabel();
 
  private JTextField dateTF = new JTextField();
 
  private JLabel installTime = new JLabel();
 
  private JTextField timeTF = new JTextField();
 
  private JButton exit = new JButton("Ok Danke...");
 
  public InstallView()
 
  {
 
      infoPanel.setLayout(gbl);
 
      gbc.fill = GridBagConstraints.BOTH;
 
      gbc.insets = new Insets(2, 2, 2, 2);
 
     
 
     
 
      // OS.NAME
 
      gbc.gridx = 0;
 
      gbc.gridy = 0;
 
      gbc.weightx = 0;
 
      gbl.setConstraints(osname, gbc);
 
      infoPanel.add(osname);
 
     
 
      gbc.gridx = 1;
 
      gbc.gridy = 0;
 
      gbc.gridwidth = 2;
 
      gbc.gridheight = 1;
 
      gbc.weightx = 1.0;
 
      gbl.setConstraints(nameTF, gbc);
 
      infoPanel.add(nameTF);
 
     
 
      // OS.ARCH
 
      gbc.gridx = 2;
 
      gbc.gridy = 0;
 
      gbc.weightx = 0;
 
      gbl.setConstraints(osarch, gbc);
 
      infoPanel.add(osarch);
 
     
 
      gbc.gridx = 3;
 
      gbc.gridy = 0;
 
      gbc.gridwidth = 2;
 
      gbc.gridheight = 1;
 
      gbc.weightx = 1.0;
 
      gbl.setConstraints(archTF, gbc);
 
      infoPanel.add(archTF);
 
     
 
      // OS.VRSION
 
      gbc.gridx = 4;
 
      gbc.gridy = 0;
 
      gbc.weightx = 0;
 
      gbl.setConstraints(osversion, gbc);
 
      infoPanel.add(osversion);
 
     
 
      gbc.gridx = 5;
 
      gbc.gridy = 0;
 
      gbc.gridwidth = 2;
 
      gbc.gridheight = 1;
 
      gbc.weightx = 1.0;
 
      gbl.setConstraints(versionTF, gbc);
 
      infoPanel.add(versionTF);
 
     
 
      add(infoPanel, BorderLayout.CENTER);
 
      exit.addActionListener(new ActionListener() {
 
        public void actionPerformed(ActionEvent e)
 
        {
 
            InstallView.this.dispose();
 
        }
 
      });
 
      add(exit, BorderLayout.SOUTH);
 
     
 
      setTitle("Ein paar Windows Infos");
 
      setSize(400, 300); setResizable(false);
 
      setLocationRelativeTo(null);
 
      setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
 
      setVisible(true);
 
  }
 
  public static void main(String[] args)
 
  {
 
      new InstallView();
 
  }
 
 
}
 
</code>
 
[[Kategorie:Sonstiges]]
 

Aktuelle Version vom 27. April 2014, 19:05 Uhr

tagcloud

.NET  .NET Compact Framework  .NET Framework  ATM  AWT  Abkürzungen  Algorithmentheorie  Android  Aussagenlogik  Authentifizierungsprotokolle  Automaten und formale Sprachen  Bash  Bearbeitungsvorlagen  Begriffserklärung  Begriffsklärung  Betriebssysteme  Byte-Welt  C  C++  CI  CMS  CSS  CSharp  CSharp-Codeschnipsel  Challenge Response Protokolle  Codeschnipsel  Compilerbau  Copyright Vorlagen  Cpp  Creational Pattern  DI Google Guice  Datenbanken  Datenformate  Debian  Design Pattern  Design Patterns  Diagnose  Distanzvektorprotokoll  Domino  Eclipse  Entwicklungs-/Laufzeitumgebungen  Falsch  Framework  GUI-Frameworks  Gang of Four Pattern  Gentoo  Google  Graphentheorie  HTML  Handy  Hardware  IDE  IGP  IOS  In Arbeit  Informationsrecherche  IntelliJ  JNI  JSP  JTable  Java  Java-Codeschnipsel  JavaFX  JavaScript  JavaScript-Codeschnipsel  Java 2D  Java API  Java Applets  Java Grundlagen  Java Verschiedenes  Kryptographische Protokolle  Künstliche Intelligenz  LaTeX  LayoutManager  Link-State-Protokoll  Linux  Listen  Lizenzen  Lotus  LotusScript  MSSQL  Mac  Mango (WP7)  Mathematik  Mobile Development  Mobile Entwicklung  Mono  Monodroid  MySQL  Netbeans  Netzwerk  Nextcloud  Notebook  OSI-Schicht 2  OSI-Schicht 3  OSI-Schicht 5  Objective-C  ObjectiveC  Objective C  Optimierung  Oracle  Owncloud  PHP  PHP-Codeschnipsel  Portage  PostgreSQL  Probleme  Programmiersprachen  Programmierung  Programmierung Grundlagen  Protokolle  Raspberry Pi  Red Hat  Routing Protokoll  SQL  SSO  Schlüsselaustausch Protokolle  Security  Seiten mit Syntaxhervorhebungsfehlern  Seiten mit defekten Dateilinks  Server  Sicherheit  Sicherheitslücken  Sicherheitsprotokolle  Silverlight  Software  Software Entwicklung  Softwareentwicklung  Sonstiges  Spring  Suchalgorithmus  Swing  Technik  Theoretische Informatik  Troubleshooting  Tutorials  Tutorials (.NET)  Tutorials (C)  Tutorials (CSharp)  Tutorials (Datenbanken)  Tutorials (Java)  Tutorials (Linux)  Tutorials (Mailserver)  Tutorials (SQL)  Tutorials (Ubuntu)  Ubuntu  Unix  Unvollständig  Visual Studio  Vorlagen  Windows  Windows CE  Windows Mobile  Windows Phone  Windows Phone 7  Windows Phone 8  Xcode 


code=php

<code=php>!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de" dir="ltr"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="generator" content="MediaWiki 1.13.2" /> </code=php>


Lalilu[1]
und noch[2]

rechnen

was 17 + 25 ergibt: 42
Jetzt ist 14.5.24, 12:55:11


java

<code=Java5> class RepaintCatcher extends JComponent {

 public RepaintCatcher (JLabel label)
 {
   label.setLayout(new BorderLayout());
   label.add(this);
   this.setOpaque(false);
 }
 @Override
 public void paint(Graphics blup)
 {
   super.paint(blup);
   System.out.println("Roar darf die nächste Frage stellen :)");
 }

} </code=Java5>

tex

sa <math>\sqrt{(qweas^a)}d</math> <math>\sqrt{(qwe^a)}f</math>

testttt
test2
  1. holla die waldfee
  2. eagleeye ist d00f

JAPI

String