Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Java question, plz answer.

This topic is 6099 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I''ve got a slight overflow problem here, can anyone explain this, cos I can''t figure it out!!! ListDemo2.java
if(event.getSource() == deleteButton) {
	    k = list.deleteMultiple();
	    showList(list);  // if I were to comment out this line then the overflow problem does not occur, except it won''t display the updated list correctly
	    showMessage("deleted " +k + " duplicate items");
void showList(ListByVector list)    {
	int	i = scrollbarPos; 
       int	n = list.size();
	int     c = 0;
        i = i * numCol;	
while((i < n) && (c < maxDisplay)) {
	    i++; c++;
while(c < maxDisplay) {
	}	// clear input text field
ListByVector.java public int deleteMultiple() { m = 0; for(int i=0; i

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!