Java Troubles

TRARP

Junior Member
Sep 21, 2007
7
0
0
Hi, im Mike and quazi new to these forums. I was curious... when i created my JForm with Netbeans' handy GUI creator, you know, adding buttons and whatnot, in my fruitile attempts to make a label a hyperlink, i added some custom code that wont compile. The problem is, now i cant delete it, as Netbeans doesn't allow the deletion of generated code. Any way to get around this, ive know where to code is, but the delete key is disabled or something when i try to edit it.

Thanks and hi again,
TRARP
 

manko

Golden Member
May 27, 2001
1,846
1
0
If you can figure out which button it is, you can go back into the GUI editor and delete the component there.
 

lambchops511

Senior member
Apr 12, 2005
659
0
0
delete it manuall (ie . not through netbeans)

open ur project folder with explorer
open the .java file with notepad or alike

browse and delete code there


IMO JBuilder 2006 (Not 2007) is the best for GUI building. Its very mature and very advanced...definitely worth trying.
 

postmortemIA

Diamond Member
Jul 11, 2006
7,721
40
91
delete the component from gui; that will remove all associated protected lines. DO NOT mess with file outside NetBeans because you can render whole gui from useless... the from comes with 2 files, one is java, other one is xml, if they are not in sync, your form is awol.
 

Casawi

Platinum Member
Oct 31, 2004
2,366
1
0
I recommend using eclipse instead. You will run into issues with Netbeans if you're new to it. Ctrl+space is genius !
 

mundane

Diamond Member
Jun 7, 2002
5,603
8
81
I use Eclipse, but when I upgraded to Europa (I think early in the summer) the Visual Editor was not yet compatible. Not a deal breaker for me (I only use it for mockups), but could be for the OP.
 

postmortemIA

Diamond Member
Jul 11, 2006
7,721
40
91
Originally posted by: Casawi
I recommend using eclipse instead. You will run into issues with Netbeans if you're new to it. Ctrl+space is genius !

Eclipse's UI editor is a joke, how can you recommend it? Have you actually tried it? Made more than two buttons?