I really needed this one implementation of tree table on mvc

hi there i'm burning my as* reading some tutorials about tree table and all i found was a complex codes
i just wanna know if you know some codes of a simple tree table where in the content of a tree or table was hardcoded and there are no thingy effects such as sortes. coz i really wanted to implement this on mvc since we are using STable here's the sample code:
View:
package treeTable;
import java.awt.*;
//import java.awt.event.MouseEvent;
//import java.util.EventObject;
import javax.swing.*;
//import javax.swing.table.TableCellEditor;
//import javax.swing.table.TableCellRenderer;
import javax.swing.table.TableColumnModel;
//import javax.swing.tree.DefaultTreeCellRenderer;
//import javax.swing.tree.DefaultTreeSelectionModel;
//import javax.swing.tree.TreeCellRenderer;
//import javax.swing.tree.TreeModel;
//import javax.swing.tree.TreePath;
import javax.swing.border.*;
//import javax.swing.event.ListSelectionEvent;
//import javax.swing.event.ListSelectionListener;
import com.jgoodies.forms.layout.CellConstraints;
import com.jgoodies.forms.layout.FormLayout;
//import com.borland.jbcl.layout.*;
import org.scopemvc.core.Control;
import org.scopemvc.core.Selector;
import org.scopemvc.view.swing.*;
* View for PosCCYFX
* @author Raymond Isip
public class HistoricTotalPositionByCurrencyFXView extends SPanel implements HistoricTotalPositionByCurrencyFXConstants {
// Instance variables for the selectors used by the JBuilder designer
Selector cashStructTBLSelector = CASH_STRUCT_TBL_SELECTOR;
Selector selectedCashStructTBLSelector = SELECTED_CASH_STRUCT_TBL_SELECTOR;
Selector optionsTBLSelector = OPTIONS_TBL_SELECTOR;
Selector selectedOptionsTBLSelector = SELECTED_OPTIONS_TBL_SELECTOR;
Selector fxcashStructuredFwdLBLSelector = FXCASH_STRUCTURED_FWD_LBL_SELECTOR;
Selector cashLBLSelector = CASH_LBL_SELECTOR;
Selector structFwdsLBLSelector = STRUCT_FWDS_LBL_SELECTOR;
Selector optionsLBLSelector = OPTIONS_LBL_SELECTOR;
     FormLayout MainFormLayout = new FormLayout ("12,p,12,p,12", "11,p,11");
     FormLayout LeftFormLayout = new FormLayout ("280,250,87", "p,p");
     FormLayout LeftTableFormLayout = new FormLayout ("p", "p,p");
     FormLayout RightTableFormLayout = new FormLayout ("300", "p,p");
     FormLayout LeftSubFormLayout = new FormLayout ("100,50,100", "p");
     CellConstraints cc = new CellConstraints();
Border cashStructTBLBorder;
STable cashStructTBLTable = new STable();
JScrollPane cashStructTBLScrollPane = new JScrollPane(cashStructTBLTable);
Border optionsTBLBorder;
STable optionsTBLTable = new STable();
JScrollPane optionsTBLScrollPane = new JScrollPane(optionsTBLTable);
JLabel fxcashStructuredFwdLBLLabel = new JLabel();
SLabel fxcashStructuredFwdLBLSLabel = new SLabel();
JLabel cashLBLLabel = new JLabel();
SLabel cashLBLSLabel = new SLabel();
JLabel structFwdsLBLLabel = new JLabel();
SLabel structFwdsLBLSLabel = new SLabel();
JLabel optionsLBLLabel = new JLabel();
SLabel optionsLBLSLabel = new SLabel();
* Constructor for the PosCCYFXView object
public HistoricTotalPositionByCurrencyFXView() {
jbInit();
* The main program for the PosCCYFXView class
* @param args The command line arguments
public static void main(String[] args) {
          HistoricTotalPositionByCurrencyFXView view = new HistoricTotalPositionByCurrencyFXView();
JFrame frame = new JFrame();
frame.setSize(800, 600);
frame.getContentPane().add(view);
frame.setVisible(true);
* Used by Scope to set the window frame title.
* @return The title value
public String getTitle() {
return "PosCCYFX";
* Used by Scope to end the application when the window is closed.
* @return The closeControl value
public Control getCloseControl() {
return new Control(HistoricTotalPositionByCurrencyFXController.EXIT_CONTROL_ID);
* Description of the Method
* @return Description of the Return Value
public boolean validateForm() {
return true;
private void jbInit() {
this.setLayout(MainFormLayout);
     JPanel LeftPanel = new JPanel();
     JPanel LeftSubPanel = new JPanel();
     JPanel LeftTablePanel = new JPanel();
          JPanel RightTablePanel = new JPanel();
     LeftPanel.setLayout(LeftFormLayout);
          LeftSubPanel.setLayout(LeftSubFormLayout);
          LeftTablePanel.setLayout(LeftTableFormLayout);
          RightTablePanel.setLayout(RightTableFormLayout);
          JScrollPane LeftScrollPane = new JScrollPane(LeftTablePanel);
          //LeftScrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
          LeftScrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_NEVER);
          JScrollPane RightScrollPane = new JScrollPane(RightTablePanel);
          RightScrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
          RightScrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_NEVER);
          LeftScrollPane.setPreferredSize(new Dimension(620,330));
          RightScrollPane.setPreferredSize(new Dimension(300,330));
cashStructTBLTable.setSelector(cashStructTBLSelector);
cashStructTBLTable.setSelectionSelector(selectedCashStructTBLSelector);
String[] columnSelects = {"col1", "col2", "col3", "col4", "col5","col6", "col7", "col8", "col9", "col10"};
String[] columnNames = {"USD", "Date","Product Type", "Details", "Buy", "Sell", "Sub Total", "Buy", "Sell", "Total"};
int colWidths[] = {100,70,70,40,50,50,60,50,50,60};
cashStructTBLTable.setColumnSelectors(columnSelects);
cashStructTBLTable.setColumnNames(columnNames);
cashStructTBLTable.setPreferredScrollableViewportSize(new Dimension(600,273));
TableColumnModel cashStructTBLModel = cashStructTBLTable.getColumnModel();
for (int x=0; x<colWidths.length; x++) {
int width = colWidths[x];
cashStructTBLModel.getColumn(x).setPreferredWidth(width);}
          cashStructTBLTable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
cashStructTBLScrollPane.setBorder(cashStructTBLBorder);
cashStructTBLScrollPane.getViewport().add(cashStructTBLTable, null);
optionsTBLTable.setSelector(optionsTBLSelector);
optionsTBLTable.setSelectionSelector(selectedOptionsTBLSelector);
String[] columnSelects1 = {"col1", "col2", "col3"};
String[] columnNames1 = {"Buy", "Sell", "Total"};
int colWidths1[] = {90,90,100};
optionsTBLTable.setColumnSelectors(columnSelects1);
optionsTBLTable.setColumnNames(columnNames1);
optionsTBLTable.setPreferredScrollableViewportSize(new Dimension(300,290));
TableColumnModel optionsTBLModel = optionsTBLTable.getColumnModel();
for (int x1=0; x1<colWidths1.length; x1++) {
int width1 = colWidths1[x1];
optionsTBLModel.getColumn(x1).setPreferredWidth(width1); }
          optionsTBLTable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
optionsTBLScrollPane.setBorder(optionsTBLBorder);
optionsTBLScrollPane.getViewport().add(optionsTBLTable, null);
          optionsTBLTable.setEnabled(false);
fxcashStructuredFwdLBLLabel.setText(" FX Cash & Structured Forwards");
          fxcashStructuredFwdLBLLabel.setBorder(BorderFactory.createRaisedBevelBorder());
          cashLBLLabel.setText(" Cash");
          cashLBLLabel.setBorder(BorderFactory.createRaisedBevelBorder());
          structFwdsLBLLabel.setText(" Structured FWDs");
          structFwdsLBLLabel.setBorder(BorderFactory.createRaisedBevelBorder());
          optionsLBLLabel.setText(" Options");
          optionsLBLLabel.setBorder(BorderFactory.createRaisedBevelBorder());
          /******************************Fillers*************************************/
JLabel sample = new JLabel(" ");
          JLabel sample1 = new JLabel(" ");
          JLabel sample2 = new JLabel(" ");
          JLabel sample3 = new JLabel(" ");
          JLabel sample4 = new JLabel(" ");
          sample.setBorder(BorderFactory.createRaisedBevelBorder());
          sample1.setBorder(BorderFactory.createRaisedBevelBorder());
          sample2.setBorder(BorderFactory.createRaisedBevelBorder());
          sample3.setBorder(BorderFactory.createRaisedBevelBorder());
          sample4.setBorder(BorderFactory.createRaisedBevelBorder());
          LeftSubPanel.add(sample, cc.xy(2,1));
          LeftPanel.add(sample1, cc.xy(1,1));
          LeftPanel.add(sample2, cc.xy(3,1));
          LeftPanel.add(sample3, cc.xy(1,2));
          LeftPanel.add(sample4, cc.xy(3,2));
          LeftSubPanel.add(cashLBLLabel, cc.xy(1,1));
          LeftSubPanel.add(structFwdsLBLLabel, cc.xy(3,1));
          LeftPanel.add(fxcashStructuredFwdLBLLabel, cc.xy(2,1));
          LeftPanel.add(LeftSubPanel, cc.xy(2,2));
          LeftTablePanel.add(LeftPanel, cc.xy(1,1));
          LeftTablePanel.add(cashStructTBLScrollPane, cc.xy(1,2));
          RightTablePanel.add(optionsLBLLabel, cc.xy(1,1));
          RightTablePanel.add(optionsTBLScrollPane, cc.xy(1,2));
          this.add(LeftScrollPane, cc.xy(2,2));
          this.add(RightScrollPane, cc.xy(4,2));
Model:
package treeTable;
import java.util.ArrayList;
import java.util.List;
import org.scopemvc.core.ModelChangeEvent;
import org.scopemvc.core.Selector;
import org.scopemvc.model.basic.*;
import org.scopemvc.model.collection.ListModel;
* Model for for PosCCYFX
* @author Raymond Isip
public class HistoricTotalPositionByCurrencyFXModel extends BasicModel implements HistoricTotalPositionByCurrencyFXConstants {
private ListModel cashStructTBLList = new ListModel();
private CashStructTBLItem selectedCashStructTBL = null;
private ListModel optionsTBLList = new ListModel();
private OptionsTBLItem selectedOptionsTBL = null;
private String fxcashStructuredFwdLBL;
private String cashLBL;
private String structFwdsLBL;
private String optionsLBL;
* Constructor for the PosCCYFXModel object
public HistoricTotalPositionByCurrencyFXModel() {
          Object[] data1= new Object[]{"100","100","200"};
          Object[] data2= new Object[]{"","29.Apr.2004","Forward","SGD","200","100","300","250","150","400"};
          for(int x = 0; x<=25;x++){
               selectedOptionsTBL = new OptionsTBLItem(data1);
               optionsTBLList.add(selectedOptionsTBL);
               selectedCashStructTBL = new CashStructTBLItem(data2);
               cashStructTBLList.add(selectedCashStructTBL);
* Gets the cashStructTBL list
* @return The cashStructTBL list
public List getCashStructTBLList() {
return cashStructTBLList;
* Sets the cashStructTBL list
* @param newCashStructTBLList The new cashStructTBL list
public void setCashStructTBLList(List newCashStructTBLList) {
cashStructTBLList.setList(newCashStructTBLList);
this.fireModelChange(ModelChangeEvent.VALUE_CHANGED, CASH_STRUCT_TBL_SELECTOR);
* Gets the selected cashStructTBL item
* @return A cashStructTBL item
public CashStructTBLItem getSelectedCashStructTBL() {
return selectedCashStructTBL;
* Sets the selected cashStructTBL item
* @param newCashStructTBL The new cashStructTBL item
public void setSelectedCashStructTBL(CashStructTBLItem newCashStructTBL) {
selectedCashStructTBL = newCashStructTBL;
this.fireModelChange(ModelChangeEvent.VALUE_CHANGED, SELECTED_CASH_STRUCT_TBL_SELECTOR) ;
* Gets the optionsTBL list
* @return The optionsTBL list
public List getOptionsTBLList() {
return optionsTBLList;
* Sets the optionsTBL list
* @param newOptionsTBLList The new optionsTBL list
public void setOptionsTBLList(List newOptionsTBLList) {
optionsTBLList.setList(newOptionsTBLList);
this.fireModelChange(ModelChangeEvent.VALUE_CHANGED, OPTIONS_TBL_SELECTOR);
* Gets the selected optionsTBL item
* @return A optionsTBL item
public OptionsTBLItem getSelectedOptionsTBL() {
return selectedOptionsTBL;
* Sets the selected optionsTBL item
* @param newOptionsTBL The new optionsTBL item
public void setSelectedOptionsTBL(OptionsTBLItem newOptionsTBL) {
selectedOptionsTBL = newOptionsTBL;
this.fireModelChange(ModelChangeEvent.VALUE_CHANGED, SELECTED_OPTIONS_TBL_SELECTOR) ;
* Gets the fxcashStructuredFwdLBL attribute
* @return The fxcashStructuredFwdLBL value
public String getFxcashStructuredFwdLBL() {
return fxcashStructuredFwdLBL;
* Sets the fxcashStructuredFwdLBL attribute
* @param newFxcashStructuredFwdLBL The new fxcashStructuredFwdLBL value
public void setFxcashStructuredFwdLBL(String newFxcashStructuredFwdLBL) {
fxcashStructuredFwdLBL = newFxcashStructuredFwdLBL;
this.fireModelChange(ModelChangeEvent.VALUE_CHANGED, FXCASH_STRUCTURED_FWD_LBL_SELECTOR);
* Gets the cashLBL attribute
* @return The cashLBL value
public String getCashLBL() {
return cashLBL;
* Sets the cashLBL attribute
* @param newCashLBL The new cashLBL value
public void setCashLBL(String newCashLBL) {
cashLBL = newCashLBL;
this.fireModelChange(ModelChangeEvent.VALUE_CHANGED, CASH_LBL_SELECTOR);
* Gets the structFwdsLBL attribute
* @return The structFwdsLBL value
public String getStructFwdsLBL() {
return structFwdsLBL;
* Sets the structFwdsLBL attribute
* @param newStructFwdsLBL The new structFwdsLBL value
public void setStructFwdsLBL(String newStructFwdsLBL) {
structFwdsLBL = newStructFwdsLBL;
this.fireModelChange(ModelChangeEvent.VALUE_CHANGED, STRUCT_FWDS_LBL_SELECTOR);
* Gets the optionsLBL attribute
* @return The optionsLBL value
public String getOptionsLBL() {
return optionsLBL;
* Sets the optionsLBL attribute
* @param newOptionsLBL The new optionsLBL value
public void setOptionsLBL(String newOptionsLBL) {
optionsLBL = newOptionsLBL;
this.fireModelChange(ModelChangeEvent.VALUE_CHANGED, OPTIONS_LBL_SELECTOR);
Controller:
package treeTable;
import java.awt.Dimension;
import org.scopemvc.controller.basic.BasicController;
import org.scopemvc.core.Control;
import org.scopemvc.core.ControlException;
* Controller for PosCCYFX
* @author Raymond Isip
public class HistoricTotalPositionByCurrencyFXController extends BasicController implements HistoricTotalPositionByCurrencyFXConstants {
* Constructor for the PosCCYFXController object
public HistoricTotalPositionByCurrencyFXController() {
setModel(new HistoricTotalPositionByCurrencyFXModel());
setView(new HistoricTotalPositionByCurrencyFXView());
     public HistoricTotalPositionByCurrencyFXController(HistoricTotalPositionByCurrencyFXView view) {
          setModel(new HistoricTotalPositionByCurrencyFXModel());
          setView(view);
* Call this after creating the Controller to make it perform
* its initial action. Default impl opens the view in a new frame.
public void startup() {
          HistoricTotalPositionByCurrencyFXView myView = (HistoricTotalPositionByCurrencyFXView) getView();
// This is the code that centers the view
myView.setViewBounds(myView.CENTRED);
myView.setPreferredSize(new Dimension(1000, 600));
showView(myView);
* Can be called by a parent to shutdown and remove this from
* the chain of responsibility. Default impl does this:
* <ul>
* <li>call shutdown() on every child controller</li>
* <li>call hideView()</li>
* <li>setParent(null)</li>
* </ul>
public void shutdown() {
super.shutdown();
* Handles all controls
* @param inControl The control token invoking the presentation logic
* @throws ControlException when an error occured while handling the control
protected void doHandleControl(Control inControl) throws ControlException {
try {
if (inControl.matchesID(SAVE)) {
inControl.markMatched();
doSave();
} else if (inControl.matchesID(RESET)) {
inControl.markMatched();
doReset();
} else if (inControl.matchesID(GOT_OPTIONS_TBL)) {
inControl.markMatched();
doGotOptionsTbl();
} catch (ControlException ce) {
throw ce;
} catch (RuntimeException re) {
re.printStackTrace();
throw re;     
} finally {
// do cleanup
* Handles the SAVE control
* @todo Implement doSave
protected void doSave() throws ControlException {
// to implement
* Handles the RESET control
* @todo Implement doReset
protected void doReset() throws ControlException {
// to implement
* Handles the GOT_OPTIONS_TBL control
* @todo Implement doGotOptionsTbl
protected void doGotOptionsTbl() throws ControlException {
// to implement
Launcher:
package treeTable;
import org.scopemvc.util.ResourceLoader;
import org.scopemvc.util.UIStrings;
* Launcher for PosCCYFX
* @author Raymond Isip
public class HistoricTotalPositionByCurrencyFXLauncher {
* Constructor for the PosCCYFXLauncher object
public HistoricTotalPositionByCurrencyFXLauncher() {
* Start the PosCCYFX application
* @param args The command line arguments
public static void main(String[] args) {
// TODO: change 'resources' by the name of your properties file
UIStrings.setPropertiesName("resources");
ResourceLoader.setClientClassLoader(HistoricTotalPositionByCurrencyFXLauncher.class.getClassLoader());
          HistoricTotalPositionByCurrencyFXController mainController = new HistoricTotalPositionByCurrencyFXController();
mainController.startup();
Constant:
package treeTable;
import org.scopemvc.core.Selector;
* Constants for the selectors and the control ids defined in PosCCYFX
* @author Raymond Isip
public interface HistoricTotalPositionByCurrencyFXConstants {
// Selectors
Selector CASH_STRUCT_TBL_SELECTOR = Selector.fromString("cashStructTBLList");
Selector SELECTED_CASH_STRUCT_TBL_SELECTOR = Selector.fromString("selectedCashStructTBL");
Selector OPTIONS_TBL_SELECTOR = Selector.fromString("optionsTBLList");
Selector SELECTED_OPTIONS_TBL_SELECTOR = Selector.fromString("selectedOptionsTBL");
Selector FXCASH_STRUCTURED_FWD_LBL_SELECTOR = Selector.fromString("fxcashStructuredFwdLBL");
Selector CASH_LBL_SELECTOR = Selector.fromString("cashLBL");
Selector STRUCT_FWDS_LBL_SELECTOR = Selector.fromString("structFwdsLBL");
Selector OPTIONS_LBL_SELECTOR = Selector.fromString("optionsLBL");
// Control IDs
* The SAVE control ID for the save button
String SAVE = "SAVE";
* The RESET control ID for the reset button
String RESET = "RESET";
* The GOT_OPTIONS_TBL control ID for the optionsTBL field
String GOT_OPTIONS_TBL = "GOT_OPTIONS_TBL";
CashStructTBLItem:
package treeTable;
* Item for CashStructTBL
* @author Raymond Isip
public class CashStructTBLItem {
     String col1= new String();
     String col2= new String();
     String col3= new String();
     String col4= new String();
     String col5= new String();
     String col6= new String();
     String col7= new String();
     String col8= new String();
     String col9= new String();
     String col10= new String();
* Constructor for the CashStructTBLItem object
     public CashStructTBLItem(Object[] data1) {
          setCol1((String)data1[0]);
          setCol2((String)data1[1]);
          setCol3((String)data1[2]);
          setCol4((String)data1[3]);
          setCol5((String)data1[4]);
          setCol6((String)data1[5]);     
          setCol7((String)data1[6]);
          setCol8((String)data1[7]);
          setCol9((String)data1[8]);     
          setCol10((String)data1[9]);
     * @return
     public String getCol1() {
          return col1;
     * @return
     public String getCol10() {
          return col10;
     * @return
     public String getCol2() {
          return col2;
     * @return
     public String getCol3() {
          return col3;
     * @return
     public String getCol4() {
          return col4;
     * @return
     public String getCol5() {
          return col5;
     * @return
     public String getCol6() {
          return col6;
     * @return
     public String getCol7() {
          return col7;
     * @return
     public String getCol8() {
          return col8;
     * @return
     public String getCol9() {
          return col9;
     * @param string
     public void setCol1(String string) {
          col1 = string;
     * @param string
     public void setCol10(String string) {
          col10 = string;
     * @param string
     public void setCol2(String string) {
          col2 = string;
     * @param string
     public void setCol3(String string) {
          col3 = string;
     * @param string
     public void setCol4(String string) {
          col4 = string;
     * @param string
     public void setCol5(String string) {
          col5 = string;
     * @param string
     public void setCol6(String string) {
          col6 = string;
     * @param string
     public void setCol7(String string) {
          col7 = string;
     * @param string
     public void setCol8(String string) {
          col8 = string;
     * @param string
     public void setCol9(String string) {
          col9 = string;
OptionsTBLItem:
package treeTable;
* Item for OptionsTBL
* @author Raymond Isip
public class OptionsTBLItem {
     String col1= new String();
     String col2= new String();
     String col3= new String();
* Constructor for the OptionsTBLItem object
     public OptionsTBLItem(Object[] data1) {
          setCol1((String)data1[0]);
          setCol2((String)data1[1]);
          setCol3((String)data1[2]);
     * @return
     public String getCol1() {
          return col1;
     * @return
     public String getCol2() {
          return col2;
     * @return
     public String getCol3() {
          return col3;
     * @param string
     public void setCol1(String string) {
          col1 = string;
     * @param string
     public void setCol2(String string) {
          col2 = string;
     * @param string
     public void setCol3(String string) {
          col3 = string;
All I want is for the tree table renderers or editors to use the table created on the vieew part of this mvc
i will greatly appreciates your help

As a start point take sources of JTable (the component and datamodel) and rebuild them. I have made such component for my company product. To write it I spend 5 days and about two weeks for debugging. This code cannot be very simple. As it should be fully mutable. For example, each line should have bkcolor, fgcolor, font, etc. Each sell has bkcolor, fgcolor, font, insets, border, alighnment, visibility, etc. Each node has its cell, indent and array of data cells. To support fast scrolling the painting should be buffered. My components also supports text line wrapping. The tree component consists of three parts: the header, the left part and the matrix of data. This component can be printed (this is a secial code for paging and scaling).

Similar Messages

  • Query - copy layout - really need this

    Hello,
    is there a way, a workaround, or what so ever to
    copy / download a Layout of a Query.
    (and then import it ... )
    I really need this so please explain me how I could do this!
    thx in advance!
    greetings
    Steven

    Micky,
    I already knew how to transport a query itself but my problem
    is that there are "layouts" designed (and assigned) to these query.
    so when i want to copy or transport a query, i also want to transport/copy the
    layouts that are created...
    example: Query Q has 2 layouts assigned to it (L1 and L2)
    so now, I want to copy Q > Q2 so that it also has those two layouts included
    so if you know a trick to copy a query (with the layouts inside - or a way to assign these layouts afterwards)
    please let me know!!
    thx already for your reaction

  • Hey guys, I recently got an Ipad 4 but it seems that there's no facetime on it. I really need this feature to be working. any suggestions?

    hey guys, I recently got an Ipad 4 but it seems that there's no facetime on it. I really need this feature to be working. any suggestions?

    Iif you bought it from the UAE or other middle eastern country, facetime is blocked at the hardware level and can never be installed.

  • MAIL: How do I get rid of *VIP mailbox? I really need this gone. Thanks.

    MAIL: How do I get rid of *VIP mailbox? I really need this gone. Thanks.

    Tried this - I think I'm doing it right - and not working. All incoming and outgoing emails appear in the VIPs and also in another unnamed stared folder in that box. I cannot delet either mailbox. I can delete mail within the boxes by choosing and deleting , often I have to do it 3 or 4 times before they decide to actually go away. Clicking on the star just highlights the message and then I delete, but new message from same recipient still shows up again. When the VIPs box and the folder in it are completely empty they are still there. Am I doing something wrong?

  • When do I really need to create indexes for a table?

    Once I was talking to a dba in a conference.
    He told me that not always I have to create indexes for a single table, it depends of its size.
    He said that Oracle read registers in blocks, and for a small table Oracle can read it fully, in a single operation, so in those cases I don't need indexes and statistcs.
    So I would like to know how to calculate it.
    When do I really need to create indexes for a table?
    If someone know any documment that explain that, or have some tips, I'd aprecciate.
    Thanks.
    P.S.: The version that I'm using is Oracle 9.2.0.4.0.

    Hi Vin
    You mentioned so many mistakes here, I don't know where to begin ...
    vprabhu_2000 wrote:
    There are different kinds of Index. B-tree Index is by default. Bit map index, function based index,index organized table.
    B-tree index if the table is large This is incorrect. Small tables, even those consisting of rows within just one block, can benefit from an index. There is no table size too small in which an index might not be benefical. William Robertson in his post references links to my blog where I discuss this.
    and if you want to retrieve 10 % or less of data then B-tree index is good. This is all wrong as well. A FTS on a (say) million row table could very well be more efficient when retrieving (say) just 1% of data. An index could very well be more efficient when retrieving 100% of data. There's nothing special about 10% and there is no such magic number ...
    >
    Bit Map Index - On low cardinality columns like Sex for eg which could have values Male,Female create a bit map index. Completely and utterly wrong. A bitmap index might be the perfect type of index, better than a B-Tree, even if there are (say) 100,000 distinct values in the table. That a bitmap index is only suitable for low cardinality columns is just not true. And what if it's an OLTP application, with lot's of concurrent DML on the underlining table, do you really think a bitmap index would be a good idea ?
    >
    You can also create an Index organized table if there are less rows to be stored so data is stored only once in index and not in table. Not sure what you mean here but an IOT can potentially be useful if you have very large numbers of rows in the table. The number of rows has nothing to do with whether an IOT is suitable or not.
    >
    Hope this info helps. Considering most of it is wrong, I'm not sure it really helps at all :(
    Cheers
    Richard Foote
    http://richardfoote.wordpress.com/

  • Why did we really need this "spanning-tree extend system-id" command?

    Folks,
    On the Spanning tree protocol I understood how does this spanning-tree extend system-id command work.
    But I have not understood why it is in place? or why do we really need it?
    Regards,
    Nikhil Kulkarni.

    Hi Nikhil,
    The STP and RSTP standard specifications mandate that each switch running STP/RSTP must have a unique Bridge ID (BID). Because Cisco runs STP or RSTP in each VLAN separately (called PVST and RPVST or PVRST), in each VLAN, the switch behaves like a standalone (albeit virtual) switch and thus, each STP/RSTP instance is required to have a unique BID to comply with the standard. Simply, having X VLANs means having X separate STP/RSTP instances and X unique BIDs.
    The question now is how to make sure the BIDs of STP/RSTP instances run on the same switch in different VLANs are truly unique. Older switches actually had a large reserve of MAC addresses. As new VLANs were created, these switches allocated a new MAC address for each new STP/RSTP instance in a new VLAN (recall that the BID originally consisted of the priority and the MAC address), making the BIDs unique.
    However, the consumption of MAC addresses this way was simply too large and ineffective. At the same time, having 65536 different values for priority in the BID was largely useless. So IEEE came with the idea of Extended System ID in which they reused a part of the priority field for a unique instance identifier. In Cisco's implementation, this field is populated with the VLAN number the STP/RSTP instance runs in. This easily and effectively makes the BID unique - even with the same priority for all VLANs on a single switch, and a single switch MAC address, multiple STP/RSTP instances running on this same switch with the same priority have different BIDs thanks to different VLAN numbers embedded into the BID.
    Some switch platforms actually allowed you to deactivate the Extended System ID and revert to the older style of assigning unique MAC addresses to individual STP/RSTP instance BIDs. That is why the command spanning-tree extend system-id exists in the first place. However, removing this command is only possible on those switching platforms which are equipped with 1024 MAC addresses for their disposal. Most new switching platforms have only 64 MAC addresses for their internal use, and while the spanning-tree extend system-id command is present in their configuration, you can not remove it. It is simply there to inform you that the Extended System ID is being used but you can not really deactivate it.
    Read more here:
    http://www.cisco.com/en/US/docs/switches/lan/catalyst6500/ios/12.2SXF/native/configuration/guide/spantree.html#wp1096536
    Best regards,
    Peter

  • Hi i am paying for the photoshop and i can't use and download it and i really need this app for my art exam which is on wednesday please help me, hi i am paying for the photoshop and i can't use and download it and i really need this app for my art exam w

    i need some one to help me  for downloading photoshop on my mac and i am already paying monthly for it but i can not use it  and i really need help because i need photoshop for my art exam which is on wednesday

    What is the problem your having downloading the creative cloud desktop application then using it to download and install Photoshop.  You can try the direct download if you want to bypass the creative clod desktop application install. Still it mad be installed if you use the direct installer.  Pleas read the download instruction and follow them else you will be denied access.  Adobe CC 2014 Direct Download Links: Creative Cloud 2014 Release | ProDesignTools

  • Was updating itunes and backing up my iphone 4 at same time itunes shut down computer now i have lost everything guys i really need this stuff back is there any way to do this even if i have to send it away please help me!!

    was updating itunes and backing up my iphone 4 at the same time then itunes said it need to shut down the computer sill me asumed the back up had finished (it hadn't) and now all i got is half of the pictures i had nothing else i really  really need it all back is there any way to do this even if i have to send my phone away??? please i need help..
    jak

    can not believe it but did a system restor on windows vister and got it all back you can chose the date you want to restore you computer too and it worked sooooooo happy love it.

  • More than One root in Tree Table

    Hi all
    I am Using Jdev version of 10.1.3 . I am using tree table component .
    I am not able to display more than one root at the same time. It usually displays one root and children underneath it if there are multiple roots it has navigation.
    But i require to display more than one root at the same time without any navigation. If it is not possible in jdev 10.1.3 how can i acheive the result , i am bound to use jdev 10.1.3 and i need to have a table which has parent and child and all the parents to be displayed at same time, Should i try with any custom renderer.
    PleaseAny light on this would be helpful.
    Thanks
    Pavan

    i can select them from different parents that depends on what i want to select Like:
    Admin-Sam
    -Dinda
    Users-David
    -Marylinn
    -Sandra
    for ex: i wana choose Sam , Sandra & David to view thier times and OT on selecting them

  • I really need this type of HP touchscreen Laptop! wacom penabled 15"...

    Hi there!
    I have been searching for years for a laptop that suits my needs, none really exist yet. If they do exist they use N-trig instead of Wacom, which doesn't work in photoshop.
    Here are my specifications to what I would absolutely be thrilled to buy!
    *15.5" or so screen, not anything below 15" and not anything much larger.
    *Light weight, under 5lbs. Prefer as light as it can be, however if removable from the keyboard this isn't really required.
    *Touch screen (two finger capable)
    *Wacom pen with eraser with pressure sensitivity! I prefer the 1,000ish pressure sensitivity level.
    *8gb ddr3 ram, upgradeable if desired.
    *Removable battery, perfer at least 8 hours battery life on low light. 9 is even better.
    *500 GB HD - 1TB HD.
    *Tablet mode : as in the folding display mode.
    *Good graphics card for gaming. I'm not too knowledged on them, but would be great if I could do some 3d modeling with maya or 3dsmax with as much ease as possible.
    Things I would also love, not required, but preferred
    *Removable from the keyboard so its lighter weight to carry around.
    *Backlit keyboard, blue or color-changing option. Light up keys are even nicer, not required at all.
    *Not a lot of glare! Especially being an artist, I love lenovo's screens and i'm not a fan of matte, I like glossy but not a crazy glare like what i've seen from the glossiest laptops around. This is pretty important to me.
    *Track pad on keyboard with buttons that click for the mouse.
    *HD webcam
    My favorite design has been silver, especially when it's shiny with a black keyboard. I like Sony Vaio's sleek look and keyboard style.
    Not necessary but unique ideas
    *Tent mode (like the yoga tablets)
    *The other display modes some laptops have would also be nice for an artist.
    *A string which can be tied to a part of the laptop to not lose it.
    *A hole for the pen within the laptop for easy storage and access.
    *2 or preferably 3 USB ports. More are better of course!
    *CD drive but doesn't matter much.
    *Volume control on the keyboard would be awesome but doesn't change my mind about purchase.
    I GREATLY appreciate the time to read over my suggestions, i've not had any options in terms of my requirements for years and greatly appreciate anyone who reads this. I've been stuck with a very old wacom penabled toshiba laptop for my art (very slow), a windows laptop for travel, a tablet for light weight travel and a desktop for gaming! It's always been a pain when I have always used an entire device only to fit one need at a time when a 15" wacom windows laptop would solve my problems.

    I have an HP envy x360 and it has a lot of what you're looking for. I'm not entirely sure as to what pen I would need for this, but it does say it has pen compatibility. I recommend looking at it though! I personally love it even though I've been on a goosehunt trying to figure out what pen I'd need. I'm new to all this digitizer pen stuff without there being a separate tablet.

  • Ibook G4 freezes either when its on the grey loading screen or the blue screen. Sometimes I get it to my desktop but it always freezes in like a minute. Someone help I really need this computer!

         I have tried everything online and my iBook g4 wont stop freezing. Safe Mode doesnt even help, it still gets stuck on the blue screen! It either gets stuck on the grey loading screen or the blue screen. Rarely I am able to boot past everything and get to my desktop but after about 30 seconds it freezes again. This laptop was passed down to me and I have no original papers or disks that came with this laptop. I am really trying to figure this out without buying a disk because if it doesnt work I wont be out $60. Someone help I have tried putting it in safe mode single mode holding c down during start up! I need more options..  Please this is the only computer I have right now! (PS: I know warranty has expired a long long time ago)

    Hello,
    Some information you may or may not have read.
    Troubleshooting portables that won't turn on or start up
    http://support.apple.com/kb/TA25686?viewlocale=en_US
    Troubleshooting: My computer won't turn on
    http://support.apple.com/kb/TS1367
    Without the disk you are limited on options. It could be an issue with the hard drive and would required the disk to run disk utility.

  • Trouble getting "back to my mac" to work on new Air - and really need this functionality

    This is sort of one of those "asked and answered" threads, but I wanted to share my solution. I love being able to see my other computers remotely. I don't think Apple sells the functionality of remote desktop enough. I have a laptop and I also run to mini servers, one at work, and one at home. When I first got "back to my mac" working with my Apple ID on all three computers I thought I had died and went to heaven. With fast internet access this is really incredible - able to move files back and forth and see different things - even run things like media encoding on another computer so my laptop is not slowed down.
    But when I bought a new Air a couple of weeks ago I ran into a problem. I had done everything right. Each computer allows login with my Apple ID and all the sharing was turned on properly - remember, I was doing this with my previous Macbook Pro just fine.
    But everytime I would click on the remote computer in finder, finder would just quit and restart. Weird. Crash and then restart of finder.
    So I've been fighting with it.
    Then I discovered I could click on "All" in the sidebar (to see all networked computers and servers). Then if I right-clicked on the server that showed up in the list in the main window of "All" I could choose a "connect as" and get it to work. Now it works regardless even if I double-click right on the icon of the remote server in the sidebar.
    If you followed all of that, it could help you. If you're not using this "remote desktop feature, you should.

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    The title of the Console window should be All Messages. If it isn't, select
    SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
    View ▹ Show Log List
    from the menu bar at the top of the screen.
    Click the Clear Display icon in the toolbar. Then try the action that you're having trouble with again. Select any messages that appear in the Console window. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    ☞ The log contains a vast amount of information, almost all of which is irrelevant to solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    ☞ Some private information, such as your name, may appear in the log. Anonymize before posting.

  • Why isnt this working?? - I really need this!!!

    Hi, can you please have a go at this problem? Thnx!!
    Here is the code:
    import java.io.*;
    public class Main {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    private String newname=null;
    public void setName ()throws Exception{
    System.out.print("Hello, please enter your attribute");
    newname = in.readLine();}
    public String getName(){
    return newname;}
    public Main()throws Exception{
    Main m = new Main();
    m.setName();
    import java.io.*;
    public class Main2 {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    private String newname=null;
    public void setName ()throws Exception{
    System.out.print("Please enter your sign");
    newname = in.readLine();}
    public String getName()throws Exception{
    Main z = new Main();
    z.setName();
    if(newname.equals("=")){
    return ("==" + z.getName());}
    else{
    return "Error";}}
    public Main2()throws Exception{
    Main2 p = new Main2();
    p.setName();}}
    import java.io.*;
    public class Main3 {
    public static void main(String[] args)throws Exception {
    Main2 p = new Main2();
    System.out.print("Hello "+p.getName());}}

    For one, Main2 has a recursive constructor:
    public Main2() throws Exception
      //Main2 p=new Main2();
      //p.setName();
      setName(); // You don't need another instance
    }Also, there is no reason to create a new class to get every entry from standard in. You could just do:
    System.out.println("Enter A: ");
    a=in.readLine();
    System.out.println("Enter B: ");
    b=in.readLine();

  • Did I really need this hub phone (possible return)

    Newbie here.
    New to BT as well.
    Happy with the service so far but feel I have a hub phone that wasn't explained to me properly when I ordered it. I thought it was a 'normal' landline phone that just plugged into the hub.
    I've recently been told that it has a different number to my landline(which I don't have) and is VOIP only.
    If I already have a landline package, why wasn't I told this phone would be superflous to my needs and can I return it for a refund?
    All advice gratefully received - especially if I'm talking rubbish!

    Hello
    Have a read of this
    http://www.productsandservices.bt.com/consumerProducts/displayTopic.do?topicId=27273&s_cid=con_FURL_...  all the call charges are there...
    I dont use the hub phone myself that much,instead i download BT softphone
    http://www2.bt.com/static/fvc/softphone_installIS.exe   to all my PC's
    and use this headset
    http://www.play.com/HOME/HOME/6-/Search.html?searchstring=Logitech+H330+USB+Headset
    a very lazy way of making calls,if your lying down
    you can get headset cheaper than the one i got
    MARTIN

  • HELP PLEASE!!! I REALLY NEED THIS INFO!!!

    MY IPOD VIDEO GOT STOLEN AND I WAS WONDERING IF I CAN GET A NEW ONE WITHIN MY WARRANTY CONTRACT BECAUSE I GOT MY IPOD NOT TO LONG AGO LIKE JANUARY...CAN U PLEASE ANSWER THIS ASAP...THANK YOU!!!

    yeah there is no warranty gaurantee for theeft . contact the local police and then hope but i highly doubt it willbe recovered. if no then take this as a learning experience and get another ipod. life ***** and bad things happen like this but we're human and we learn from mistakes.
    GFF

Maybe you are looking for

  • Display resolution changed at reboot. cant go back.

    My monitor (samsung 932nw) works wonders on 1440 x 900 resolution. it has worked wonders with my mac mini for months but this morning when i started the machine the resolution had changed. when i went into the displays screen that resolution does not

  • How to put sent mails in different folders

    Hi, I just started experiencing this issue with Mail.app since I subscribed to MobileMe. I added more than one email addresses in the mobileme account, made the folders and rules to move the received mails to their proper folders. Receiving is now we

  • Keep your phone secure!

    The virus and worm threat has reached the mobile world, and like on your computer there are a few things you can do to prevent an attack: How can malware get on my phone? Via SMS, as an internet link Via Email, as an attachment or a link Via Bluetoot

  • XML Transformation help required

    Hi, I want to read the contents of XML file, so i want to use Transformation. I require your help in getting that. XML File contents - <SOAP_FAULT> - <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/add

  • Cant find the arrangement pane on system preferencies!!!!!

    i tryed following the intructions on the FAQ section but i run in to a little problem... on the Display pane i dont have nothing saying arrangement pane. i'm using 2 displays and they work but they are in mirror and i wanted to be in extended desktop