Refresh Your Java - Before Java Interview
We are Agile, believe in less Documentation - Only Quick notes (Java Interview Questions) of Java/J2ee Read more....
class
QueryTreeRenderer extends DefaultTreeCellRenderer {
public Component
getTreeCellRendererComponent(
JTree tree,
Object value,
boolean sel,
boolean expanded,
boolean leaf,
int row,
boolean hasFocus) {
Object obj =
((DefaultMutableTreeNode)value).getUserObject();
JLabel leafNode = new JLabel();
leafNode.setOpaque(true);
leafNode.setText("YourNode");
leafNode.setToolTipText("This is a Test
Node");
if(sel){
leafNode.setBackground(Color.blue);
leafNode.setForeground(Color.white);
tree.setToolTipText(leafNode.getText());
}else{
leafNode.setBackground(Color.white);
leafNode.setForeground(Color.black);
tree.setToolTipText(null);
}
return leafNode;
}
}
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.