Today I was doing a voting system, for this IEEE president election in JCU singapore.
Actually I am not very familiar with Java Swing programming, so by this chance, I have done some reading of Swing.
Basically, GUI for an application is just a skin, never be the core. but I have to say it is also very time consuming for GUI programming. for this voting system, I spent more time on GUI than the actual voting algorithm.
At the end, I found what was really annoying me is the layout manager, in order to make my desired layout of all my elements, I have tried all kind of layout managers, such as FlowLayout,GridLayout,BoxLayout and so on. Luckily finally I made my elements there..hehehe, so for GUI programming, what is really important is how much experience of the Classes you have known. . .
I will upload the ugly picture of the Voting System once I have completed. . .
I have to say, I am really bad on designing..heheheh
Friday, March 28, 2008
Wednesday, March 26, 2008
JMF progress
I started this JMF project 4 weeks ago.
Basically, it is about remote controlling webcam.
The first thing I am doing now is to implement the transmitting of the vedio from one PC to another.
It is always difficult to do one thing at the begining stage.
The first problem I encountered was that the video did not show where there was no error in the program itself at all. At the end, I figured it out, the reason was that I did not add visual components to the class I created.
the significant code was
"this.add(player.getVisualComponent());
this.add(player.getControlPanelComponent());
"
The second problem I encountered was that the video I transimitted from the server can not be displayed in client side. Actually I was testing this in my local machine, (since I have only one PC), it was sloved at the end, the reason was that in client side, I did not initialize the local address probably, the significant code was:
"SessionAddress localaddr = new SessionAddress(InetAddress.getLocalHost(),3000);"
where you can see "InetAddress.getLocalHost()".
then I did "mymgr.initialize(localaddr);"
Now there are still a lot of errors waiting for me to slove,
but at least I get started, and it was working in the sense of transimitting. cheers.
And Hope my little experience would help ppl who are working on similar projects.
Basically, it is about remote controlling webcam.
The first thing I am doing now is to implement the transmitting of the vedio from one PC to another.
It is always difficult to do one thing at the begining stage.
The first problem I encountered was that the video did not show where there was no error in the program itself at all. At the end, I figured it out, the reason was that I did not add visual components to the class I created.
the significant code was
"this.add(player.getVisualComponent());
this.add(player.getControlPanelComponent());
"
The second problem I encountered was that the video I transimitted from the server can not be displayed in client side. Actually I was testing this in my local machine, (since I have only one PC), it was sloved at the end, the reason was that in client side, I did not initialize the local address probably, the significant code was:
"SessionAddress localaddr = new SessionAddress(InetAddress.getLocalHost(),3000);"
where you can see "InetAddress.getLocalHost()".
then I did "mymgr.initialize(localaddr);"
Now there are still a lot of errors waiting for me to slove,
but at least I get started, and it was working in the sense of transimitting. cheers.
And Hope my little experience would help ppl who are working on similar projects.
Sunday, March 23, 2008
First Article
After a long time of being away from blog, I finally decided to make a own blog for my technical articles , or I will say some thoughts in Information Technology area.
I am currently studying IT in James Cook University Sinapore , and graduating on June. Since my IT major is General Computing, there is no forcused area in terms of studying. but persoanlly I am more interested in Programming, and have done some freelance work related to web programming.
I wish I could make some friends who have something in common through this blog. so we can share our thoughts , comments in IT field.
I am currently studying IT in James Cook University Sinapore , and graduating on June. Since my IT major is General Computing, there is no forcused area in terms of studying. but persoanlly I am more interested in Programming, and have done some freelance work related to web programming.
I wish I could make some friends who have something in common through this blog. so we can share our thoughts , comments in IT field.
Subscribe to:
Posts (Atom)