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 #585925] 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 );
comboDriver.add("com.progress.sql.jdbc.JdbcProgressDriver");
comboDriver.add("net.sourceforge.jtds.jdbc.Driver");


// Calling within the method

public void escreveClassepage4() {
String Driver = comboDriver.getText();--> initializing the variable
writer.write(" jdbcDriver=" + Driver );
writer.close();
}
Previous Topic:Issues to get the text of a combobox.
Next Topic:Re: 3.5M3 crashes Invalid memory access of location
Goto Forum:
  


Current Time: Thu Apr 25 01:18:28 GMT 2024

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

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

Back to the top