🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.java
Article #154080

Jakiego layoutu użyć?

#154080
From: Borneq
Date: Mon, 14 Jul 2014 07:24
15 lines
1386 bytes
Chciałbym mieć tak jak w Delphi - formę, na niej w pewnym miejscu 
button, gdzie indziej pole tekstowe. Użyłem BoxLayout:
		button = new JButton();
		panel = new JPanel();
		panel.setLayout(new BoxLayout(panel, BoxLayout.PAGE_AXIS));
		this.add(panel);
		button.setSize(new Dimension(100,100)); //to nic nie robi
		button.setText("Test");
		panel.add(button);
		textArea = new JTextArea();
		panel.add(textArea);
		panel.setBorder(BorderFactory.createEmptyBorder(0, 10, 10, 10));

Mam u góry po lewo button, resztę zajmuje pole tekstowe, jednak gdy coś 
piszę, to button się przesuwa.
Technical Details
Message-ID: <lq00j8$tcp$1@node2.news.atman.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
From: Borneq <borneq@antyspam.hidden.pl>
Newsgroups: pl.comp.lang.java
Subject: Jakiego layoutu użyć?
Date: Mon, 14 Jul 2014 09:24:22 +0200
Organization: ATMAN - ATM S.A.
Lines: 15
Message-ID: <lq00j8$tcp$1@node2.news.atman.pl>
NNTP-Posting-Host: 91.239.205.62
Mime-Version: 1.0
X-Trace: node2.news.atman.pl 1405322664 30105 91.239.205.62 (14 Jul 2014 07:24:24 GMT)
X-Complaints-To: usenet@atman.pl
NNTP-Posting-Date: Mon, 14 Jul 2014 07:24:24 +0000 (UTC)
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit