TAILIEUCHUNG - Advanced Java 2 Platform HOW TO PROGRAM phần 3

Trong ví dụ này, các thông số ID là tất cả các số nguyên và các dữ liệu còn lại được tất cả các chuỗi, vì vậy chương trình sử dụng phương pháp setInt và setString để xác định các thông số. Sau khi thiết lập các thông số cho một PreparedStatement cụ thể, | 312 Case Study Java 2D GUI Application with Design Patterns Chapter 5 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 fileMenu helpMenu set Frame s JMenuBar setJMenuBar menuBar create application JToolBar toolBar new JToolBar disable JToolBar floating false add New Drawing and Open Drawing actions to JToolBar newAction openAction add Exit action to JToolBar exitAction add About action to JToolBar aboutAction add toolBar and desktopPane to ContentPane getContentPane .add toolBar getContentPane .add desktopPane add WindowListener for windowClosing event addWindowListener new WindowAdapter public void windowClosing WindowEvent event exitApplication wait for SplashScreen to go away while try 10 handle exception catch InterruptedException interruptedException Fig. DeitelDrawing application that uses a multiple-document interface for displaying and modifying DeitelDrawing drawings part 4 of 8 . Chapter 5 Case Study Java 2D GUI Application with Design Patterns 313 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 set initial JFrame size setSize 640 480 position application window centerWindowOnScreen make application visible setVisible true create new empty drawing window createNewWindow end DeitelDrawing constructor create new DrawingInternalFrame private DrawingInternalFrame createNewWindow create new DrawingInternalFrame DrawingInternalFrame frame new DrawingInternalFrame Untitled Drawing add listener for .

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.