Quantcast
Channel: Programmers Heaven Forums RSS Feed
Viewing all articles
Browse latest Browse all 2703

Java and Flickr - Help with Inheritance between Main Class and sub-cla

$
0
0
Dear all,

I have been doing a small program which can help user search general photos by keywords and can retrieve most recent general uploads from Flickr.

I created 4 classes:

testUserInterface => to build all components for interface.

Link to view my code of testUserInterface

[QUOTE][highlight][URL=https://www.dropbox.com/s/j q4g4pe32fkr3og/testUserInterface.java]https://www. dropbox.com/s/jq4g4pe32fkr3og/testUserInterface.ja va[/url] [/highlight][/quote]

testSearch => inherits interface from testUserInterface and build event action when user clicks on button start and button exit.

Link to view my code of testSearch

[QUOTE][URL=https://www.dropbox.com/s/0vz2k9fcuo2k h2y/testSearch.java]https://www.dropbox.com/s/0vz2 k9fcuo2kh2y/testSearch.java[/url] [/quote]

PhotoFinder => get connection to Flickr.

Link to view my code of PhotoFinder

[QUOTE][URL=https://www.dropbox.com/s/715u81j3yvpj eqv/PhotoFinder.java]https://www.dropbox.com/s/715 u81j3yvpjeqv/PhotoFinder.java[/url] [/quote]

PhotoPanel => displays photos on this panel.

Link to view my code of PhotoPanel

[QUOTE][URL=https://www.dropbox.com/s/tc9l7nwx5snw 0go/PhotoPanel.java]https://www.dropbox.com/s/tc9l 7nwx5snw0go/PhotoPanel.java[/url] [/quote]

When I select sub-menu "Search Photos" from class testUserInterface, a search panel is displayed with textfield and 2 buttons, start and exit.

http://imageshack.us/a/img69/2668/searchin.jpg[/img]

However, a problem occurs when I clicks start button (after entering a specific keyword).
all photos which relates to the keyword is not shown.
and I got problem with sub-menu instead in line 180.

http://img213.imageshack.us/img213/5816/subcs.jpg[/img]

Please help me out with the problem, it drives me crazy (TT)

Viewing all articles
Browse latest Browse all 2703

Trending Articles