0

lập trình giao diện cho iphone

Lập trình giao diện đồ họa GUI

Lập trình giao diện đồ họa GUI

Kỹ thuật lập trình

... 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ình giao 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...
  • 23
  • 1,098
  • 18
LẬP TRÌNH GIAO DIỆN VỚI AWT

LẬP TRÌNH GIAO DIỆN VỚI AWT

Kỹ thuật lập trình

... 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ÌNH GIAO DIỆ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...
  • 29
  • 1,027
  • 12
Lập trình ứng dụng cho iPhone part 15

Lập trình ứng dụng cho iPhone part 15

Kỹ thuật lập trình

... 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...
  • 18
  • 546
  • 0
JAVA VÀ LẬP TRÌNH GIAO DIỆN BẰNG SWING

JAVA VÀ LẬP TRÌNH GIAO DIỆN BẰNG SWING

Kỹ thuật lập trình

... 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, để giao diệ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...
  • 23
  • 4,104
  • 48
Lập trình ứng dụng cho iPhone part 18

Lập trình ứng dụng cho iPhone part 18

Kỹ thuật lập trình

... 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...
  • 22
  • 407
  • 0
Lập trình ứng dụng cho iPhone part 19

Lập trình ứng dụng cho iPhone part 19

Kỹ thuật lập trình

... 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...
  • 30
  • 621
  • 0
Lập trình ứng dụng cho iPhone part 20

Lập trình ứng dụng cho iPhone part 20

Kỹ thuật lập trình

... 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...
  • 27
  • 485
  • 0
Lập trình ứng dụng cho iPhone part 21

Lập trình ứng dụng cho iPhone part 21

Kỹ thuật lập trình

... 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...
  • 9
  • 382
  • 0
Tài liệu Chương 7: Lập trình giao diện (Advanced Components GUI) ppt

Tài liệu Chương 7: Lập trình giao diện (Advanced Components GUI) ppt

Kỹ thuật lập trình

... );SwingUtilities.updateComponentTreeUI( this ); Nguyễn Đức Hiển – Bài giảng Lập trình Java2Chương 7 Lập trình giao diện (Advanced Components GUI) Nguyễn Đức Hiển – Bài giảng Lập trình Java1Java Object-Oriented ProgrammingGiảng ... Nguyễn Đức Hiển – Bài giảng Lập trình Java9Ví dụ: SliderDemo Nguyễn Đức Hiển – Bài giảng Lập trình Java16Ví dụ: LookFeelDemo.java Nguyễn Đức Hiển – Bài giảng Lập trình Java6Ví dụ: OvalPanel.java ... Nguyễn Đức Hiển – Bài giảng Lập trình Java13Ví dụ: PopupDemo.java Nguyễn Đức Hiển – Bài giảng Lập trình Java17Thanks for listenning!!! Nguyễn Đức Hiển – Bài giảng Lập trình Java12JPopupMenuContext-sensitive...
  • 17
  • 455
  • 1

Xem thêm