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...
Related
I have a custom window that extends com.vaadin.ui.Window, inside the window I put com.vaadin.ui.TabSheet and into the TabSheet couple of custom components that extend com.vaadin.ui.VerticalLayout.
Everything is correctly placed inside, but the window appears totally minimized. How to extend it to show all contents properly, but without using .setSizeFull() as I dont want to stretch it to whole screen?
I tried .setSizeFull() to TabSheet and its contents, but that didn't helped at all.
Setting custom height and width for the Window works, but this is not what I intend to do...
As it was said in the comments area, a Window must have a size.
I myself would have preferred that the window adapts itself to the screen size or browser size but that is how it works.
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:
I want to have one main window, and inside that window should be child windows, which are draggable, resizable etc. If I use just JFrames or JDialogs, it gives me many problems about the stacking of the windows. When the main window has focus, the child windows shouldn't move to the background.
This can be so-so fixed by listening to window events and bringing the child windows to front again, but now I get even more problems, for example popup boxes and other prompt dialogs are not stacked in the right order.
My solution is to use JInternalFrame for the child windows, but the disadvantage is, that they are clipped by the parent container.
Here's an example (just from internet). You see the clipping of internal frames:
My question is: is it possible to make them visible outside the parent component, so the overflow is visible.
The final goal of the GUI is to get something like photoshop. Windows which are independent on the screen, but which will never go to the background of its main window (parent)
In a Codename One GUI builder app when I navigate back to my Main form, the screen is always shown at the top.
How can I get the screen to auto scroll down to the part I want and retain its previous scroll?
I'm assuming that this is a GUI builder app.
Normally this should be seamless as the UI will scroll to the last focused component but if you don't have focusable elements this might be harder. You can store the scroll Y value on the exitForm event and restore it the beforeShow event using something like:
f.addShowListener((e) -> f.scrollY(yValue));
I have a need to make my dialog partially transparent. Pull out a tab from google chrome to create a new window, while dragging the shape it makes is the shape that I want to make, minus see-through.
The point is that my dialog is a fairly simple and standard dialog, but I need one chunk of it cut out and transparent. Double points if that area is not part of the dialog so clicking there will lose focus from the dialog.
you can set the opacity.
http://java.sun.com/developer/technicalArticles/GUI/translucent_shaped_windows/#Setting-the-Opacity-Level-of-a-Window
I see what you mean by chrome page tab. In this case you may have to have an underlying panel which is transparent, this panel would then contain the tab in the top corner, and the rest of the page underneath. ie 2 separate components
hope that is what you very looking for