swt Questions

2

table.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { if(table.getSelectionIndex() != -1) { System.out.println(table.getSelectionIndex()); Tabl...
Arnst asked 6/8, 2012 at 12:13

1

Solved

Say, I have an application based on the e4 platform using pure JavaFX instead of SWT as a rendering technology, like this one. Does it still need some SWT libraries indirectly? After all, the Eclip...
Remount asked 22/12, 2016 at 9:16

3

Solved

I'm trying to debug my SWT dialog (in an Eclipse plugin.) I'd like to find out why the layout is the way it is, and where the borders are between the controls. I've seen the SWT Spy plugin (http://...
Humectant asked 3/6, 2010 at 18:36

8

Solved

Windows XP has the limit 10000 user handles for each process and total 32000 for each desktop session. However, when I run 4 or 5 SWT process, each consuming no more than 2000 user handles, the SWT...
Manzanares asked 7/1, 2010 at 6:10

2

Solved

I have a list in a composite and is defined in the following way : List list = new List(composite, SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER); when the list is in disabled state (list.setEnabled...
Lipscomb asked 17/3, 2014 at 9:16

2

Solved

When I embedding Composite control inside ViewPart, a vertical margin/padding is added between textbox and button (button is part of another Composite) , as seen on attached picture. How can I rem...
Garlicky asked 28/5, 2015 at 18:39

4

Solved

I have a Composite that I want to be able to enable/disable programatically. The Control.setEnabled(boolean enabled) method works fine, but it does not give any visual information that the widget(s...
swt
Silici asked 2/6, 2010 at 12:31

3

Solved

I want the user to be able only to write numbers and spaces. How can I do that in SWT?
Sally asked 3/12, 2010 at 13:31

3

Solved

My application needs to resize ImageData. Unfortunately, I haven't gotten the results I want with GC (with antialias on and interpolation on high), or ImageData.scaledTo(). The resulting image is o...
Acrimony asked 20/1, 2011 at 21:22

6

Solved

I'm looking to unit test some SWT and Swing code for a project I'm working on and the tests run fine as long as I'm running them from eclipse. As soon as I run them in my hudson environment it fai...
Timothee asked 16/10, 2009 at 13:18

2

Solved

I cannot get this to work so I thought it might be a wise idea posting over here... I have a context menu in SWT (actually its an Eclipse plugin). It's a cascaded menu, so it expands as soon as you...
Indiaindiaman asked 21/9, 2010 at 10:27

5

Solved

What I'd like to do is be able to tab between elements in table. I currently am creating my table like this. this.tableViewer = new TableViewer(parent , SWT.FULL_SELECTION); tableViewer.setU...
Decontrol asked 30/9, 2009 at 22:8

4

Solved

I have an image that has been scaled to fit. From the scaled image a user is selecting a rectangle. I then re-draw based on this selection: gc.drawImage(imageDisplayed, minX, minY, width, height,...
Shuping asked 8/6, 2016 at 22:27

3

I have created BitMapSource from a list of RGBA pixels: BitmapSource bmp = BitmapSource.Create(imageStrideInPixels, height, 96, 96, PixelFormats.Bgra32, null, imageData, imageStrideInPixels * pixe...
Magnus asked 24/6, 2016 at 13:47

6

Solved

To disable vertical scroll bar i used the following syntax table.getHorizontalBar().setEnabled(false); But it is not working. It is ruining my application ui. How can i disable it?
Kieserite asked 2/4, 2012 at 13:26

5

Solved

I often find myself wanting to do it. It can be very useful when you want to store some useful information or extra states. So my question is, is there a very good/strong reason why this is forbid...
Rhoads asked 24/11, 2010 at 9:2

3

Solved

I'd like to have a ScrolledComposite which has a parent with GridLayout but the scrollbar doesn't show up, unless I use FillLayout. My problem with FillLayout is that its children takes equal parts...
Torrez asked 5/7, 2012 at 8:23

2

Solved

I have a top level menu named "radio" containing two radio MenuItem. I add SelectionListener for both. MenuItem radio = new MenuItem(bar, SWT.CASCADE); /* bar is the menu bar */ radio.setText("R...
Shing asked 6/12, 2011 at 9:40

6

I've just started using swt (windows x86_x64 compatible version). When I run a sample code snippet in Eclipse, I am getting the following error... Exception in thread "main" java.lang.UnsatisfiedL...
Kickoff asked 11/12, 2010 at 8:4

5

I'm writing a little wizard for Eclipse with some pages and I need to catch the moment of the first time page displaying. I checked constructor and createControl but they are called in the creatio...
Oxymoron asked 24/4, 2012 at 17:40

2

Solved

I want to read JSESSIONID from cookie org.eclipse.swt.browser.Browser. I try to open browser from Eclipse plug-in. I am using below snippet public static void main(String[] args) { Display displa...
Murillo asked 9/3, 2016 at 12:35

3

Solved

How to use log4j logging API in an Eclipse RCP project? As a workaround U tried to create a new OSGI Bundle which has a log4j jars, below is the bundle structure: I've crated a basic RCP applic...
Capitalist asked 3/11, 2011 at 12:30

2

Solved

I have always wondered why we exactly need ContentProviders for JFace TableViewers? I know that getElements() method of a ContentProvider class will return an Array or Collection of Objects which c...
Offprint asked 29/12, 2015 at 11:9

2

I am currently developing a desktop application based on eclipse. Currently the user needs to perform many redundant actions like doing step A in View 1 then doing step B in View 2 then repeat. I ...
Exultant asked 4/11, 2015 at 10:27

3

Solved

Is it possible to show a right click menu on table items with SWT? The menu would be different for every item, e.g for some rows, some of the menu items would be enabled, for others, they would be ...
Arciniega asked 23/9, 2013 at 18:22

© 2022 - 2024 — McMap. All rights reserved.