Skip to main content



      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 13:33
Eclipse UserFriend
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 Jul 03 20:26:10 EDT 2025

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

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

Back to the top