Forum: Computer Science 8 Hours Ago |
| Replies: 5 Views: 146 Not that I'm going to help, because I'm not, but the origin of number systems has nothing to do with programming languages, so I don't understand your response, Seten. |
Forum: Java 3 Days Ago |
| Replies: 20 Views: 609 Well, I gave him some reputation, and your gratefulness is probably enough anyway. After all, people don't usually help on forums because of all the money they'll make from it. :) But good luck on... |
Forum: Geeks' Lounge 13 Days Ago |
| Replies: 29 Views: 1,152 Well. . even among the dedicated members, there is a lot of variation in skill here. Wouldn't it be better to have 3 different levels, similar to Sane's challenge at Daniweb's sister site, PFO? |
Forum: Java 13 Days Ago |
| Replies: 3 Views: 197 if you do things like removeAll() on a JFrame or JPanel, then after adding new panels, you might need to call revalidate() or validate(). I've told people that before and they've reported back... |
Forum: Java 15 Days Ago |
| Replies: 5 Views: 339 If you declare a method as taking an int as a parameter, then you need to pass that int. i.e. in your setX and setY methods, you cannot call setX(), you have to call setX(PUTANINTHERE!!!)
hope... |
Forum: Java 19 Days Ago |
| Replies: 2 Views: 169 This is definitely interesting. Before I get into my crazy idea of how to do this (that involves bit stuffing and using a special character to denote the start and end of images) let me make sure I... |
Forum: Java 19 Days Ago |
| Replies: 6 Views: 352 Why is there so much code in your remove method? All you need to do is search linearly through your array looking for an item with the name that matches the String you're searching for. That should... |
Forum: Java 21 Days Ago |
| Replies: 2 Views: 159 Your error indicates that you attempted to parse an integer at line 128 of your program (which is correct: it says Integer.parseInt(input)). However, the program was unable to parse an int, because... |
Forum: Java 21 Days Ago |
| Replies: 5 Views: 423 For specific components see here: http://java.sun.com/docs/books/tutorial/uiswing/components/index.html
(for example, if you want to use a button in your app, look there to see how, or if you want... |
Forum: Java 22 Days Ago |
| Replies: 2 Views: 335 Did you even look at his code? The problem is obviously with the way he is reading in the text file.
@OP:
Scanner's next() method reads in input between the delimiter pattern, which by default... |
Forum: Computer Science 28 Days Ago |
| Replies: 3 Views: 661 Get help from a professional, in person, with your write up. Here are some tips since I've been through similar processes myself, but I'm not a professional at this, nor are most anyone on daniweb.... |
Forum: Java 28 Days Ago |
| Replies: 6 Views: 367 SWT was created for faster native widgets - it is faster because it uses the OS's native tools to draw the widgets, essentially. However, Swing should be plenty fast for most any purposes, and I... |
Forum: DaniWeb Community Feedback 34 Days Ago |
| Replies: 80 Views: 6,559 Maybe I misunderstand. But if I was a new member and I didn't know who knew what they were talking about and who didn't, being able to check the user votes percentage might be a pretty useful metric.... |
Forum: DaniWeb Community Feedback Nov 16th, 2009 |
| Replies: 80 Views: 6,559 I guess, but without some degree of feedback, nothing can ever improve. |
Forum: DaniWeb Community Feedback Nov 16th, 2009 |
| Replies: 80 Views: 6,559 Yeah, I understand how it works. I was saying 50 different members.
Also, jbennet, do you not like sknake? I only ask because I have made more comments about the voting system than he has, but you... |
Forum: DaniWeb Community Feedback Nov 16th, 2009 |
| Replies: 9 Views: 1,085 That was like when a comedian makes a funny joke. Except you're not a comedian. And that joke wasn't funny.
Anyway, why not just search my name and down vote every post? Don't be so uncommitted.... |
Forum: DaniWeb Community Feedback Nov 16th, 2009 |
| Replies: 80 Views: 6,559 The system is idiotic. Lets see how low we can get this post guys. -50? |
Forum: Java Nov 12th, 2009 |
| Replies: 7 Views: 606 If you use Java's built in Stack class and Queue class, you can simply call the appropriate methods to add the items on and take them off. For both of them, to add an item on, you probably just use... |
Forum: Java Nov 12th, 2009 |
| Replies: 7 Views: 606 abccba
if you add each letter in order to the stack and the queue, here is the final stack and queue (in the order they would be popped off)
1. abccba
2. abccba
But looking at something... |
Forum: Computer Science Nov 9th, 2009 |
| Replies: 2 Views: 465 My question for him is why he couldn't at least thinly veil the obvious COTS "my professor wrote this and then I pasted it on daniweb"... question |
Forum: Java Nov 9th, 2009 |
| Replies: 2 Views: 325 Check is extremely simple actually. If any piece can currently move to the king's position, then the king is in check. Since you already have to implement the ability to allow players to move any... |
Forum: DaniWeb Community Feedback Nov 8th, 2009 |
| Replies: 13 Views: 1,407 Considering mods aren't ever bots, I think it'd be safe to write a quick script to let them do their job quickly. (It can't be that hard to write a check for the user's usergroup?) |
Forum: DaniWeb Community Feedback Nov 5th, 2009 |
| Replies: 9 Views: 1,085 Actually, at the risk of sounding whiny, I retract my statement. But I still believe that new members misuse the down vote system to "spite vote" |
Forum: Java Nov 5th, 2009 |
| Replies: 8 Views: 385 Like the docs say, split does not return the character that was split around. My point in my previous post was that you can easily figure out where the characters were anyway by using a little... |
Forum: Java Nov 4th, 2009 |
| Replies: 3 Views: 159 import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class ComboBoxFrame extends JFrame {
/***/ private static final long serialVersionUID = 1L;
private JComboBox b;... |
Forum: DaniWeb Community Feedback Nov 4th, 2009 |
| Replies: 91 Views: 8,689 I don't, and I occasionally double post with someone else or vice versa. Serves me right.
:( |
Forum: Java Nov 4th, 2009 |
| Replies: 18 Views: 552 My example was pretty long, but try to grasp the concept and I think you'll be able to complete your program. Again, the basic idea I'm proposing is that you multi-thread your application so that the... |
Forum: Java Nov 4th, 2009 |
| Replies: 18 Views: 552 Sorry, took too long and couldn't edit my last post. Update:
Ok, so this seems to be the issue: since read() blocks while it waits for input, when the client's receive() method is executed, all... |
Forum: IT Professionals' Lounge Nov 4th, 2009 |
| Replies: 47 Views: 93,425 I have two family members that bought Acer computers at around the same time. This was less than two years ago; neither computer is being used anymore - they both had to buy new laptops because of... |
Forum: Geeks' Lounge Nov 4th, 2009 |
| Replies: 5 Views: 518 Haha. That's pretty funny and extremely nerdy of them. |
Forum: Java Nov 3rd, 2009 |
| Replies: 18 Views: 552 I looked through your code, and I don't see a reason why you should be continuously adding and removing the mouse listener. If there is no reason to do so, don't do it. (I.e. it adds nothing to your... |
Forum: DaniWeb Community Feedback Oct 31st, 2009 |
| Replies: 91 Views: 8,689 Again: I'm reiterating because I feel very strongly about this.
The 'new' buttons are distracting and unnecessary. They don't add any features to the site - let me explain. If I have already been... |
Forum: Java Oct 29th, 2009 |
| Replies: 21 Views: 724 http://java.sun.com/j2se/1.5.0/docs/api/java/util/Scanner.html
Using next() is the easiest way to go and will work for what you are describing. And I'm linking to the documentation because if you... |
Forum: Geeks' Lounge Oct 29th, 2009 |
| Replies: 15 Views: 812 Whatever decision you make, you should be prepared to accept and to deal with the consequences of that decision, regardless of whether the consequences are what you intended. I disagree that your... |
Forum: DaniWeb Community Feedback Oct 29th, 2009 |
| Replies: 91 Views: 8,689 The "new" buttons that just started showing up suck. They are annoying to look at and they are unnecessary and they serve little purpose. I can already tell which threads I looked at and I don't care... |
Forum: Geeks' Lounge Oct 28th, 2009 |
| Replies: 684 Views: 80,350 Einstein couldn't speak fluently when he was nine. His parents thought he might be retarded. |
Forum: Java Oct 28th, 2009 |
| Replies: 5 Views: 341 Just use the drawString method to draw your words. g.drawString(parameters go here) http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Graphics.html
You can set the Graphics contexts' font and color... |
Forum: Geeks' Lounge Oct 27th, 2009 |
| Replies: 15 Views: 812 All I can say to this whole post is hahahahah
Because I find your choice of forums to post this on incredibly inappropriate and funny |
Forum: Java Oct 27th, 2009 |
| Replies: 11 Views: 331 Put "Website Major" in your resume, and I bet you never get a job. But seriously, the lack of social skills and self motivation is probably a good cue for where your future is going.
Why do you... |
Forum: Geeks' Lounge Oct 23rd, 2009 |
| Replies: 4 Views: 367 I've never been called a geek to my face, only a nerd. . and only a nerd by my friends (actually maybe acquaintances also). But most of my habits aren't particularly nerdy. Even video games these... |