Skip to main content

All Questions

Tagged with
0 votes
1 answer
192 views

Java SWT: Difference between redraw, reskin, update and requestLayout (and pack)

Can anybody please explain to me the difference of the methods Control.redraw(), Control.update(), Widget.reskin(), Control.requestLayout() and Control.pack()? Unfortunately the API documentation does ...
Johannes1984's user avatar
0 votes
1 answer
294 views

How do I write a JUnit test for a custom SWT-Column-Ratio-Layout?

I found a custom SWT-Column-Ratio Layout on the internet which puts the children of a composite/control into a user-defined ratio. Unfortunately I cannot find the source of the implementation of the ...
Stefan Hristov's user avatar
0 votes
2 answers
102 views

Java SWT remove spacing of parent

Anyone an idea on how to remove the spacing between the parent and the parents content? e.g.: GridLayout layout = new GridLayout(1, false); layout.horizontalSpacing = 0; layout.verticalSpacing = 0; ...
Moritz's user avatar
  • 23
0 votes
0 answers
71 views

Some grid lines, varying thickness, with Java SWT

I have seen other questions about having lines in a composite widget with grid layout, but I'd like to have lines only in some places, and I'd like to have occasional thicker (2-pixel) lines. ...
Heimdall's user avatar
  • 237
0 votes
0 answers
24 views

How to tell a FieldEditorPreferencePage to invalidate/redraw programatically?

I defined a custom FieldEditorPreferencePage. In createFieldEditors method I construct a simple interface with a custom FieldEditor that holds button that loads a file. When a user loads the file the ...
Ispas Claudiu's user avatar
0 votes
1 answer
303 views

Can you help me with some SWT List layout and rendering issues

I have been working on fixing a bug where adding around 2500 items to an SWT List was causing layouts to break, I believe this is a bug with the rendering in SWT because there was very little to go ...
Link19's user avatar
  • 606
0 votes
2 answers
875 views

How to have same width in all the buttons inside various SWT RowLayouts

I want to display a table with 5 columns and 9 rows. The table will display 45 buttons, each of the buttons will have the number written in the button text. The first column has the numbers from 1 to ...
NullPointerException's user avatar
1 vote
1 answer
541 views

SWT grid layout issue

so I've been working on a SWT dialog. It should look something like this: /----------------------------------\ | Label1 | | [_Text_box_1__________][Button1] | | ...
Alternatic's user avatar
1 vote
1 answer
185 views

Combining GridLayout and FillLayout without adding FormLayout?

Java SWT provides four standard layout classes: FillLayout, RowLayout, GridLayout, FormLayout. I know how to use each of the layout classes, but struggle when combining layout classes. For example, ...
MrPickles's user avatar
  • 1,455
2 votes
1 answer
658 views

Eclipse RCP trim status bar composite margins too big to display text

I'm developing a plug-in for a Eclipse RCP application. In this plug-in I want to set a text message and an icon in the trim status bar. Considering my circumstances, I think I can scrap the ...
Niklas's user avatar
  • 102
0 votes
1 answer
200 views

create a right aligned multi line text field in swt

Is there any way to create a right aligned multi lined text field in SWT without applying SWT.WRAP style? I need to have the horizontal scroll bar in the text field which disappears when WRAP is used.
Sunny V's user avatar
1 vote
1 answer
68 views

Layouts and Mouse events

I'm trying to create a custom slider with SWT, but I have a strange result, I wish I'm missing something here, I would like to have a Composite with an internal canvas that has a margin all around so ...
navy1978's user avatar
  • 1,439
1 vote
2 answers
1k views

SWT RowLayout with last element grabbing excess horizontal space?

I have two elements in a horizontal RowLayout. I am able to specify a (minimal) with for the second element (e.g. 200 px). Furthermore... a) If the total width of the shell is too small, the second ...
Stefan's user avatar
  • 12.5k
3 votes
1 answer
1k views

Create GridLayout With Rows of Equal Height

I want to have a composite with some labels, and all the labels should have the same height, but they should be vertically centered. So far I have the following: public static void main(String[] ...
Stefan S.'s user avatar
  • 4,121
2 votes
1 answer
81 views

Is it safe to share layout instance among different controls

I have a class which creates several controls but the class itself is not a composite or widget. The controls all have the layout as new GridLayout(1, false). I am not sure whether I can define a ...
CMZS's user avatar
  • 601

15 30 50 per page
1
2 3 4 5
9