How to keep popup on one screen in Intellij IDEA? - java

When I type dot and press ctrl+space, I see a pop-up with list of possible methods.
when I press ctrl+q i see another pop-up with javadoc for the selected method.
The problem is half of the popup is on the one screen and second half is on another screen. it's unreadable. how to make the pop-up stay on one screen?
ubuntu 14.04, mate, 2 monitors (extended desktop), intellij 2016.1.1

The pin is your friend!
Press that pin in the top right corner to "Open as tool window"!
From that moment on, the documentation will always appear in that specific window. Just resize it and place it somewhere in your screen where it does not interfere with other things. From that moment on, every time you press Ctrl + Q the documentation will appear in that window.
Also, note you can change the font size:
But it may be more handy to drag the popup with the mouse:

Related

How to create a floating view over another view in android

I don't know exaclty how it is called, but I got a screenshot:
Basically, in this case, I press a button and this window from "FC Barcelona" pops up, occupying about 3/4 of the screen. After it is opened I can drag it up and down. If I drag it up, it occupies the whole screen, if I drag it down, it disappear.
How can I use this tool or how it is called in android?
What you want is a BottomSheet. You can find an example on how to do it there at the Design Support Library: Bottom Sheets section.
http://android-developers.blogspot.de/2016/02/android-support-library-232.html

Refresh Vaadin TabSheet upon maximizing Window

I am having problem with Vaadin TabSheet - current tab doesn't resize upon maximizing/minimizing window (using the +/- button in top right corner)
My contents now DO resize correcty when:
resizing/dragging the window using mouse
switching to other tab
prior to minimizing the window (they resize to fill 100% and then DON'T resize after the window is shrinked with "-" button, so they overflow to right)
But they DON'T resize at all when changing the state of the window (maximizing it or going back to original size (which is set to 800*600px))
I was able to isolate the window mode change event using Window.WindowModeChangeListener, but I cant figure out which method and upon which component shall I use to force the UI to repaint my tab...tried markAsDirty and markAsDirtyRecursive to everything (window, tabsheet, tabs themselves), but no luck...
Also window, tabsheet and tabs have setImmediate(true) if this shall be a concern. Or is there any other setting to ensure desired behaviour?
EDIT: I have noticed it even works right in Internet Explorer, but not in Firefox (havent tried other browsers yet).
It appears to be a bug of Vaadin 7.6 and lower...

java: add an option "re-size window" in the contextual menu which appears when we right click on the restored window in the tool bar

First I apologize if my English is not very good. it's my 4th language :P:P.
I have a java program (which I run using NetBeans) that open a graphic window (application), when I restore this window then I do a right click on its button in the toolbar it shows a menu that contains a button to close the window (like it does for every window XD), I want to add another button or text to re-size the window to [30,30],(example: we add text "send window to [30,30]" and when we click on it it resize the window to 30,30) cause when I do a remote connection from home I can't see the window its big and it appears in the 2nd screen. I don't know how to write this in Java. I'll be grateful for any help. If I didn't explain the problem well please don't hesitate to ask me and i'll explain it other way. :)
Thank you and have a lovely day everyone :):)

Keep Window in Back

This is most likely an obvious question, but I was wondering how I can keep a program behind all other windows (except the desktop)?
In a way, I am trying to achieve the opposite of keeping a window in the front.
Here's an example:
Window 1
Window 2
Random Window
My App
Desktop
However, I need it so that it will always stay against the desktop, so you cannot interact with it unless you're looking at the desktop itself.
public void toBack()here
If this Window is visible, sends this Window to the back and may cause it to lose focus or activation if it is the focused or active Window.
Places this Window at the bottom of the stacking order and shows it behind any other Windows in this VM. No action will take place is this Window is not visible. Some platforms do not allow Windows which are owned by other Windows to appear below their owners. Every attempt will be made to move this Window as low as possible in the stacking order; however, developers should not assume that this method will move this Window below all other windows in every situation.
4 Years late, but if you need the window to always stay in the back, even when the user clicks on it, you can use:
JFrame frame = new JFrame("");
frame.setFocusableWindowState(false);
frame.toBack();
setFocusableWindowState(false) prevents the activation of the window when clicked.

What does it mean arrow in editor in Eclipse?

Sometimes appears this arrow so I cannot see if breakpoint is installed. Does it possible with some shortcut remove this arrow?
Thanks.
I think the yellow arrow is the search results icon. It know it sounds silly :/. You should just be able to close the search pane and the arrow will go. Does that fix it?
The arrow will go away if you close the search result, not the search view. If you press the X or XX on the search view, it will hide/remove the yellow arrow.
On Eclipse Help --> Help Contents --> Search icons.
Select the Editor area marker link, and you will see that the yellow icon is the "Search Result" icon. Whenever you do a search and the result is found, the icon shows which line it found it in.
Window | Show View | Search Click Xx icon in the Search view. Clearing the search will remove the arrows.
We have another way to check if any break point is installed at a line without masking arrow icon. It's just hovering mouse over arrow icon, Eclipse will display a popup to claim what are set (include break point) at this line.
Another way to clear the arrow is to:
Locate the Show Previous Searches icon on the Search pane's toolbar (looks like a flashlight-with-document icon that has an attached Dropdown arrow)
Click on that icon's Dropdown arrow
Select the Clear History menu item
This will clear your search history for the current session and remove all the yellow arrows in the editor without having to close the search tab completely.
The easiest way to clear the arrow (without turning them off entirely) is to simply perform another search.
I tried other approaches (closing the search pane, closing the file) and nothing worked.

Categories