This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Changing Access Specifiers of Data class

 
Gurpreet Saini
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi reader,
I want to change access specifier of seek() and readRecord () method from private to default . Shall I go ahead and change them ?. Please revert your opinions as soon as possible.
Thank you,
 
Sam Stackly
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can do that as long as you have a good reason.
but why do you want to do that?
Sam
 
John Smith
Ranch Hand
Posts: 2937
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I want to change access specifier of seek() and readRecord () method from private to default

I would urge you to reconsider. Why not use the already public getRecord() for all your needs?
Eugene.
 
Gurpreet Saini
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Eugene,
You are excellent person my sweety konovo . I was also thinking the same thing upto late night.
Thank you,
 
Gurpreet Saini
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Eugene,
Look up javadocs for setAccelerator() and setMnemonic().

Can you tell me eugene to which class they belong.And also tell me something about modal dialog box.
Thank you,
 
friso dejonge
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
your questions are all answered in the java tutorial (excellent bedtime reading). You can find it at:

try JMenu and JDialog, that should solve it.
cheers,
friso
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic