Do you know why I can't see the components in the visual editor of Vaadin. The thing is that if I drag'n'drop from there, I can put the components into the layout. They are just not visible.
because its about jre,
solution
you should install 7u71 to see your components visible in visual editor of Vaadin
Related
I am currently working on an eclipse rcp application that we want to customize look-and-feel wise via CSS.
Sadly the documentation is not that great, so I'd like to try to get help here.
I would like to configure the border of several Widgets via CSS. For example Composite or ScrolledComposite.
The CSS Theme is working generally, this question is only about the border property.
Can I use the border property at all to configure the border of an Widget or is there only the SWT.BORDER property that needs to be set in the creation process of a widget?
There is no support for borders in the SWT CSS. The SWT.BORDER style on the control constructor is the only thing available.
You can write your own CSS property handlers using the org.eclipse.e4.ui.css.core.propertyHandler extension point, but adding a border would be difficult as the SWT controls don't support it.
All the existing CSS properties are defined using the org.eclipse.e4.ui.css.core.propertyHandler extension point, mostly in the org.eclipse.e4.ui.css.swt plugin.
I found there is a link teaching you how to change the LAF of the NetBeans Platform Framework Application. However I don't know how to make it if our application's UI is completely rendered in JavaFX. AFAIK, NetBeans is built in swing, so I'm also wondering, whether the change on LAF only affect the outside window frame and won't affect the part rendered in JavaFX.
As far as I understand, SWT is the GUI building block for Eclipse IDE.
And in Eclipse, we have a concept of "View" widget, such as the following example:
The "View" widget can be docked, minimized, maximized, and can also be made floated.
I think it will be useful for my project, but unfortunately can't find it in the standard SWT Widget shown here http://www.eclipse.org/swt/widgets/
How to create this widget in SWT? Can I just extract it from the SWT library. Or perhaps, it is shipped as extension to SWT?
In Eclipse Jigloo plugin you can right click on JTable and choose "surrond with JScrollPane".
But in windowbuilder pro plugin I can't find a way to make JTable with JScrollPane
Add a scroll pane to your UI. Then drag and drop the table onto the scroll pane. During the drag over scroll pane window builder will highlight its areas - make sure you drop onto the central one.
Alteratively the following also works nicely;
Add a JTable
Right click on the JTable in the tree view
Select: Surround With > JScrollPane
Another option would be to use NetBeans to do some of your Swing layout.
I've had limited experience with WindowBuilder, but I use NetBeans for designing prototypes and find it much easier for creating UIs. The resulting code generated from NetBeans will also be viewable using WindowBuilder.
I am using WindowBuilder 1.7.0 and Swing designer 1.7.0 in Eclipse in Mac. At first I was finding similar menu like Jigloo which I did not find. My Jigloo always crash in Mac and show license message, so I discarded it :)
Later with some playing, I found how to do it in WindowBuilder, specially if you have already designed the JTable/JTextArea/JTree and do not want to delete it. After that you need to put them scrollable.
You can use the tree view on the left. Normally you cannot drag a component into the scroll view. However add the scroll view in the frame. Set proper layout to the component where you want to put the scroll view. Usually its BorderLayout, may in a JPanel. Drag the JScrollView into target area. Use the tree view for all these actions. Then finally drag the JTree/JTable into the JScrollPane in the frame design view. To my experience this works better. Play with the Layouting of the parent components.
I'm using Qt Jambi 4.4 for a project I'm working on (and designing the windows in the Qt Designer eclipse plugin). One of the windows I'd like to use is a preview window which is basically just a window with a QWebView on it. How can I make it so that the QWebView resizes as the window does? I've set the sizePolicy to expanding for both Horizontal and Vertical position. What else do I need to do?
(also bear in mind that I'm a newbie to both Java and eclipse and need to be talked to in stupid people terms on both of those subjects)
UPDATE
Just to illustrate the point, here are a couple of screenshots (I've made the window background bright just to illustrate my point):
alt text http://img13.imageshack.us/img13/2103/screenshot2oi7.jpg
alt text http://img152.imageshack.us/img152/6250/screenshot1mz9.jpg
I don't know Jambi, but with Qt Designer just give the background the focus and then apply a layout from the toolbar. Then the main widget will get resized by that layout manager -- if you don't add that layout manager you'll get the widget resizing but the contents staying at their old positions.
I haven't used qt-jambi, but if it is anything like Qt in C++ or PyQt, the QWebView would resize automatically as the window size changes. As far as I know, setting size policies/ expansion factors, adding QSpacerItem objects etc. is only necessary if the sizing behavior is not working right. Just laying it out using an appropriate layout within the preview window should be sufficient. Do let me know if I have misunderstood the question.
You need to place the QWebView in a layout, that it will follow the change in its "container". For using layout with Qt Designer, refer to http://doc.trolltech.com/4.5/designer-layouts.html
From Qt Designer docs:
The form's top level layout can be set by clearing the selection
(click the left mouse button on the form itself) and applying a
layout. A top level layout is necessary to ensure that your widgets
will re-size correctly when its window is re-sized.