... i ch n file:ướ ể ệ ớ ộ ạ ọ1- T o m t đ i t ng JFileChooser: JFileChooser chooser = new JFileChooser();ạ ộ ố ượ2- Đ t th m c cho h p tho i: chooser.setCurrentDirectory(new File("."));ặ ... ọ- b l ng nghe cho nút b m Ok và Cancel.ộ ắ ấchooser = new JColorChooser();dialog = JColorChooser.createDialog(parent,"Background Color", false /* not modal */, chooser, new ActionListener() ... label;122 Đ tài 10. L p trìnhgiao di n đ h a GUIề ậ ệ ồ ọI. Gi i thi u AWT ớ ệAbstract Windows Toolkit – AWT: Là th vi n c a Java cung c p cho l p trình viên cácư ệ ủ ấ ậ gi i pháp giao di n ng i...
... vị trí trên màn hình–Hiểnthị ra màn hỡnhãVớdChoice colors=new Choice( );colors.addItem(Red);colors.addItem(Green); Chương VLẬP TRÌNHGIAODIỆN VỚI AWT X lý cỏc s kin (tt)ã Event Listener ... khỏcã Vớ dtextfields, labels, checkboxes, textareasscrollbars, scrollpanes, dialog Choice ListsãL p Choice cho phộp ta to danh sỏch cú nhiuchnlaã Khi list ctoln utiờn, núckhitolemptyãCỏcbc ... TextFieldãLiukhin text cho phộp hinth text hoc cho user nhpd liu vo.ã Cỏc hm dng:TextField( )TextField(int columns)TextField(String s)TextField(String s, int columns)ã Các phương thức: – setEchoChar(char)–setTest(String...
... runtime. At setup you can choose to create a navigational hierarchy and push a user into it before he or she takes any actions. You can see this in action in vari-ous iPhone programs. Mail always ... dismissModalViewControllerAnimated:YES];You could design your own modal view controllers for when you want to have users make a choice before returning them to their regular program. More commonly, you’ll use picker controllers ... it’s been our main goal to show you all the fun-damentals before we set you lose in the wilds of iPhone programming so that you have the building blocks that you need when you begin programming...
... là:javax.swing.plaf.metal.MetalLookAndFeel (giao diện Java)com.sun.java.swing.plaf.windows.WindowsLookAndFeel (giao diện Windows)com.sun.java.swing.plaf.motif.MotifLookAndFeel (giao diện UNIX)Sau khi set, để giaodiện hiển ... s=(String)e.getItem();Bài 8 - ChoiceChoice myChoice = new Choice();sau đó đưa mục chọn vào Choice như saumyChoice.addItem("Red");myChoice.addItem("Green");myChoice.addItem("Blue");Khi ... nào ra khỏi Choice, ta dùng myChoice.remove(i) với i là thứ tự mục chọnĐể bỏ tất cả mục chọn khỏi Choice, ta dùng myChoice.removeAll()Để chọn mục chọn nào trong Choice, ta dùng muChoice.select(i)Lưu...
... coor-dinate system of the application. In testing, we discovered that when run on an iPhone (but not in the iPhone Sim-ulator) the result could sometimes be out of bounds, so you need to double-check ... F.18.6.2 Vibrating the iPhone There’s another cool little feature that’s implicit in the System Sound Services inter-face: you can use it to vibrate the user’s iPhone. This is done by handing ... You’re placing buttons on the toolbar that call three methods: choosePic:, takePic: (when a camera’s available), and savePic:. choosePic: C and takePic: D are similar methods. Each...
... information you’ll need to access OpenGLthrough the iPhone OS. The iPhone manages OpenGL through EAGL, a class that interfaces between the iPhone s views and OpenGL’s drawing functions. ... how it’s integrated into the iPhone. 19.9 SummaryGraphics are one of the most important elements for making your iPhone projects look great. Not only does the iPhone OS support high-quality ... is a fundamental technology on the iPhone. It’s what manages all the nifty scrolls, pivots, zoom-ins, zoom-outs, and other bits of animation that make up the iPhone user interface. As you’ve...
... your iPhone: ■Ajax—Ajax is something that—as it turns out—you can largely ignore on the iPhone. It’s usually used as part of a client-server setup, with HTML on the front side, but the iPhone ... both iPhone web development and the SDK. There’s a Google Code project that presumes this sort of setup and includes a sophisticated iPhone- side interface for viewing the map. It’s called iPhone ... that slogan to describe the iPhone, one of the newest cutting-edge internet devices. We opened this book by talking about the two different ways that you could write iPhone programs: using web...
... discussion iPhone Atlas http://www.iphoneatlas.com iPhone news blog iPhone Dev Forums http://www.iphonedevforums.com Forums for SDK or web discussion iPhone in Action http://iphoneinaction.manning.com/ ... and iPhone discussionFurbo.org http://furbo.org/ General blog that’s mostly iPhone discussioniDevKit http://idevkit.com/ Forums and news iPhone Dev SDK http://www.iphonedevsdk.com/ Forums iPhone ... Forums iPhone Development http://iphonedevelopment. blogspot.com/Blog with extensive original content iPhone Development Central http://www.iphonedevcen-tral.org/Online iPhone tutorialsLap Cat Software...