Change if (str ==“”) to if (str.isEmpty())Don’t use == to compare strings. The empty string from the text field is a different entity than the constant pool empty string. You are doing an identity comparison. ScottOn Aug 3, 2024, at 10:17 PM, Pieter van den Hombergh wrote:an empty string is neve
an empty string is never a valid number. for a valid number you need at
least one digit inside the string.
met vriendelijke groet
Pieter van den Hombergh
Op za 3 aug 2024, 20:58 schreef Zulfi Khan :
> Hi,
>
> I have written the following function:
>
>
> private boolean jDelBtnActionPerformed(java
Hi,
I have written thefollowing function:
private booleanjDelBtnActionPerformed(java.awt.event.ActionEvent evt) {
// TODO addyour handling code here:
JOptionPane.showMessageDialog(null, "Inside Delete Btn");
String str ="";
try{
str =jTF1.getText().trim();
}catch(java.lang.NumberFo
Hi, I solved this problem by loading the java file on notepad and then editing
it. Thanks. Zulfi.
On Saturday, August 3, 2024 at 12:06:27 PM CDT, Zulfi Khan
wrote:
How to change thetype of the Event Handler?
I have a handlerassociated with a button for example DELETE as shown in t
Hi Nigel,
Hope you are doing well. Can you please tell us which type of NetBeans
project you are using? If you choose a "New" -> "Java With Maven" -> "Web
Application" project, then JSF should be available for use.
Thanks!
Josh Juneau
On Sat, Aug 3, 2024 at 8:28 AM Nigel Evenden wrote:
>
Any help is appreciated.
On Thu, 1 Aug 2024, 15:50 Nigel Evenden, wrote:
> I have selected JSF Framework from Properties menu, but the Ok button is
> ghosted out
>
> Please advise
> Nigel
>