본문 바로가기
728x90

콤퓨타/JAVA15

[GUI] mysql에서 데이터를 가져와서 table에 뿌리기 static String clname[] = {"No", "이름", "가격", "컨셉", "스타일", "국내/해외"}; static DefaultTableModel model = new DefaultTableModel(clname, 0);public static javax.swing.JTable resTable;resTable = new javax.swing.JTable(model); private static void getQueryTest() { Connection con = getConnection(); PreparedStatement pstmt = null; ResultSet rs; String sql = "select * from travel_db"; try { pstmt = con.prepar.. 2013. 2. 20.
[GUI] Panel에 이미지 띄우기 Image img;Panel image = new Panel(); img = loadImage("abc.JPG"); image.getGraphics().drawImage(img, 0, 0, image.getWidth(), image.getHeight(), image); private Image loadImage(String name) { Image result = null; MediaTracker tracker = new MediaTracker(this); Toolkit toolkit = Toolkit.getDefaultToolkit(); result = toolkit.getImage(name); tracker.addImage(result, 0); try { tracker.waitForAll(); } c.. 2013. 2. 20.
NetBeans 7.0 and 7.1 UML plugin NetBeans 7.0 and 7.1 UML plugin If you are using NetBeans 7.0 or 7.1, you probably can't find your UML plugin any more in the default repository. From what I can read on the net, the team is working on the plugin rewriting it, and this will take a while. Semi-broken solutionThere is another way to install it, but beware, the plugin will be semi-broken, so jump down to another solution if you lik.. 2013. 2. 20.
자바 디컴파일러 걍 압축 풀어서 실행시킨다음에, .class파일을 열어주면 저절로 디컴파일 된다. ㅋㅋㅋㅋ 2013. 2. 20.
728x90