[Question]
  [
Create a window that says hello world inside and nothing else. You can not have any ok or cancel buttons inside. It must be just a plain window that says hello world. I do not care about the contents of the window frame or how the window looks, but inside it must say hello world only.
Example:  
![enter image description here](https://i.stack.imgur.com/2W7co.png)
**Shortest code wins.**
EDIT: I am sorry Johannes Kuhn the window has to actually stay there, it may not close right away. I didn't think of this scenario and as such didn't account for this.
EDIT 2: We currently have 3 tied answers (20 characters). Any suggestions of who should be the winner is welcome.
  
[Answer]
## Windows Command Prompt, 26
```
echo Hello World>.hta&.hta
```
![enter image description here](https://i.stack.imgur.com/ISJBE.png)
[Answer]
# R, 23
```
plot(1,m="Hello World")
```
This opens a plot window.
[Answer]
## Dyalog APL (20)
```
⎕SM←'Hello World'1 1
```
Picture:
![Picture](https://i.stack.imgur.com/Z8G55.png)
[Answer]
### bash ~~20~~ 19 chars
Thanks @manatwork for the useless space after `-p`!
```
read -pHello\ World
```
In action:
```
echo 'read -pHello\ World' >/tmp/helloworld.sh
chmod +x /tmp/helloworld.sh
```
Than double click from file manager:
![enter image description here](https://i.stack.imgur.com/XByY5.png)
And see:
![enter image description here](https://i.stack.imgur.com/1Uf9y.png)
Having [bash](/questions/tagged/bash "show questions tagged 'bash'") as default shell.
### ~~19~~ 16
As question stand for *only Hello World* and *Nothing else*, *the window have to stay* but nothing like *print text only once* or so on, I think this match requirement too!
```
yes Hello\ World
```
There is only 16 chars. 
```
echo >/tmp/helloworld.sh 'yes Hello\ World'
```
With same procedure this give:
![enter image description here](https://i.stack.imgur.com/m5NYF.png)
[Answer]
### HTML (kinda), 17
```
data:,Hello World
```
Paste that into your browser's address bar.
### Javascript, 25
```
open("data:,Hello World")
```
This uses your browser's `window.open` and a data uri.
A Data URIs's mime-type and charset default to `text/plain;charset=US-ASCII` when omitted.
### Javascript, 19
```
eval($("s").text())
```
This one only works when this answer is the top (or accepted) answer and it is run on THIS stackoverflow page (via your JavaScript console). :-)
~~open("data:,Hello World");~~
[Answer]
## Powershell, 23
```
'Hello World'>.hta;.hta
```
![enter image description here](https://i.stack.imgur.com/r3B7J.png)
[Answer]
# Matlab, 30 27 20
```
title('Hello World')
```
Are plot windows allowed? It does not have any buttons inside.
[Answer]
# Java, 117 chars
```
import java.awt.*;class C{public static void main(String[]a){new Frame(){{add(new Label("Hello World"));show();}};}}
```
With formatting:
```
import java.awt.*;
class C {
    public static void main(String[] a) {
        new Frame() {
            {
                add(new Label("Hello World"));
                show();
            }
        };
    }
}
```
We can avoid having to explicitly declare a variable by using [initializer blocks](http://docs.oracle.com/javase/tutorial/java/javaOO/initial.html) inside an anonymous subclass of Frame. Interestingly, using awt, it's just as many characters to `import java.awt.*;` as it is to just fully qualify both classnames.
[Answer]
# Mathematica ~~29 27~~ 25
With 1 byte saved thanks to CatsAreFluffy.
```
DialogInput@"hello world"
```
![hello world](https://i.stack.imgur.com/hk57q.png)
[Answer]
# Shell, 32
```
xmessage -buttons '' Hello World
```
[Answer]
# Ruby with [Shoes](http://shoesrb.com/), 28
```
Shoes.app{para'Hello World'}
```
Result:
![screenshot](https://i.stack.imgur.com/TvR8G.png)
[Answer]
# Rebol 2, 29
```
view layout[txt{Hello World}]
```
![enter image description here](https://i.stack.imgur.com/GJyeb.png)
[Answer]
# Python 2/3, 54 characters
Capitalize the t in tkinter to make it work on Python 2.
```
__import__("tkinter").Label(text="Hello World").pack()
```
[Answer]
## Windows Batch, 23
```
@pause|echo Hello World
```
* Opens a black window that shows `Hello World`, nothing else.
* Now the windows stays open
* There are no buttons in the window.
[Answer]
### ExtJS (Javascript) 44
```
new Ext.Window({html:'Hello world',}).show()
```
```
new Ext.Window({html:'Hello world',}).show()
```
```
<link rel="stylesheet" type="text/css"
  href="http://dev.sencha.com/deploy/dev/resources/css/ext-all.css"/>
<script type='text/javascript'
  src="http://dev.sencha.com/deploy/dev/adapter/ext/ext-base.js"></script>
<script type='text/javascript'
  src="http://dev.sencha.com/deploy/dev/ext-all.js"></script>
```
[Answer]
## Processing, 23
Based on my answer here: [Make a PNG image with "Hello World!" with programming APIs, in the shortest code possible](https://codegolf.stackexchange.com/questions/19801/make-a-png-image-with-hello-world-with-programming-apis-in-the-shortest-code/19856#19856)
```
text("HeΠo World!",9,8);
```
![enter image description here](https://i.stack.imgur.com/11AqF.png)
---
24 char non-cheating solution:
```
text("Hello World!",9,9);
```
![enter image description here](https://i.stack.imgur.com/oxVAX.png)
[Answer]
## Tcl/Tk, 34
```
pack [label .l -text Hello\ World]
```
[Answer]
# **AutoHotkey, 26**
```
GUI,Add,Text,,Hello World!
```
[Answer]
**AutoIt v3, 32**
```
ToolTip("Hello World")
Sleep(9^9)
```
[Answer]
# HTML, 11
```
Hello World
```
Screenshot:
![HTML Hello World](https://i.stack.imgur.com/TzLgF.png)
I guess this shouldn't count, but I think it would be interesting to see such an answer here.
[Answer]
## PowerShell: 162 124 114 or 20
---
## The Long Way Around
```
($t=($a='New-Object Windows.Forms')+".Label"|iex).Text='Hello World';($x=iex $a".Form").Controls.Add($t);$x.Show()
```
Since PowerShell really doesn't have any built-in GUI functionality, I'm having a hard time coming up with anything shorter than this which I feel really fits the original spirit of the challenge. (Or, at least, fits within the parameters several of us have assumed were implied.)
![enter image description here](https://i.stack.imgur.com/m3Nrv.jpg)
> 
> **Changes from original:** 
> 
> 
> * Removed window size definition. Apparently, it's optional and the default is plenty large enough.
> * Incorporated changes provided by SpellingD in comments. **Note: The window which spawns will hang - you'll need to kill PowerShell via Task Manager.**
> 
> 
> 
---
## Alternative 20-Character Approach
Removing some assumed-implied requirements, we can also meet this challenge a-la [Johannes Kuhn](https://codegolf.stackexchange.com/a/15427/9387) with this:
```
'Hello World';for(){}
```
Save as a .ps1 file. Make sure the system's ExecutionPolicy allows unsigned scripts. Right-click and select "Run with PowerShell".
![enter image description here](https://i.stack.imgur.com/dSR2E.jpg)
[Answer]
# Factor, 36 code + 23 imports = 59
```
USING: ui ui.gadgets ; "Hello World" <label> "" open-window
```
When this is run inside the listener, the imports will be brought in automatically. You only need them to deploy a standalone executable.
[Answer]
## Groovy, 68 27
Using console.
```
print"Hello World";for(;;);
```
Using Frame.
```
new java.awt.Frame(){{add new java.awt.Label("Hello World")}}.show()
```
Inspired by @swilliams Java answer.
[Answer]
# Processing, 37 chars:
```
void draw(){text("Hello World",0,9);}
```
Various things used to reduce strokes:
* Sketch window is spawned by default; no need to manually create it
* Using `draw` is shorter than `setup` (although the text is then redrawn each frame)
* Uses default size, background, fill, font, and font size
* You don't actually need all 10 pixels height for the text
[Answer]
**Bash** (36 chars)
`xmessage -buttons "" "Hello World!"`
Looks like crap, but works as requested.
![enter image description here](https://i.stack.imgur.com/69Fa4.png)
[Answer]
# Ghostscript 50
```
0 0 moveto/Courier 20 selectfont(Hello World)show
```
Could make it 49 by using a 9-point font, but it's a little hard to read.
Can make a smaller window by invoking gs with a geometry argument for an additional 8 chars.
```
gs -g200x30 hello.ps
```
[Answer]
# C#, 72
```
class P{static int Main(){System.Console.Write("hello world");for(;;);}}
```
Based on the answer by @Noctis. I would have suggested it as a comment if I had enough Rep.
[Answer]
## Delphi - 73 62
```
uses Dialogs;begin MessageDlg('Hello World',mtCustom,[],0)end.
```
Edit after @manatwork and @Gareth 's suggestions. Which actually brings me to a character count of 62.
[Answer]
# Shell script: 56 character
```
convert -size 99x9 xc: -draw 'text 0,10 Hello\ World' x:
```
Sample output:
![Hello World](https://i.stack.imgur.com/pgV2l.png)
[Answer]
## Ti84-Basic, 25
```
ClrHome
Disp "HELLO WORLD
```
## Arduino, 27
```
Serial.print("Hello World")
```
Place this in `void setup()`
## Game Maker Language, 40
```
show_message_ext("Hello World","","","")
```
I'm pretty sure this is the shortest way without adding any extension packages.
]