Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

So I just made an app

Name: Anonymous 2012-04-20 22:24

Now how do I make it cloud-enabled? Do I need to sign up for an account?

Name: Anonymous 2012-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: Anonymous 2012-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?

Name: Anonymous 2012-04-20 22:53

Hello?

Name: Anonymous 2012-04-20 23:24

>>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: Anonymous 2012-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");
        }

Name: Anonymous 2012-04-20 23:51

>>6
what type is outputField?

Name: Anonymous 2012-04-21 0:35

>>7
Sorry that I'm taking so long. I hope you're still here.

JTextField

Name: Anonymous 2012-04-21 1:06

BEH

Name: Anonymous 2012-04-21 1:18

>>5
endl? In C?

Name: Anonymous 2012-04-21 1:29

>>10
I didn't quite understand what he said. I'm actually new to programming.

Name: Anonymous 2012-04-21 2:18

>>8 the java docs are your friend.

http://docs.oracle.com/javase/1.4.2/docs/api/javax/swing/JTextField.html

JTextField is a lightweight component that allows the editing of a single line of text

>clicked on the super class, JTextComponent

http://docs.oracle.com/javase/1.4.2/docs/api/javax/swing/text/JTextComponent.html

found JTextArea under the list of direct known subclasses:

http://docs.oracle.com/javase/1.4.2/docs/api/javax/swing/JTextArea.html

A JTextArea is a multi-line area that displays plain text.

and I think that's what you want.

Name: Anonymous 2012-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.

Name: Anonymous 2012-04-21 2:30

>>13
Great, it works!

Thank you all once again. Sorry OP, for hijacking your thread.

I really need to find out why I can't make my own threads.

Name: Anonymous 2012-04-21 7:53

>>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.

Name: Anonymous 2012-04-21 9:51

>this thread

Name: bampu pantsu 2012-05-29 4:33

bampu pantsu

Name: Anonymous 2013-08-31 23:25




          r‐- 、                    /
         、.  _|___/ ̄`ヽ            /      い
   ',  /`ヽ_,X´ |-、/   ̄`ヽノ             |   か  い
       |   _r‐< ̄>ー-、.イ__ \        __|.   し  の
    ',  /「,>''"´/`ヽー-く⌒l_`ヽヽ     /   \   ら
 \  ', lア´  /./      \-'ヽ. ハ   ./   私    ?
 .  \  /   メ、|   ,ハ    ヽ/、  |   |    の   ト-----
    ∠!   ./rト八  l/ -|‐ ハ  |,ハ/ |    |    土   |
 ‐ ─  、  /|  j_r!\| -rァテ、|  ト、| /   |    下   |
    / \.ハ"  ,    j__rソ,  /.) Yl   <. 見. 座.  |
 //   ./ 人  、_   "//|  八    | た. を   |
     /   ,' .| r|>、__ ,,. イ /ヽ| ハ  ヽ   | 時      |   ____
   /   .| ∨/::::::/ |__,. イレ' r' \ |  )  、        ´       `ヽ
     .r-'∨.,':::i::::|_/\  rソ/:::::::::Y ∧   ` ー---‐/      最
      ∨  |::/::::(/ム)ヽrノ:::i::::::::::::::∨  \  /L  /      謝.  終
      | r/、!:::::::く人):::::::::/:::::::::::::::::|     ヽ/_/  |  貴   る   的
      ,ハ /ヽ,ヘ、::::::::l:::::::::::::ヽ_r- 、__ノ ヽ、 く_」    |  方   事  に
     ( ./  ヽ,ハー::::::::::::::::イ|  ̄ |   ',   |.     |  達   に
      ノ7  //rく::::r-、:::::::::::::;| _  |    |  /     |  な   .な
     |./  ./_,.へ.  ,.ヘ. ̄ /´   ,ハ_   } ̄`Y´{  |  の  る
     ,'  /::::::::::::::::Y::::::::ヽ/   / ∧`ヽノレ' ハ」  |  よ.   の
   r/|  'J::::::::::::::::/:::::::::::/  ,イ_/|:::::ヾ]_)ハ   /   |   :  .は
   く∧__j:::::::::::::::::;'::::::::::::(|  _ノ:::::::::,':::::::::/」 |/     |   :
     |:::::::::::::::::::::::::::::::::::::::し'::::::::::::/:;'::/´        '、 ?
     ヽ:;____、:::::::::::::::::::::::::::/::/´             \
             ̄`ヽ:;____/               ̄ ̄ ̄

Name: Anonymous 2013-09-01 0:57



                             ミ
                             Ξ この程度なら
       , ‐ ''"´ ̄ ̄ ̄ ̄`゙'' 、-- 、     ニ   私が動く程の
     ,「 `7  _,r─-、__.、__)  |, ヘ    Ξ     事態じゃない
   /´\| / _/,ゞ'"´ ̄`ー--、へ.,__ノ./┐  彡
   \  ∨ r'/ /  ./|    `'ー-、ヾ-、」    '/ リl || |l| l l| ll |l| |l| l l| l
   ./ >-r´/  / -|-/、|   , ,ハ   ヽ }   /
   { r‐''´ ,'  .,' |斤テr‐|__/|_/__.|   | |/  /  /
  r∨ ,  |   |八弋_ソ    ィテ、|/  // |/ /
== く.'Y i   |_//⊂⊃     , り /、/`    二ニ====---
   `| |     |' |       ⊂| ||     |` \
    .| |     |   、     ´  人  、   |    \
      、ヽ  .!   \ 、.,_,. イ   \ ` ー-、/7
      \  人     ヽト、_|人     ー--} }ー-、
       ン´  \ ヽ   )__]\_>-- 、_.ンノ、  )
      /      )ノ rイ-┐、| ハ \  く_r'  |/
     ./  /   }ン|__]┬ ' __|__ ヽ、 `ヽ
    rヘ. /     /  |」 ||||::::::::::::::::::ト、ハ   ト、
    \ \     | /|  .||||::;: -、‐-、|_.り   ノ )
     l__rヘ.__r-、_∨ /} lア ̄ヽ }  } ノ| /レ'
       \ ヽ--<> '´     }__} __ノ  }

Name: Anonymous 2013-09-01 2:28



    ,.‐‐、       ,.-‐-、
   く__,.ヘヽ.    / ,ー、 〉
     \ ', !-─‐-i / /´
      /`ー'    L//`ヽ、
     /  /,  /|  ,  ,    ',
   イ  / /-‐/ i L_ ハ ヽ!  i
    レ ヘ 7イ`ト  レ'ァ-ト、!ハ|  |
     !,/7 'ゞ'   ´i__rハiソ|   | 
     |.从"  _   ,,,, / |./   |
     レ'| i>.、,,__ _,.イ /  .i  |
      レ'| | / k_7_/レ'ヽ, ハ. |
       | |/i 〈|/  i ,.ヘ | i |
      .|/ / i:   ヘ!  \ |
        kヽ>、ハ   _,.ヘ、   /、!
       !'〈//`T´', \ `'7'ーr'
       レ'ヽL__|___i,___,ンレ|ノ
         ト-,/ |___./
         'ー'  !_,./

Don't change these.
Name: Email:
Entire Thread Thread List