File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Constructor not visible?

 
Vince Valentin
Greenhorn
Posts: 19
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Howdy folks.

Been a while since I been here. Trying to get back on the horse, as it were.

I am just getting into developing using LWJGL. I was messing around, trying out different things with the Display and DisplayMode classes and ran into an issue I have never seen before. I don't know if this is the proper forum, I didn't see one specifically for this library so I hope I'm ok posting it here. Any advice is, as always, much appreciated.

 
Jelle Klap
Bartender
Posts: 1951
7
Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The default constructor is public by default, but when you add a constructor explicitly you have the choice of making it private, package private, protected or public. As far as I can tell from the API the only public constructor is the variant that takes two ints, which would make the invocation of the overloaded variant at line 49 illegal.
 
Vince Valentin
Greenhorn
Posts: 19
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I see. Thank you for pointing that out, it's good to know. I am still wrapping my head around api documentation hehe I suppose I need to get more comfortable with that.

Thanks again!!
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic