<div>대여 관리 프로그램...</div> <div>도전중입니당 ㅜㅜ</div> <div>자바랑 MySQL이랑 같이 해서 만들어보려고 발악하고 있는데...</div> <div>어렵네요...</div> <div> </div> <div>특히 레이아웃을 잘 모르겠어요 ㅜㅜ 아오...</div> <div>예를 들어서...</div> <div>밑에 코드에서 TextField tf 의 크기를 지정해주고 싶은데요</div> <div>안되요 ㅜㅜ</div> <div>setLayout(null) 해서 위치랑 크기랑 하나하나 다 지정해주는 수밖에 없나요? ㅜㅜ</div> <div> </div> <div><span style="color: blue">import</span> java.awt.*; <br /><span style="color: blue">import</span> java.awt.event.*; <br /><br /><span style="color: blue">public</span> <span style="color: blue">class</span> Test2 <span style="color: blue">extends</span> Frame { <br /> Panel p; <span style="color: green">// 밑에 있는 것들(label, tf, b)을 함께 담을 패널</span> <br /> Label label; <br /> TextField tf; <br /> Button b; <br /><br /> <span style="color: green">// 생성자</span> <br /> Test2(String title) { <br /> <span style="color: blue">super</span>(title); <br /> addWindowListener(<span style="color: blue">new</span> WindowAdapter() { <br /> <span style="color: blue">public</span> <span style="color: blue">void</span> windowClosing(WindowEvent we) { <br /> System.exit(<span style="color: maroon">0</span>); <br /> } <br /> }); <br /> <br /> p = <span style="color: blue">new</span> Panel(); <br /> p.setSize(<span style="color: maroon">300</span>, <span style="color: maroon">90</span>); <br /> label = <span style="color: blue">new</span> Label(<span style="color: maroon">"제목"</span>); <br /> tf = <span style="color: blue">new</span> TextField(); <br /> b = <span style="color: blue">new</span> Button(<span style="color: maroon">"제출"</span>); <br /> p.add(label); <br /> p.add(tf); <br /> p.add(b); <br /> tf.setSize(<span style="color: maroon">200</span>, <span style="color: maroon">30</span>); <span style="color: green">// 이게 적용이 안되요 ㅜㅜ</span> <br /> <br /> add(p); <br /> setBounds(<span style="color: maroon">200</span>, <span style="color: maroon">100</span>, <span style="color: maroon">400</span>, <span style="color: maroon">200</span>); <br /> setVisible(<span style="color: maroon">true</span>); <br /> } <br /> <br /> <span style="color: blue">public</span> <span style="color: blue">static</span> <span style="color: blue">void</span> main(String[] args) { <br /> <span style="color: blue">new</span> Test2(<span style="color: maroon">"Test"</span>); <br /> } <br /> }</div>
<a href="http://blog.naver.com/finalboogi">
<img src="http://thimg.todayhumor.co.kr/upfile/201312/1387637645G9UumBQ6ZyDeaNnTpq.jpg"></a>
<style>#okNokBookDiv img{content:url("http://thimg.todayhumor.co.kr/upfile/201312/1387635212a6x9jURsp.jpg");}#okNokBookDiv img:nth-child(2){content:url("http://thimg.todayhumor.co.kr/upfile/201312/1387635212a6x9jURsp.jpg");}#okNokBookDiv a img{content:url("http://thimg.todayhumor.co.kr/upfile/201312/1387635212a6x9jURsp.jpg");}</style>
<STYLE>#login_span span b a:before{content: "글냥이의 사역마 ";}#memo_insert_ div b:before{content: "글냥이의 사역마 ";}</STYLE>
<style>textarea{background:url(http://thimg.todayhumor.co.kr/upfile/201401/1388604479R9q6U8rB8uCQHJVyexn6.png);background-position:bottom right;}</style>
댓글 분란 또는 분쟁 때문에 전체 댓글이 블라인드 처리되었습니다.