Results 1 to 2 of 2

Thread: JTextpane

  1. #1
    Mash is offline Member
    Join Date
    Apr 2010
    Posts
    4
    Rep Power
    0

    Default JTextpane

    Hi All,

    I am writing a console which acts as a very simple calculator where the user types a math question (e.g. 7 + 6 ) and the program returns the answer. The console would like some thing as the following:


    enter Input: 7 + 6 * 2
    Output is: 19

    What is the best way to read the input line (i.e 7 + 6 * 2). The expression "7 + 6 * 2" could appear any where in the input line.

    Thanks in advance

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    Why are you re-asking this question when your same question asked yesterday was fully answered hours ago?:rolleyes:

    Locking this post. Please send me a private message if I'm missing something obvious, for instance that this is not in fact the same question as previous for some reason.

    Much luck.

Similar Threads

  1. [SOLVED] jTextPane to xml
    By er_zhong in forum New To Java
    Replies: 9
    Last Post: 04-15-2009, 04:46 AM
  2. Clipboard and jTextPane
    By Gudradain in forum AWT / Swing
    Replies: 11
    Last Post: 01-04-2009, 11:08 PM
  3. StyledDocument for JTextPane
    By nadia in forum AWT / Swing
    Replies: 2
    Last Post: 12-28-2008, 02:41 AM
  4. GetIcon from jTextPane
    By Gudradain in forum AWT / Swing
    Replies: 4
    Last Post: 11-26-2008, 03:26 AM
  5. Transparent JTextPane
    By Ada in forum AWT / Swing
    Replies: 1
    Last Post: 05-31-2007, 09:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •