Now how do I make it cloud-enabled? Do I need to sign up for an account?
Name:
Anonymous2012-04-20 22:37
I don't know, personally, but everything I've searched up says that you have to sign up for something, or use some company's product or feature.
Is it alright if I hijack your thread for a few posts? Every time I try to make a new thread on /prog/, I get an error message.
Name:
Anonymous2012-04-20 22:38
>>2 here
I'm working on an exponent calculator list, where when you type in a base and an exponent, it displays a list of that base with every exponent up to the one you specified. For example, if you choose base 2 and exponent 6, it'll display 2^1 = 2, 2^2 = 4, 2^3 = 8... 2^6 = 64.
Now, it's supposed to go onto a new line for each calculation displayed. Since this is all working in a loop, I just added + "\n" to the end of the statement. It doesn't work, though. I've tried <br />, \r\n, \n\r, \\r\\n, \\n,\\r, and every other possible solution I've found on online, but none work. I'm using NetBeans, so is it a problem with the text box that I made?
>>3
Never even heard of netbeans but the \n will need to be in quotation marks. Alternatively there should be a token for breaking a displayed line that you can call, like endl in C.
Post the code?
Name:
Anonymous2012-04-20 23:37
>>5
for (i = 1; i <= exponent; i++) {
outputField.setText(outputField.getText() + base + " to the exponent " + i + " = " + Math.pow(base, i) + "\n");
}
A JTextArea is a multi-line area that displays plain text.
and I think that's what you want.
Name:
Anonymous2012-04-21 2:28
>>12
Oh, thank you! When I see the Java Docs, I look away in fear. I'm a shitty navigator, and all the terminology I don't understand makes the situation feel hopeless to me. But if it's something as simple as looking at what classes I'm using, and then looking at their superclasses, it might not be as bad as I thought.
>>13
after a while it becomes like reading legal documents, very dry and boring. The skill is in finding the write questions, and then wading through the text until you find the answers you need.