Join Todd Perkins for an in-depth discussion in this video Connecting swing elements to code, part of Eclipse Essential Training.
- Now we'll connect our Swing objects to code.…I'm working in the SwingCode project right now,…which is actually just a copy of the project…that we were finishing on in the last movie.…So if you're following along,…you can just use that same project…that you've been working in.…So we need a couple things here:…we need to make sure that we know…the variable name of our combo box,…and we need to control what code happens…when you click the button.…
So our goal is to show what item is selected…when that button is clicked.…So I have the combo box selected now,…and inside of the properties area…I can see that the variable name is comboBox.…What we want to do is make sure that…this is a field variable and not a local variable.…So if you hover over the icon in the properties view…that has a red square with an arrow…going out to a green diamond,…that is the option that converts…a local variable to a field variable,…so you want to click that.…
And then we want to see what happens…when we click the button.…So if you select the button,…
- What is Eclipse?
- Setting up a workspace
- Adding external files to a project
- Installing add-ons
- Refactoring code
- Working with tasks
- Customizing formatting
- Using Git for version control
- Developing Java, PHP, C/C++, Perl, and Python apps with Eclipse
- Setting up testing servers
- Testing apps
- Debugging apps
Skill Level Beginner
1. Introduction to Eclipse
2. Working with Code
3. Using Git for Version Control
4. Using Eclipse for Java Development
5. Using Eclipse for PHP Development
6. Using Eclipse for C/C++ Development
7. Using Eclipse for Perl Development
8. Using Eclipse for Python Development
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.