That sounds a bad idea. You should have an application program with an interface and that interface links to the displays. Whenever something happens that can cause a method to be called to change the colour of one of your displays. Creating a new instance in such a method won't work; you will change the colour of something completely different, which in this instance you can't even see.obaid abbassi wrote:. . . I made all the component of form 1 public so that I can access it in form2 . . .
There are three kinds of actuaries: those who can count, and those who can't.
I have already told you that is a mistake.obaid abbassi wrote: . . . this is made public . . .
At this stage, please don't allow NetBeans to write any code for you. Write everything by hand, until you are much more experienced. Please space and indent the code correctly.. . .
Please don't post any pictures, but seeing the code may allow us to find more errors. It depends how long it is.obaid abbassi wrote:should i post pictures of code?
There are three kinds of actuaries: those who can count, and those who can't.
Try something like this:-. . .You can expand that toThat gets you out of making the fields public.A few minutes ago, I wrote:. . .
Campbell Ritchie wrote:Unfortunately, Piet, that is different from what OP wants. You are cerating a new display and the old display remains, with its red pane
There are three kinds of actuaries: those who can count, and those who can't.
No. Always keep all discussions on the forum, where everybody can help you.obaid abbassi wrote:can I send you a complete zip of my project
I don't know about anybody else but I'm finding the language barrier to be a bit of an issue for me. Instead of trying to explain things in English sentences we have a couple of options:obaid abbassi wrote:for better understanding, I am attaching pictures.
blueLeft is menu I want to change its color from setting menu which is completely different class that's why I m creating new object in settings class
There are three kinds of actuaries: those who can count, and those who can't.
when you create form2, give it a reference to form1.
Where is that code from?are you refering to this code
but not working
There are three kinds of actuaries: those who can count, and those who can't.