Refresh Your Java - Before Java Interview
We are Agile, believe in less Documentation - Only Quick notes (Java Interview Questions) of Java/J2ee Read more....
You can call invokeLater() from any thread to
request the event-dispatching threadto
run certain code.
You must put this code in the run() method of a Runnableobject
and
specify the Runnable object as the argument
to
// Called from non-UI thread
private
void runQueries() {
for (int i = 0; i
< noQueries; i++) {
runDatabaseQuery(i);
updateProgress(i);
}
}
private void
updateProgress(final int queryNo) {
SwingUtilities.invokeLater(new
Runnable() {
public void
run() {
// Here, we can
safely update the GUI
// because
we'll be called from the
// event
dispatch thread
statusLabel.setText("Query: " + queryNo);
}
});
}
This Portal is intended to put all Java/J2ee related topics at one single place for quick referance, not only Technical , but also the Project Management Related thing such as Development Process methodoogies build process, unit testing etc.,
This Portal has More than 500 Java Interview Questions (also could be Considered as Quick Notes) very neatly separated topic by topic with simple diagrams which makes you easily understandable. Importantly these are from our Realtime expericance.