Roy Wira

Greenhorn
+ Follow
since Sep 25, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Roy Wira

Hi All,
I'm trying to access the local variable using:

instead of showing local value, it shows the server side value, how can I resolve this issue ?
Thanks in advanced,
roy
21 years ago
JSP
Dear All,
I just built an applet in my intranet, i have a problem whenever i show my javascript drop down menu, the applet always on top of it, how to work around this problem. I'm using IE6.
Any html sample code would be appreciated.
Thanks in advance,
Roy.
21 years ago
Hi,
I am currently have problem with SSL cert, in the past our swing application was run under standalone mode connected to weblogic server and we're currently moving on to use webstart. Is there anyone here can share me how to bind the cert key to webstart client? I'm still a newbie to SSL as well.
Any help is highly appreciated,
Roy.
21 years ago
Dear All,
Can anyone share me the idea how to dispose a Component extended from JDialog automatically when it's parent disposed.
thx for any help,
roy
22 years ago
Dear All,
I am stuck in the deployment stage, can anyone give me any idea what's goin on here ?

Could it be from the weblogic.jar ?
Thanks a heaps,
Roy.
22 years ago
Hi All,
I have a problem here, it actually has something to do with the floating point significance.
I need to display a fixed format of 8.2 data with float type in JTable's cell. When I put the value to JTable, it turns out that my value has some additional numbers behind the comma.
Example:
float abc = 123456.78;
When I put it in JTable it displays 123456.781
Can anyone help me with this ? I'm jdk1.3 user.
Do I need to use DecimalFormat and change it to String?
Thx,
Roy
[ October 11, 2002: Message edited by: Roy Wira ]
22 years ago
Thanks Paul, It works fine now.

Originally posted by Paul Stevens:
Create your own cell renderer and do it there. Override this method:

public Component getTableCellRendererComponent(JTable table, Object value,
boolean isSelected, boolean hasFocus, int row, int column)
Put in number format code within this method. (See DecimalFormat)

22 years ago
Dear All,
I have some float numbers to put in JTable. The problem is I need to make them all displayed with 4 digits behind zero, can anyone help me with this?

They need to be displayed 12.3400 and 12.3457 respectively in JTable.
Thank you for any help,
Roy
[ October 02, 2002: Message edited by: Roy Wira ]
22 years ago
Allow me to modify your code a bit
[/qb]<hr></blockquote>
[ September 26, 2002: Message edited by: Roy Wira ]
22 years ago

Originally posted by Sanjeev Kaushik:
Hi,
function boolean isInteger() {
try {
new Integer(txtField.getText().trim());
return true;
} catch(NumberFormatException e){
e.printStackTrace();
}
return false;
}


Thanks Sanjeev, It gave an alternative to me, just wondering ... how to get the wrapper (in your example) "Integer" since it depends on user's choice from combo box that returns String casted Object? FYI: I originally put the combo box items as an array of String.
I was figuring out how to use Class.forName() and Object.getClass() but no hint since both value returns String.
Any further help would be greatly appreciated.
For Max ... unfortunately my project is designed using jdk 1.3
Thanks,
Roy
[ September 25, 2002: Message edited by: Roy Wira ]
22 years ago
Dear All,
I just have one question about comparing a value to it's object/primitive type, hope anyone could help me with this.
Here's the story:
In the project I'm currently in, I need to validate user input :
cboParamType = "java.lang.Integer"
with
txtUserEntry1 = "HelloWorld"
or
txtUserEntry2 = "12345"
When user selected "java.lang.Integer" or other Object types from the ParamType combobox, How to check whether s/he has entered the correct object/primitive type in the User Entry textfield or not?
I am thinking to parse the userentry character by character, but I believe there must be a better way
Thus, in my example :
- comparing paramType with userEntry1 will results false.
- comparing paramType with userEntry2 will results true.
Any help would be appreciated.
regards,
Roy
22 years ago