Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Issues to get the text of a combobox.
Issues to get the text of a combobox. [message #34727] Wed, 26 November 2008 18:33
raphael is currently offline raphaelFriend
Messages: 16
Registered: July 2009
Junior Member
Hello, I'm having a problem and a few days and I can not find a solution.
I'm not able to get the text of a combo, generates an error
java.lang.NullPointerException. I am trying as follows:

// creating the combobox

final Combo comboDriver = new Combo(controls, SWT.DROP_DOWN | SWT.BORDER );

// Calling within the method

public void escreveClassepage4() {
String Driver = comboDriver.getText();--> initializing the variable
writer.write(" jdbcDriver=" + Driver );
Previous Topic:TextAttribute background of keuword
Next Topic:Issues to get the text of a combobox.
Goto Forum:

Current Time: Sat Sep 25 16:10:58 GMT 2021

Powered by FUDForum. Page generated in 0.01922 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top