Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8995315
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:36:13+00:00 2026-06-15T23:36:13+00:00

I made a frame and added a desktop pane (dp_1) to it. Then I

  • 0

I made a frame and added a desktop pane (dp_1) to it. Then I created a separate internal jframe form (Inj) and assigned this code to a button in frame form (main).

Inj inj = new Inj();
dp_1.add(inj);
inj.setVisible(true);

It works fine. Then I created another internal jframe form(Inj_1). I want to set it visible by a button in Inj. I did trying the same code, but there comes an error.

Error is ;

error: dp_1 has private access in NewJFrame

*() include the variable name.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T23:36:14+00:00Added an answer on June 15, 2026 at 11:36 pm

    You should provide a public method in the class that owns that variable and let it modify its own state.

    You can also use reflection if you must, but I don’t recommend it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i made an .xib file and added my buttons and labels. Then I created
I have made a JFrame and inside that frame, there is panel on which
I need to show live television on a frame of my desktop application made
This tictactoe program is a 2player game. The GUI i made are frame and
I have cells in UITableView , I have made custom frame for the label
Made this nice little loop for hiding and showing div's, works as a charm
I am trying to build a photo frame application on iphone. I made the
I made two instances of UILabel and added them to my ViewController 's view.
I made a small GUI program with PyGtk for parametrically drawing the frame of
I made a custom numpad with numbers on it. It's a frame and buttons

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.