LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   a GUI of a peer to peer program in Java (https://www.linuxquestions.org/questions/programming-9/a-gui-of-a-peer-to-peer-program-in-java-588285/)

manolakis 09-29-2007 06:55 PM

a GUI of a peer to peer program in Java
 
Hi there
I would like to ask if anyone knows how can i make a window like those windows that are into peer to peer programs. They contain actually queues of downloading or uploading data with a progress bar.
I would really like if anyone could post an example or tutorial. I was also wondering if it was possible to do it as in a JTable.

Thanks

Proud 09-30-2007 12:29 PM

You've got two options I figure, either get the code to one (Azureus is FOSS, no?) and try to understand it, or work on it from the basics:

Break down the interface you see into sections, see what's repeated, find your basic GUI elements. Paper or screenshots and an image editing program should do.
Then try and build each section out of the standard Java GUI widgets, or (re)code your own ones for more control/effects.
Then put them all back together and Ta-Da! :)

Don't forget the old Model-View-Controller pattern, just have the GUI display the data and trigger actions like Pause/Stop but not directly be responsible for it. Goes well with making a command-line only prototype first before you add the nice interface. :)


All times are GMT -5. The time now is 09:35 AM.