File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes NetBeans cant change modifier of a method. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "NetBeans cant change modifier of a method." Watch "NetBeans cant change modifier of a method." New topic
Author

NetBeans cant change modifier of a method.

Ben Hultin
Ranch Hand

Joined: Aug 17, 2009
Posts: 135
I went through the help file about changing the generated code to a public modifier. I went through the refractor process several times, but it wont change the modifier to a public access modifier. Anyone have any ideas why its not responding?

Thanks a lot for the help
Ben Hultin
Ranch Hand

Joined: Aug 17, 2009
Posts: 135
I took a closer look at it says that it is a read only method and can not be refractored... what can I do to change this? I need to create a JUnit test case, but the private access modifier it was given is preventing this.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Can't you just edit it?
Ben Hultin
Ranch Hand

Joined: Aug 17, 2009
Posts: 135
I wish... When using the NetBeans GUI builder, it restricts how you can modify the source code. You have to go through special channels to make adjustments. I guess they do this keep errors down.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Then you'll have to check to see if the templates it uses can be modified, or change how you're testing it.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: NetBeans cant change modifier of a method.
 
Similar Threads
access modifier
overriding ??
dynamic lookup
network adapter error while connection (help urgent)
visibility