Re: Jframe
- From: "Andrew Thompson" <andrewthommo@xxxxxxxxx>
- Date: 31 Mar 2007 02:06:38 -0700
On Mar 31, 6:13 pm, "Francois Lionet" <flio...@xxxxxxxxxx> wrote:
....
In my application, I open a JFrame, and I need this frame to be
caption-less. Can someone tell me how to get rid of the title bar and the
border?
<sscce>
import javax.swing.*;
class UndecoratedFrame {
public static void main(String[] args) {
JFrame f = new JFrame();
f.setUndecorated(true);
f.getContentPane().add(
new JLabel("How do you close me?"));
f.pack();
f.setLocationRelativeTo(null);
f.setVisible(true);
}
}
</sscce>
Andrew T.
.
- References:
- Jframe
- From: Francois Lionet
- Jframe
- Prev by Date: Re: About JTextPane, Why "Not equal" ?
- Next by Date: Re: About JTextPane, Why "Not equal" ?
- Previous by thread: Jframe
- Next by thread: Re: Jframe
- Index(es):
Relevant Pages
|