Java netbeans jlabel visibility when changing tabs - java

I am having a problem with my jframe gui program ... basically I created a gui with 2 tabs (Home & About) .. and I can switch between the tabs easily which works fine. I also put a button in the about tab which when I click , a pop up appears. Now I want that pop up to stay there even if I switch tabs .. my problem is when I go to the home tab and go back to the about tab , the pop up is gone (I have to click the button again) , I was wondering if there is a way to make it stay there. This is a gif showing my exact problem
any help will be highly appreciated!! thanks :)

Related

Java Eclipse Application Window

When I go into the design panel of an Application Window class and I want to put a button, or rather anything I can't put it where I want it. It let's me to choice 1 of the 5 sides(top,right,left,center) and the button is as large as the whole panel.
What can I do?

Java - Extra Window Button

Google Chrome Recently had an update that added an extra button onto to the top of the window that allowed you edit your account settings. I have a great use for an extra button like this one but I do not know how to make it. So, how can I add an extra button at the top of the window?
This is what I would like to do or have in mind.
This is more of an amateur/simple answer but it could be possible just to make a title bar with all of the drop downs without text until you reach the button you want and customize that

JDialog over Desktop area

I am trying to use a JDialog at the right of the screen, everything is almost perfect, but, if someone press the button on ther right end of the TaskBar, click on "Show Desktop area" my JDialog disappears I have to use ALT + TAB to get it back in in front. I can't set it AlwaysOnTop because I use other 3rd party programs that are fullscreen.
I tried:
jdigCentral.setAutoRequestFocus(true);
jdigCentral.setAlwaysOnTop(true);
and others, but without success
How can I have my JDialog to stay over just the Desktop Area?
Is jdigCentral your dialog box? If so then try this:
jdigCentral.setModal(true);
That will keep the dialog box on top of the parent JFrame. But I'm confused about the use of the word Desktop Area. Do you mean you want to keep the dialog box on top of the parent frame, or do you want it to always show on top of all other programs running on your desktop?

JDialog does not close on 'X' button click

I have written an application that has one main window and multiple dialogs, however one of these dialogs does not close when the user clicks the 'X' button at the top right corner. There is an OK button in the dialog which closes it correctly, so it's not a huge issue. Can anyone suggest why it's not working?
Maybe you are missing such a line: setDefaultCloseOperation(HIDE_ON_CLOSE); in the dialog class?

Java - Right Clicking JTabbledPane Tab

I have it working, however the popup menu appears when you right click anywhere inside the tab. I only would like it to appear when you right click the top of the tab (the name). I cannot figure out how to do this. Any help is appreciated.
Thanks.
Try adding your popup to the custom component demonstrated in TabComponentsDemo.

Categories

Resources