Results 1 to 7 of 7
Thread: different output
- 08-04-2008, 12:20 AM #1
Member
- Join Date
- Apr 2008
- Posts
- 16
- Rep Power
- 0
different output
import java.awt.*;
import java.applet.Applet;
import java.awt.event.*;
public class Steps extends Applet implements AdjustmentListener {
private Scrollbar steps;
private int count, numberOfSteps;
public void init() {
steps = new Scrollbar(Scrollbar.HORIZONTAL, 0, 1, 0, 100);
add(steps);
steps.addAdjustmentListener(this);
}
public void paint(Graphics g) {
int count = 0;
int x = 20;
int y = 20;
while (count < numberOfSteps) {
g.drawLine(x, y, x + 20, y );
g.drawLine(x + 20, y, x+20, y + 20);
x = x + 20;
y = y + 20;
count++;
}
}
public void adjustmentValueChanged(AdjustmentEvent e) {
numberOfSteps = steps.getValue();
repaint();
}
}
- 08-04-2008, 02:26 AM #2
Need a question to do anything with this.
- 08-04-2008, 03:28 AM #3
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Hey pro85,
You have to clearly mentioned what's your question here. If you didn't to it on next few days, I have to delete this thread. Sorry for that, but since nothing is there to discuss no need keep this thread here in the forum. Others can be confused. So pay your attention there. :)
- 08-05-2008, 07:39 AM #4
Member
- Join Date
- Apr 2008
- Posts
- 16
- Rep Power
- 0
result
i want
_
l_
l_
l_ this is my result
but error occur
_
l_
lLast edited by pro85; 08-05-2008 at 07:45 AM.
- 08-05-2008, 07:40 AM #5
Member
- Join Date
- Apr 2008
- Posts
- 16
- Rep Power
- 0
y i can not post the link
Last edited by pro85; 08-05-2008 at 07:46 AM.
- 08-05-2008, 08:37 AM #6
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Since you don't have total number of 20 posts, it's not possible to post links here in our community. Until that you just put the link text here.
- 08-05-2008, 01:42 PM #7
Similar Threads
-
What will be output and why
By huma in forum Threads and SynchronizationReplies: 4Last Post: 06-26-2008, 10:14 PM -
Why the output is always zero
By mehrotra.chitij in forum New To JavaReplies: 12Last Post: 04-25-2008, 04:05 AM -
Output to excel
By abhiN in forum New To JavaReplies: 2Last Post: 03-07-2008, 01:19 AM -
output
By Camden in forum New To JavaReplies: 3Last Post: 12-01-2007, 10:34 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks