Results 1 to 2 of 2
  1. #1
    jaydev is offline Member
    Join Date
    Sep 2008
    Rep Power

    Default IObservableValue issue with data displayed in row(s)


    I have an IObservableValue inside a DataBindingContext that observes a double data type. When displaying the double value in swt Text object, the actual double value is rounded to three decimals.

    Has anyone run into this? How do you go around this issue?


    double myValue = 0.0006127 is displayed as 0.007. I need the exact double value to be displayed.

    I tried to use a DecimalFormat and then convert it to String to display in Text object but the databinding context needs a IObservableValue.

    Any idea?

  2. #2
    Nicholas Jordan's Avatar
    Nicholas Jordan is offline Senior Member
    Join Date
    Jun 2008
    Rep Power

    Smile custom subclass?....

    Possibly write your own subclass of
    Java Code:
    Introduction to Programming Using Java.
    Cybercartography: A new theoretical construct proposed by D.R. Fraser Taylor

Similar Threads

  1. Nodes displayed in JTree
    By Orange in forum AWT / Swing
    Replies: 6
    Last Post: 08-08-2008, 05:07 AM
  2. Tooltip not getting displayed...
    By Preethi in forum New To Java
    Replies: 4
    Last Post: 07-31-2008, 10:00 AM
  3. Replies: 1
    Last Post: 05-01-2008, 03:19 PM
  4. displayed the rownumbers
    By geeta_ravikanti in forum JDBC
    Replies: 1
    Last Post: 04-22-2008, 02:30 AM
  5. Java Components are not displayed(sometimes)
    By archanajathan in forum AWT / Swing
    Replies: 3
    Last Post: 11-05-2007, 08:34 AM

Posting Permissions

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