A bunch of GUI examples you can clone.

Created by kenwebb on June 16, 2010. Derived from Simple GUI Examples. Votes: 99 Views: 749 Vote for this app. Tags: gui swing orange

Each subtree on this page is an independent GUI piece that you can copy, edit, and paste into your app.

Simple JFrame

Created by kenwebb on June 16, 2010. Derived from Simpler JFrame. Votes: 12 Vote for this subtree. Tags: button

This is a simple Swing JFrame with a JButton inside a JPanel.

<JFrame Title="A small JFrame">
  <JPanel PreferredSize="Dimension,200,200" Background="ORANGE">
    <JButton Text="Mars" ToolTipText="This is a Martian button." ActionCommand="onToMars"/>
  </JPanel>
</JFrame>

Tic Tac Toe GUI

Created by kenwebb on June 16, 2010. Votes: 13 Vote for this subtree. Tags: games

This is a GUI for a game of tic tac toe.

<?xml version="1.0" encoding="UTF-8"?>
<JFrame Title="Xholon meTTTa" DefaultCloseOperation="2"> <!-- 2 3 -->
  <JPanel>
    <JPanel Background="0xF0F0F0">
      <GridLayout Rows="3" Columns="3"/>
      <!-- row 1 -->
      <JButton ActionCommand="select0"/>
      <JButton ActionCommand="select1"/>
      <JButton ActionCommand="select2"/>
      <!-- row 2 -->
      <JButton ActionCommand="select3"/>
      <JButton ActionCommand="select4"/>
      <JButton ActionCommand="select5"/>
      <!-- row 3 -->
      <JButton ActionCommand="select6"/>
      <JButton ActionCommand="select7"/>
      <JButton ActionCommand="select8"/>
    </JPanel>
    <VBox>
      <JButton Text="New Game" ActionCommand="newgame"/>
      <Strut Height="10"/>
      <JButton Text="Computer First" ActionCommand="computerfirst"/>
    </VBox>
  </JPanel>
</JFrame>

Add a new subtree to this app

If you were logged in, you could add a new subtree to this app. You will be asked to enter a name, a description, and the XML content.

Comments

These are kickass GUI examples! licorice

I agree with most of what you're saying, but you might want to have a look at the "GUIs for Vitriolic Anticipations in the Sixth Temporal Dimension" paper by Prof. I. M. Gzorninplats at Highbrow University. imnotgzorn

If you were logged in, you could add a comment.