not allowing resize of jframe and closing method of jframe

is there a way to remove the top bar of a jframe so that it doesn't show the close, minimize, or maximize/restore buttons?

I have looked over the tutorial and haven't been able to find anything on the web, thought someone could point me in the right direction or with some sample code

Also when i display a jframe, I would like to close it after it's information has been presented. if i use system.exit(1) it closes my entire application, when I only want to close that single jframe. if i do a jframe.dispose() it keeps the jframe running it only hides it. so when i run it again, the same information is posted with the old information.

thanks

Message was edited by:

developprograms

[726 byte] By [developprogramsa] at [2007-11-27 8:27:27]
# 1
frame.setUndecorated(true);Will remove the title bar completelyThe rest, I will leave for someone else to answer.
SomeoneElsea at 2007-7-12 20:17:05 > top of Java-index,Java Essentials,New To Java...