I am having trouble making my Text Panel appear. Is there trouble with the Layout? I am unsure about how to implement a proper FlowLayout in Jython.



Thanks,
Joe


#!/usr/bin/env jython

# Created by Joe Castleberry
# 2013

# Imports
from javax.swing import *
from java.awt import *

class Window:
def __init__(self):
# Global variables
global frame
global label
global container
global text

# Definition of global variables
frame = JFrame("Joe's first Java program")
label = JLabel("Hello World!", JLabel.CENTER)
container = JPanel()
text = JTextField(10)

def builder(self):
# Building container
container.setLayout(None)
container.setBackground(Color.BLACK)

# Building frame
frame.getContentPane().add(container) # Adding Container to JFrame
frame.setSize(300,300)
frame.setVisible(True)
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOS E)

# Adding components to container
container.add(text)

# public static void Main(String args[]){

a = Window()
a.builder()

# }