TAILIEUCHUNG - Intro to Java Programming phần 10

Bây giờ, đó chúng tôi có hoàn thành tất cả các mã cho hướng dẫn của chúng tôi, đó là thời gian để cấu hình các dự án của chúng tôi để sử dụng các nguồn lực cần thiết cho các ứng dụng hình ảnh của chúng tôi. | Intro to Java Programming - Step 11 Apple Developer Connection Technical Java Membership Technical Business An Introduction to Java Programming Previous Section Table of Contents Next Section Step 11 - Adding the Image Resources Now that we have completed all of the code for our tutorial it is time to configure our project to use the image resources needed for our application. As you can see from the picture right our project has all of the images used by our image buttons directly added to the project in an images group. This was accomplished by dragging the images folder from the Finder into the project window. When you have an application that uses image resources and you want them bundled in to your application it is a good idea to add them to your project. Once these resources are part of your project you can select all of the images and then click on the project inspector button in the project window so that you can tell CodeWarrior to copy the image files directly into the output file for the application. The project inspector dialog is shown in the image below. For image files you will need to click the checkbox Merge Into Output. This tells CodeWarrior that you want to copy the image file into the jar that is output when you build the application. This is a much more desirable approach then having a folder of images used by your application that the user could muck with an image editing tool or move out from under Intro to Java Programming - Step 11 your application. The project associated with this tutorial should already be set up so that all of the image files will be merged into the output file. This is mentioned primarily for future reference. If you do not perform this step the SlideShow application will not be able to find the image files when it looks for them. Now that we have our image resources configured close the inspector windows. Back to top Previous Section Table of Contents Next Section Search Shortcut Search Tips Site Map Extended Index .

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.