This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
hi everyone, i'm working on a chat application.i have made my interface in AWT.Now for displaying messages i have made a CANVAS and add that CANVAS to the SCROLLPANE.it works fine and it puts vertical and horizontal scrollbar to the canvas. now what i want is when new messages are added to the canvas the vertical scrollbar should scroll automatically,in other words it should always show the last message. i tried to use setscrollPosition() method but then the problem is that the user is not able to view the previous messages because setscrollPosition()fixes the scrollbar at the current position. please tell me the solution of the problem at the earliest . i 'll be highly obliged. thanks asheet anand
asheet: as I am not a Swing guru, I wasn't able to help you. I will try to dig some info and post anything I find. In the mean time, I would suggest the Sun tutorials. I will be doing the same anyways. regds. - satya