Re: NumberFormatException

2024-08-03 Thread Scott Palmer
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

Re: NumberFormatException

2024-08-03 Thread Pieter van den Hombergh
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

NumberFormatException

2024-08-03 Thread Zulfi Khan
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

Re: Java Netbeans 22: How to change the type of Event Handler

2024-08-03 Thread Zulfi Khan
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

Re: JSF Netbeans

2024-08-03 Thread Josh Juneau
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: >

Re: JSF Netbeans

2024-08-03 Thread Nigel Evenden
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 >