Tree node jumps when click
I am doing a webdynpro application using tree component.
When the tree expanded and show the scroll bar, if I click one node, the whole view flushed, and seems it is trying to show the first line. If the node clicked is near the bottom of the tree, it will became the bottom one.
why this happened? and how to fix this?
thx
I used windows 8 only for about 5 minutes when I bought it. Then I installed my original copy of windows 8.1.
I didn't notice the problem, probably because I didn't pay attention.
I notice the problem when using my laptop a lot in the days following (windows 8.1 installed).
I installed windows 8.1 tree times, the last one I used an USB with UEFI so I was able to install windows 8.1 with UEFI support.
The problem was there also without UEFI windows (legacy startup)...
I could try to install windows 8 in a new partition, but I get the impression that the problem will be the same.
edit: I forgot to say that I always used the last driver downloaded from lenovo site.
Thanks
Similar Messages
-
How to get a Tree Node Value when a Tree is Expanded
My reqiurement is when i Expand a Tree i need the Expanded tree Node Value. For Example Consider Parent as a Root Node of a Tree, and Consider its two Children Child1 and Child2.
When + Parent Expanded
I will Get the Output as --Parent
- Child1
- Child2
so As when i expand the Tree i must Get the String Value Parent.duplicate
How to get a Tree Node Value when a Tree is Expanded -
How can I stop redirect and jumping when clicking on a link in Google search or on a web page?
When I click on a link in Google (or other) search, or a button within a page, too often, at least half the time my request is REDIRECTED and JUMPS to another unwanted page!
== This happened ==
Every time Firefox opened
== after attempting to clean the computer a few timesThank you, Weather15.
I have cleaned my computer a few times since first noticing it, both with Spybot - Search & Destroy and CCleaner. Also have
the latest version of AVG 9.0 Free checking for problems as I search.
I am about to clean again though to see if it makes a difference.
Had to do some updating a few days ago and haven't cleaned since then. Thanks again. Will let you know if this handles it! -
Spry Menu submenu items jump when clicked
Here is the test site:
http://jboyerdesign.com/keepsake/
When you click on the submenu items, the menu jumps as if there is a different size defined for the text of the menu item as you click.
Any ideas?
I haven't edited the submenu CSS settings. I did change some things in the menu section:
ul.MenuBarHorizontal ul
border: 1px solid #CCC;
/* Menu items are a light gray block with padding and no text decoration */
ul.MenuBarHorizontal a
display: block;
cursor: pointer;
background-color: #EEE;
padding: 0.5em 0.50em;
color: #333;
text-decoration: none;
/* Menu items that have mouse over or focus have a blue background and white text */
ul.MenuBarHorizontal a:hover, ul.MenuBarHorizontal a:focus
background-color: #EEE;
color: #A74343;
padding: 0.5em 0.50em;
text-decoration: none;
font-weight: normal;
/* Menu items that are open with submenus are set to MenuBarItemHover with a blue background and white text */
ul.MenuBarHorizontal a.MenuBarItemHover, ul.MenuBarHorizontal a.MenuBarItemSubmenuHover, ul.MenuBarHorizontal a.MenuBarSubmenuVisible
background-color: #EEE;
color: #A74343;Lines 96-102 of nl3.css reads
a:active {
color: #996600;
font-size: 0.95em;
font-family: Arial, Helvetica, sans-serif;
text-decoration: none;
font-weight: bolder;
This interferes with the menu item list. If you change or delete the font-size, all should be well.
Gramps -
JTree - Sometimes tree node is not selected, while clicking it using mouse
Hi,
I'm sure that it is a very rare scenario.But ,sometimes i couldnt select a tree node on mouse click.It happens very rarely and simulating the behaviour is not possible.If anyone have gone thru this,plz repond.
Thanks,
Kathirdid you try debug with a breakPoint on mouseListener->mouseClick event, and see if the selectionModel changes?
-
Help for Activating Editing Mode on F2 Keyboard Click for a Tree Node
I have a Jtree with several Nodes on the Left Pane. On the Right Pane I have a nodes corresponding Screen with many properties. There is a way to change the Node Name by editing the Name Field property on the Right.
I want to Edit the tree Node name by Clicking F2 on the selected Node, Get it in the Editable Mode, Change the name and press enter. How Do I activate this editable Mode on Click of Keyboard F2 Button.tree.setEditable( true );
-
Hello ,
I have a requirement that is very similar to one of the
sample applications of Flex adobe. The sample example is the
component explorer and can be viewed from this link.
http://examples.adobe.com/flex2/inproduct/sdk/explorer/explorer.html
In this example, the tree nodes expand when the node name is
clicked upon.. I wanted to achieve similar functionality but not
able to find the right documentation or approach. Currently, I have
to click on the side arrow to expand the tree node.
Could someone please help me with a solution if you have
managed to get a tree working in a similar way to this example.
Thank you.Just posting again to see if anyone has implemented a Tree
with a behaviour similar to the example provided by the
link. -
Set root node expanded when the page is opened
Hi,
I have a tree in a page having 2 children.
Currently when I come to the page, the parent node appears, when click on that, it will show the 2 children.
My requirement is, when come to the page, the parent node should be expanded and show its children.
Please suggest how can i do this....!
Thanks,
ViNHi Arun,
When initiallyExpanded property of the tree is set to true, all the child nodes also expanded.
My requirement is to expand only parent node.
Thanks,
ViN -
Determine if mouse is over tree node
hi.
I recently added some code from this forum on
highlighting a node when the mouse is over it.
I am taking this futher and setting a Border around the nodehowever it draws a border around every node.
I want to only draw the border when the mouse is over the node.
the example i got does this to set the foreground
((JLabel)result).setForeground(Color.red);
i do this to set the border
((JLabel)result).setBorder
(BorderFactory.createLineBorder(Color.black));
i ve tried getting the positions of both the mouse and the jlabel but am having trouble determining if the position of the mouse is within the position of the node in the tree.
Ive used methods like the contains method but it doesnt work for me . can anyone give me a hint as to how to see if the points of the mouse are on the Jlabel?This is very close to your solution. Last month, I implement ToolTip Text on every Tree Node so when Mouse goes on to the Node, It shows the Tool Tip Text. Have a look at this code and try to change it accordingly.
This code is in the Constructor in your class.
tree.setCellRenderer(new IDETreeCellRenderer());
tree.setToolTipText("");Class: IDETreeCellRenderer - Cell Renderer for the Tree
package tv.izone.ide.tree;
import java.awt.*;
import javax.swing.*;
import javax.swing.tree.*;
import tv.izone.core.*;
import tv.izone.ide.guiutilities.*;
import tv.izone.izml.data.*;
public class IDETreeCellRenderer
extends DefaultTreeCellRenderer {
DefaultTreeCellRenderer label;
* Override TreeCellRendererComponent, used for changing Tree Node for comments.
* @param tree Tree to be used
* @param value Value of the Node
* @param selected true, if selected
* @param expanded true, if expanded
* @param leaf true, if it is a leaf
* @param row Row Number
* @param hasFocus True, if has Focus
* @return Component, Tree
public Component getTreeCellRendererComponent(JTree tree, Object value, boolean selected, boolean expanded,
boolean leaf, int row, boolean hasFocus) {
try {
label = (DefaultTreeCellRenderer)super.getTreeCellRendererComponent(tree, value, selected, expanded, leaf, row,
hasFocus);
label.setToolTipText(dataObject.getToolTipText());
// Instead of setToolTipText(), try setBackgroundColor() or setBorder()
return label;
} catch (Exception ex) {
// NullPointerException, usually comes at the start of the Application
// when the Tree is empty.
return this;
}Hope this Helps
Regards
Raheel -
Disabling the tree nodes.
hi,
Can anyone tell me , Is it possible to disable the tree nodes?How??so that user cannot perform any action
on tree nodes i.e, expanding the tree node or double clicking the tree node.
Thankx in advance,
Manish.hi,
Can anyone tell me , Is it possible to disable the tree nodes?How??so that user cannot perform any action
on tree nodes i.e, expanding the tree node or double clicking the tree node.
Thankx in advance,
Manish. -
Confirmation Dialog when clicking on Tree Node.
I am working on Oracle Apex 4.2.0.00.27 and I have the following problem:
The code below shows the definition of a tree. The tree displays records from the table ACTIVITIES in hierarchical structure.
When user clicks on a leaf/node of the tree he will be redirected to another page where the details of each Activity/leaf/node are displayed.
The tree is part of a page where I have established a functionality to check for changes on the input fields of the page and inform the user when he tries to redirect without first saving the changes he made.
What I want to do is:
WHEN user clicks on a node of the tree AND he hasn't saved any changes he made
THEN
trigger a confirmation dialog.
IF
he clicks OK he is redirected to the node details page as defined on the tree definition:
f?p=&APP_ID.:10:'||:APP_SESSION||'::::P10_ID:'||"ID"
ELSE if he clicks CANCEL
he stays on the same page.
The condition to trigger the confirmation box is:
if (document.getElementById('P0_CHANGES_DETECTED').value == 1)
where P0_CHANGES_DETECTED is a universal hidden text field that is set to +'1'+ every time a change is made.
and here is the tree definition:
select case when connect_by_isleaf = 1 then 0
when level = 1 then 1
else -1
end as status,
level,
+"NAME" as title,+
null as icon,
+"ID" as value,+
null as tooltip,
decode(PARENT_ID,null,null, 'f?p=&APP_ID.:10:'||:APP_SESSION||'::::P10_ID:'||"ID") as link
from "#OWNER#"."ACTIVITIES"
where GROUP_ID = :P20_GROUP_ID
start with "ID" in (select ID from "#OWNER#"."ACTIVITIES" where GROUP_ID = :P20_GROUP_ID and PARENT_ID is null)
connect by prior "ID" = "PARENT_ID"
order siblings by "ID"
I hope it is clear what I want to achieve. Thanks in advance.So you'll want to bind an event to all tree nodes that checks for the value and then fires the confirmation if there value is 1.
Try something like this:
- first, give your static ID attribute in your tree the value of tree_static_id (or whatever you want. just replace the id selector below with what you choose).
- In your Page Function and Variable Declaration Javascript:
function confirmSave() {
var changeDetected = jQuery('#P0_CHANGES_DETECTED').val();
if(changeDetected == 1) {
//only do this if change is detected
if(confirm('You have unsaved changes. Do you want to leave this page?')) {
window.location('[your url here]');
jQuery(document).ready(function() {
//bind function to the click event
$('#tree_static_id').find('li a').bind('click', function() { confirmSave(); } });
});Hope this helps -
Highlight an ADF tree node when it is clicked
Hello every onei ,
Does anybody has any idea how to highlight an ADF tree node when it is clicked ?
Here is my scenario:-
I have a popup which has a tree component on left and when we click on any node in the tree we have to display the corresponding page on right side.
As the tree is common for all pages in the popup, i created an XHTML template with tree. All the treenode pages will use this template to display the tree.This template i am using to implement in rest of the pages.
So when i click any link on this tree will load the corresponding JSP. But i am loosing focus. i mean selected node is not highlighting. Because we are loading the entire target page with template.
Could any let me know how to highlight the tree node ?
The Main problem is we are not using ADF controllers. We are using managed beans, these managed beans attached to the JSPX pages.
Kindly guide me if any one knows solution.
Thanks & Regards,
Sai Sravan.PHello Sai,
I am afraid you have posted your question in the wrong forum. This forum is about Oracle On Track Communication, a next-generation social enterprise collaboration product.
Please re-post your question in an ADF related forum and I am sure someone will be able to answer.
Thank you,
Ernst. -
How to trigger event when double click on a tree node
I have this code which creates new tab in a remote Java Class.
treeView.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<TreeItem<String>>()
@Override
public void changed(ObservableValue<? extends TreeItem<String>> observable, TreeItem<String> oldValue, TreeItem<String> newValue)
System.out.println("Selected Text : " + newValue.getValue());
// Create New Tab
Tab tabdata = new Tab();
Label tabALabel = new Label("Test");
tabdata.setGraphic(tabALabel);
DataStage.addNewTab(tabdata);
Can you tell me how I can modify the code to open new tab when I double click on a tree node. In my code the tab is opened when I click once. What event handler do I need?import java.util.Arrays;
import javafx.application.Application;
import javafx.event.EventHandler;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.input.MouseEvent;
import javafx.scene.layout.StackPane;
import javafx.scene.control.TreeCell;
import javafx.scene.control.TreeView;
import javafx.scene.control.TreeItem;
import javafx.scene.control.SelectionMode;
import javafx.util.Callback;
public class TreeTest extends Application {
public static void main(String[] args) {
launch(args);
@Override
public void start(Stage primaryStage) throws Exception {
primaryStage.setTitle("TreeView Test");
primaryStage.setScene(createScene());
primaryStage.show();
private Scene createScene() {
final StackPane stackPane = new StackPane();
final TreeView<String> treeView = new TreeView<String>();
treeView.setRoot(createModel());
treeView.getSelectionModel().setSelectionMode(SelectionMode.SINGLE);
treeView.setCellFactory(new Callback<TreeView<String>, TreeCell<String>>() {
@Override
public TreeCell<String> call(TreeView<String> treeView) {
return new ClickableTreeCell();
stackPane.getChildren().add(treeView);
return new Scene(stackPane);
private TreeItem<String> createModel() {
TreeItem<String> root = new TreeItem<String>("RootNode");
TreeItem<String> packageA = new TreeItem<String>("package A");
packageA.getChildren().addAll(
Arrays.asList(new TreeItem<String>("A1"), new TreeItem<String>("A2"), new TreeItem<String>("A3"))
TreeItem<String> packageB = new TreeItem<String>("package B");
packageB.getChildren().addAll(
Arrays.asList(new TreeItem<String>("B1"), new TreeItem<String>("B2"), new TreeItem<String>("B3"))
root.getChildren().addAll(Arrays.asList(packageA, packageB));
return root;
private class ClickableTreeCell extends TreeCell<String> {
ClickableTreeCell() {
setOnMouseClicked(new EventHandler<MouseEvent>() {
@Override
public void handle(MouseEvent event) {
// Handle double-clicks on non-empty cells:
if (event.getClickCount()==2 && ! isEmpty()) {
System.out.println("Mouse double-clicked on: " + getItem());
@Override
protected void updateItem(String item, boolean empty) {
super.updateItem(item, empty);
if (empty) {
setText(null);
} else {
setText(item); -
When generate automatically a JTable after a click on a tree node
final int x[] = {0, 1, 2, 22, 0, 2, 0, 1, 0, 2};
final int y[] = {0, 0, 0, 0, 1, 1, 2, 2, 3, 3};
final int larg[] = {1, 1, 20, 1, 2, 21, 1, 22, 2, 22};
final int haut[] = {1, 1, 1, 1, 1, 1, 1, 1, 22, 22};
final int px[] = {5, 5, 85, 5, 0, 0, 0, 0, 0, 0};
final int py[] = {2, 0, 0, 0, 2, 0, 2, 0, 94, 0};
//****************** POSITIONNEMENT DES COMPOSANTS
final Container conteneur = getContentPane();
final GridBagLayout gridBg = new GridBagLayout();
conteneur.setLayout(gridBg);
final GridBagConstraints contrainte = new GridBagConstraints();
contrainte.fill = contrainte.BOTH;
//*********** JCOMBO1 **************
borneDate1 = new JComboBox();
Calendrier req = new Calendrier();
String[] valCal = req.lireDansTable();
borneDate1.addItem("");
for (int i = 0; i<= valCal.length - 1; i++){
borneDate1.addItem(valCal);
contrainte.gridx = x[0];
contrainte.gridy = y[0];
contrainte.gridwidth = larg[0];
contrainte.gridheight = haut[0];
contrainte.weightx = px[0];
contrainte.weighty = py[0];
contrainte.insets = new Insets(1, 1, 1, 1);
contrainte.ipadx = 20;
gridBg.setConstraints(borneDate1, contrainte);
conteneur.add(borneDate1);
//*********** JCOMBO2 **************
borneDate2 = new JComboBox();
req = new Calendrier();
valCal = req.lireDansTable();
borneDate2.addItem("");
for (int i = 0; i<= valCal.length - 1; i++){
borneDate2.addItem(valCal[i]);
contrainte.gridx = x[1];
contrainte.gridy = y[1];
contrainte.gridwidth = larg[1];
contrainte.gridheight = haut[1];
contrainte.weightx = px[1];
contrainte.weighty = py[1];
gridBg.setConstraints(borneDate2, contrainte);
conteneur.add(borneDate2);
//*********** JLABEL1 **************
lbl1 = new JLabel(" Dates de S�lection.");
contrainte.gridx = x[2];
contrainte.gridy = y[2];
contrainte.gridwidth = larg[2];
contrainte.gridheight = haut[2];
contrainte.weightx = px[2];
contrainte.weighty = py[2];
gridBg.setConstraints(lbl1, contrainte);
conteneur.add(lbl1);
//*********** BOUTON IMPRIMER **************
btmImprimer = new JButton("IMPRIMER");
contrainte.gridx = x[3];
contrainte.gridy = y[3];
contrainte.gridwidth = larg[3];
contrainte.gridheight = haut[3];
contrainte.weightx = px[3];
contrainte.weighty = py[3];
gridBg.setConstraints(btmImprimer, contrainte);
conteneur.add(btmImprimer);
//*********** BOUTON AUJOURD'HUI **************
btmAujourdhui = new JButton("Ce jour");
contrainte.gridx = x[4];
contrainte.gridy = y[4];
contrainte.gridwidth = larg[4];
contrainte.gridheight = haut[4];
contrainte.weightx = px[4];
contrainte.weighty = py[4];
gridBg.setConstraints(btmAujourdhui, contrainte);
conteneur.add(btmAujourdhui);
//*********** JLABEL 2 **************
lbl2 = new JLabel(" Journal.");
//lbl2.setVisible(false);
contrainte.gridx = x[5];
contrainte.gridy = y[5];
contrainte.gridwidth = larg[5];
contrainte.gridheight = haut[5];
contrainte.weightx = px[5];
contrainte.weighty = py[5];
gridBg.setConstraints(lbl2, contrainte);
conteneur.add(lbl2);
//*********** JLABEL 3 **************
lbl3 = new JLabel(" Adresse ");
contrainte.gridx = x[6];
contrainte.gridy = y[6];
contrainte.gridwidth = larg[6];
contrainte.gridheight = haut[6];
contrainte.weightx = px[6];
contrainte.weighty = py[6];
gridBg.setConstraints(lbl3, contrainte);
conteneur.add(lbl3);
//*********** JTEXTFIELD **************
txtPath = new JTextField();
contrainte.gridx = x[7];
contrainte.gridy = y[7];
contrainte.gridwidth = larg[7];
contrainte.gridheight = haut[7];
contrainte.weightx = px[7];
contrainte.weighty = py[7];
gridBg.setConstraints(txtPath, contrainte);
conteneur.add(txtPath);
//*********** JTREE **************
DefaultMutableTreeNode racine = new DefaultMutableTreeNode("MEDIACAST");
//**********RECUPERER LES LIGNES ANIMATEUR*******
parentNode = new DefaultMutableTreeNode("ANIMATEURS");
racine.add(parentNode);
GenererEnregistrement enregAnimateur = new GenererEnregistrement();
String[] sEnregAnim = enregAnimateur.lireDansTable("SELECT numero_anim FROM animateur ORDER BY numero_anim", "numero_anim");
for(int i = 0; i <= sEnregAnim.length - 1; i++){
fils = new DefaultMutableTreeNode(sEnregAnim[i]);
parentNode.add(fils);
//************RECUPERER LES LIGNES COMPTE******************
parentNode = new DefaultMutableTreeNode("COMPTES");
racine.add(parentNode);
GenererEnregistrement enregCompte = new GenererEnregistrement();
String[] sEnregCompte = enregCompte.lireDansTable("SELECT id_compte FROM compte ORDER BY id_compte", "id_compte");
for(int i = 0; i <= sEnregCompte.length - 1; i++){
fils = new DefaultMutableTreeNode(sEnregCompte[i]);
parentNode.add(fils);
//************RECUPERER LES LIGNES DATE******************
parentNode = new DefaultMutableTreeNode("DATES");
racine.add(parentNode);
GenererEnregistrement enregDate = new GenererEnregistrement();
String[] sEnregDate = enregDate.lireDansTable("SELECT daty FROM calendrier ORDER BY numero_enreg", "daty");
for(int i = 0; i <= sEnregDate.length - 1; i++){
fils = new DefaultMutableTreeNode(sEnregDate[i]);
parentNode.add(fils);
//*************AFFICHAGE******************
TreeNode root = racine;
arbre = new JTree(root);
JScrollPane paneTree = new JScrollPane();
//**********EVENEMENT CLICK DROIT DANS JTREE***************
MouseListener ml = new MouseAdapter() {
public void mousePressed(MouseEvent e) {
int selRow = arbre.getRowForLocation(e.getX(), e.getY());
TreePath selPath = arbre.getPathForRow(selRow);
if(selRow != -1) {
if(e.getButton() == 1) {
txtPath.setText(selPath.toString());
//**-> CREER LE VECTEUR POUR JTable**<-
String sPere = txtPath.getText();
int iResComp = sPere.compareTo("[MEDIACAST, ANIMATEURS]" + arbre.getLastSelectedPathComponent().toString() + "]");
//****ANIMATEURS***************
switch(iResComp){
case -49:
String sReq = "SELECT animateur.matricule, animateur.prenom, calendrier.daty, compte.id_compte";
sReq = sReq + " " + "FROM animateur, liaison";
sReq = sReq + " " + "WHERE animateur.numero_anim = ? AND liaison.numero_anim = ? AND calendrier.daty = liaison.daty";
String[] sParamIn = {
arbre.getLastSelectedPathComponent().toString(), arbre.getLastSelectedPathComponent().toString()
String[] sTypeParamIn = {
"entier", "entier"
String[] sParamOut = {
"matricule", "prenom", "daty", "id_compte"
GenererEnregistrement enreg = new GenererEnregistrement();
objEnreg = enreg.retournerToutEnreg(sReq, sParamIn, sTypeParamIn, sParamOut);
iNbEnreg = enreg.donnerNbEnreg(sReq, sParamIn, sTypeParamIn, sParamOut);
Object[] teteTable = {
"Matricule","Prenom","Date", "Numero Compte"
data = clickTreeNode(teteTable.length, iNbEnreg, sParamOut.length, objEnreg);
tableau = new JTable(data);
//*********** JTABLE **************
JScrollPane paneTab = new JScrollPane(tableau);
contrainte.gridx = x[9];
contrainte.gridy = y[9];
contrainte.gridwidth = larg[9];
contrainte.gridheight = haut[9];
contrainte.weightx = px[9];
contrainte.weighty = py[9];
gridBg.setConstraints(paneTab, contrainte);
conteneur.add(paneTab);
break;
else if(e.getButton() == 3) {
arbre.setSelectionPath(selPath);//Donne le focus au noeud click�
txtPath.setText(selPath.toString());
//***********POUR LES NOEUDS PERES*******************************
if(arbre.getLastSelectedPathComponent().toString() == "ANIMATEURS"){
System.out.println(selPath.getParentPath().toString());
//***********POUR LES NOEUDS FILS********************************
String sPere = txtPath.getText();
int iResComp = sPere.compareTo("[MEDIACAST, ANIMATEURS]" + arbre.getLastSelectedPathComponent().toString() + "]");
switch(iResComp){
case -49:
System.out.println("NOEUDS DANS ANIMATEURS:" + iResComp + " " + arbre.getLastSelectedPathComponent().toString());
break;
case 2:
if(arbre.getLastSelectedPathComponent().toString() != "COMPTES")
System.out.println("NOEUDS DANS COMPTES:" iResComp " " + arbre.getLastSelectedPathComponent().toString());
break;
case 3:
if(arbre.getLastSelectedPathComponent().toString() != "DATES")
System.out.println("NOEUDS DANS DATES:" + iResComp + " " + arbre.getLastSelectedPathComponent().toString());
break;
arbre.addMouseListener(ml);
paneTree.setViewportView(arbre);
contrainte.gridx = x[8];
contrainte.gridy = y[8];
contrainte.gridwidth = larg[8];
contrainte.gridheight = haut[8];
contrainte.weightx = px[8];
contrainte.weighty = py[8];
gridBg.setConstraints(paneTree, contrainte);
conteneur.add(paneTree);
//Afficher la fen�tre
ImageIcon ico = new ImageIcon("c:\\works\\mediacast\\gpao\\hlpglobe.gif");
this.setIconImage(ico.getImage());
//this.pack();
this.setVisible(true);
I want to generate automatically a table after a click on a tree node but I don't know when to procedePlease do the following.<br><br>
#In the location bar, type '''about:config''' and hit Enter.<br><br>
#In the filter at the top, type: '''keyword.URL'''<br><br>
#Double click it and remove whatever's in there and replace it with http://www.google.com/search?q= and then click OK.<br><br>
#Close the tab
The URL to add in "keyword.URL" becomes a link in this post, so right click it and choose "Copy Link Location" to copy it to the Windows clipboard. Then hit CTRL+V to paste it. Saves you having to type the whole thing.
'''To reset your home page, do the following'''.<br><br>
* Go to the site you want to set as your homepage.<br><br>
* Click the Firefox button, go to '''Options '''| '''Options '''| '''General'''.<br><br>
* Make sure it says "''Show My Homepage''" in the first dropdown menu.<br><br>
* Click the button called "'''Use Current Pages'''" to set the homepage to the one you have on the screen.<br>
N.B. Some of your plugins are out of date which exposes your system to attack. Please visit the [http://www.mozilla.com/en-US/plugincheck/ Plugins Check] page and update where necessary.
Also, click '''Help '''| '''Check For Updates''' to update Firefox to 3.6.19 -
How to go to different screen by Double Clicking a Tree Node
Hi guys,
I have a tool where i have a top panel and a bottompanel. On the top panel, i add Tab buttons so that if anyone is clicked, it will repaint the bottom panel with corresponding Tab screen(New screen will come with the top panel remaining same). There are Actions, Conditions,Trees tabs on the main panel. There is also a Home Tab on the main panel which when clicked brings up a tree structure on the left hand side of the bottom panel which has some parent and child nodes depending on whether they are files or directories. There are folders(parent nodes) with names Trees & Conditions also related to the Tabs on the main panel under which i have some file names. I am including the method which creates the nodes. The problem is that when i double click any file(not a directory), it should take me to the screen which is actually populated when i select the Trees/Conditions tab and select the corresponding file name from the drop down provided in that screen and click a view button. So, it is something like adding an actionListener or SelectionListener. But, i am unable to do it. Can anyone suggest me how to do it?
The class involving the following looks something like this.
public class MainHomePanel extends AbstractDtPanel {And the AbstractDtPanel looks something like this.
public abstract class AbstractDtPanel extends JPanelFinally, the method to create the Nodes is given below
private void createNodes(DefaultMutableTreeNode top) {
DefaultMutableTreeNode parentFolder = null;
DefaultMutableTreeNode innerFolder = null;
DefaultMutableTreeNode fileNames = null;
ArrayList folderName = new ArrayList();
ArrayList innerFolderNames = new ArrayList();
ArrayList fileNameArray = new ArrayList();
CommonUtil cu = new CommonUtil();
folderName =cu.getFolderNames(sessionData.getSysPath());
if(folderName != null && folderName.size() > 0) {
for(int i =0; i<folderName.size(); i++) {
parentFolder = new DefaultMutableTreeNode((String)folderName.get(i));
top.add(parentFolder);
innerFolderNames = new ArrayList();
innerFolderNames = cu.getInnerFolderNames(sessionData.getSysPath(), (String)folderName.get(i));
for(int k=0; k<innerFolderNames.size();k++) {
innerFolder = new DefaultMutableTreeNode((String)innerFolderNames.get(k));
parentFolder.add(innerFolder);
fileNameArray = new ArrayList();
fileNameArray = cu.getFileNames(sessionData.getSysPath(), (String)folderName.get(i),(String)innerFolderNames.get(k));
for(int j=0; j<fileNameArray.size(); j++) {
fileNames = new DefaultMutableTreeNode(fileNameArray.get(j));
innerFolder.add(fileNames);
}Sorry, a small mistake. The "createNodes" method is in the "MainHomePanel" class.
Maybe you are looking for
-
I have several computers throughout my house and work, but mainly use my "Desktop-MAIN. " I frequently add different add-ons, scripts, extensions, etc. as the need for one arises. When the time comes that I am using my laptop in bed, or my sons compu
-
Macbook Pro 7.1 not booting up after Software update
Hello everyone, I have a problem, but first some context? I recently got my mom's old Macbook Pro(7.1) with Intel's 2.4 Ghz C2D and Nvidia 320M graphics. A small upgrade from my 2009 MBP(5.5) but is in much better shape than my old machine. In that u
-
Photo File Size and Photoshop processing
On previous discussion, Steve Grisetti noted that problems with burning are sometimes associated with photo file size. The post stated that Photoshop Elements has a batch processing selection that can resize photos all at once. I when to Photoshop
-
Z68A-GD65 (G3) not always finding ocz vertex 3
Me and a friend just bought identical setups, among them was the Z68A-GD65 (G3) motherboard and OCZ Vertex 3 120GB SSD. Both of us get some random crashes and sometimes when trying to boot the computer the SSD does not show up in BIOS (therefore can'
-
Hi, Can i use pro* c program in forms 6i ? if yes , then how ? thank you..