Results 1 to 2 of 2
- 09-15-2008, 06:17 PM #1
Member
- Join Date
- Sep 2008
- Posts
- 1
- Rep Power
- 0
IObservableValue issue with data displayed in row(s)
Hi,
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?
Example:
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?
Thanks,
JayDev
- 09-15-2008, 08:21 PM #2
custom subclass?....
Possibly write your own subclass of
?Java Code:org.eclipse.core.databinding.observable.value.AbstractObservableValue
Introduction to Programming Using Java.
Cybercartography: A new theoretical construct proposed by D.R. Fraser Taylor
Similar Threads
-
Nodes displayed in JTree
By Orange in forum AWT / SwingReplies: 6Last Post: 08-08-2008, 05:07 AM -
Tooltip not getting displayed...
By Preethi in forum New To JavaReplies: 4Last Post: 07-31-2008, 10:00 AM -
JCombox DropDown is displayed on primary monitor when the box is in between two monit
By Kalpana.k in forum AWT / SwingReplies: 1Last Post: 05-01-2008, 03:19 PM -
displayed the rownumbers
By geeta_ravikanti in forum JDBCReplies: 1Last Post: 04-22-2008, 02:30 AM -
Java Components are not displayed(sometimes)
By archanajathan in forum AWT / SwingReplies: 3Last Post: 11-05-2007, 08:34 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks