Getting the cell id

i have read many threads about this and i am very confused.. some say that it is possible and some say that it is not possible.. can i get the cell id using j2me? if yes, are there any sourcecodes or examples that you can share? thanks

Sourabh wrote:
Even i have the same problem. Does anyone know about the solution of findind the cell id using j2me. Please reply. Thanking in advance.this has been posted about a hundred times.. you need to type "cell id" into the search bar....
there are different vendor specific calls but it is useless because it returns a number that does not mean anything unless you have some real locations to match with the numbers to...

Similar Messages

  • How to get the cell info?

    You all know that, on our mobile we used to get the cell info ( Tower Name ). How to access that in our J2ME application?
    John

    Hello txflwr48! I regret the difficulties you've been having while activating your new phone. I'd love to help, but I recommend that we take our conversation to direct message instead of here in the public forum. If you have not yet gotten your device activated, please follow these steps to follow my handle (DionM_VZW) send me a direct message: http://vz.to/1gBiqkv
    DionM_VZW
    Follow us on Twitter www.twitter.com/vzwsupport

  • How do I get the cells to show up darker when printing my document

    When using Numbers, how do I get the cells to show up darker when printing my document?

    Are you asking about the cell background, as ivmedic has assumed, or about how to make the grid lines separating the cells darker?
    Select the table.
    Use the controls shown above this table to change:
    Stroke type from "Thin" to the solid line shown.
    Stroke thickness to 1 pt
    Stroke colour to a darker value (This is set to black, the rightmost cell in the top row of the Color Palette available fir this Color Well.)
    the controls are toward the right end of the Format Bar.
    Regards,
    Barry

  • Can any one tell me how to get the Cell ID from the nokia�s mobile stations

    Hi All:
    Im trying to get the gsm cell information from nokia�s cell phones, but the properties "phone.cid", "phone.lai", "phone.mcc" and the "phone.mnc" not works, every time the results are null.
    Could any one help me?
    Please contact me at [email protected]

    A bit of googling suggests that...
    System.getProperty("CellID");...should work. Does it?
    And no, I'm not going to email your bloody personal address - that's not how forums work.

  • How to get the name of a cell style

    Hi, All,
    I have a question about how to get the cell style name used by each cell in a table.
    I looked at all the fonctions provides by: ICellStylesFacade and ITableStylesFacade, but I did not find the fonction I need.
    Can someone give me some advises?
    Thanks in advance!!

    String myFileName = request.getRequestURL().substring(request.getRequestURL().lastIndexOf("/")+1);
    or with javascript
    <H1><script>document.write(document.location.href.substring(document.location.href.lastIndexOf("/")+1))</script></H1>
    bye! :)

  • GridbagLayout - how to get the size of a gridbag cell?

    Hi,
    i'd like to create a swing widget that automatically rescales the labels inside according to its cell size.
    Therefore i had the idea to get the cell size and set the font size according to this size ( subtracting some inset )
    finally it should look like that:
    |     title text    |
    |   val1  |  val2   |
    |   val3  |  val4   |
    -----------------------the title needs to span 2 cells horizontal,
    the values (valx) span 1 cell
    by resizing the mainPanel, the labels should also resize according to their available space.
    i use this code by now for setting up the widget.
    // title label
    GridBagConstraints gBC_title = new GridBagConstraints();
    jl_title.setFont(titleFont);
    gBC_title.gridx = 0;
    gBC_title.gridy = 0;
    gBC_title.gridwidth = 2; // grid spanning
    gBC_title.weightx = 1;
    gBC_title.weighty = 0.2;
    gBC_title.anchor = GridBagConstraints.CENTER;
    gBC_title.fill = GridBagConstraints.BOTH;              
    mainPanel.add(jl_title, gBC_title); 
    //one of the value labels
    GridBagConstraints gBC_v1 = new GridBagConstraints();
    jl_val1.setFont(valueFont);
    gBC_v1.weightx = 0.5;
    gBC_v1.weighty = 0.4;
    gBC_v1.gridx = 0;
    gBC_v1.gridy = 1;
    gBC_v1.anchor = GridBagConstraints.LINE_END;
    gBC_v1.fill = GridBagConstraints.BOTH;     
    mainPanel.add(jl_val1, gBC_v1);
    (...) The mainPanel is the panel with the Gridbaglayout.
    by resizing the widget i call this method:
    public void adjustFontSize(JLabel label){
                    int adjustedFontSize;
         int inset = 2; // space surrounding the label
         int parentHeight = label.getHeight();     
         int parentWidth = label.getWidth();
    //     System.out.println("available space for  "+label.getText()+": "+ parentWidth +"*"+ parentHeight);     
         if (parentHeight <= parentWidth){
              adjustedFontSize = parentHeight - inset;
         } else {
              adjustedFontSize = parentWidth - inset;
         label.setFont(new Font(null, Font.BOLD, adjustedFontSize));
         System.out.println("adjusting font size for "+label.getText()+": "+adjustedFontSize);
    }//end adjustFontSizethe problem is, that the resizing doesn't really work.
    any ideas?
    the best thing would be to get the parent cell size of the label to resize, and set the font size to allmost this value
    , but i am not able to get the cell size to adjust the label or font size:
    thanks for your help
    Edited by: Sniezn on Mar 12, 2010 1:05 AM

    To make this function properly, you may need to create your own layout manager or do something even more hackish.Here's something more hackish. But first, setting GBC anchor with fill=BOTH doesn't have any effect as the component is resized to fill its cell, so might as well be anchored at all the four corners. Also, there's no need to create a new GBC instance for adding each component.
    Is this the layout you were looking for?import java.awt.*;
    import java.awt.event.ComponentAdapter;
    import java.awt.event.ComponentEvent;
    import java.awt.event.ComponentListener;
    import java.awt.font.FontRenderContext;
    import java.awt.geom.Rectangle2D;
    import javax.swing.*;
    public class ZoomLabelTest {
      public static void main(String[] args) {
        SwingUtilities.invokeLater(new Runnable() {
          @Override
          public void run() {
            new ZoomLabelTest().makeUI();
      public void makeUI() {
        JLabel labelTitle = new ZoomLabel("title text");
        labelTitle.setHorizontalAlignment(JLabel.CENTER);
        JLabel labelVal1 = new ZoomLabel("val1");
        labelVal1.setHorizontalAlignment(JLabel.RIGHT);
        JLabel labelVal2 = new ZoomLabel("val2");
        JLabel labelVal3 = new ZoomLabel("val3");
        labelVal3.setHorizontalAlignment(JLabel.RIGHT);
        JLabel labelVal4 = new ZoomLabel("val4");
        JPanel panel = new JPanel(new GridBagLayout());
        GridBagConstraints gbc = new GridBagConstraints();
        gbc.fill = GridBagConstraints.BOTH;
        gbc.gridwidth = 2;
        gbc.gridx = 0;
        gbc.gridy = 0;
        gbc.weightx = 1;
        gbc.weighty = 0.2;
        panel.add(labelTitle, gbc);
        gbc.gridwidth = 1;
        gbc.weightx = 0.5;
        gbc.weighty = 0.4;
        gbc.gridy = 1;
        panel.add(labelVal1, gbc);
        gbc.gridx = 1;
        panel.add(labelVal2, gbc);
        gbc.gridx = 0;
        gbc.gridy = 2;
        panel.add(labelVal3, gbc);
        gbc.gridx = 1;
        panel.add(labelVal4, gbc);
        JFrame frame = new JFrame();
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setSize(400, 400);
        frame.setLocationRelativeTo(null);
        frame.setContentPane(panel);
        frame.setVisible(true);
    class ZoomLabel extends JLabel {
      ComponentListener listener = new ZoomListener();
      public ZoomLabel(String text) {
        super(text);
        addComponentListener(listener);
      private class ZoomListener extends ComponentAdapter {
        @Override
        public void componentResized(ComponentEvent e) {
          // doesn't make a difference for GBL but does for some
          // other layouts, notably BorderLayout
          setPreferredSize(getSize());
          Insets insets = getInsets();
          Font font = getFont();
          int width = getWidth() - insets.left - insets.right;
          int height = getHeight() - insets.top - insets.bottom;
          boolean increased = false;
          boolean decreased = false;
          do {
            Rectangle2D textRect = font.getStringBounds(getText(),
                    new FontRenderContext(null, true, false));
            int textWidth = (int) textRect.getWidth();
            int textHeight = (int) textRect.getHeight();
            if (textWidth > width || textHeight > height) {
              font = font.deriveFont((float) font.getSize() - 1);
              if (increased) {
                break;
              decreased = true;
            } else {
              if (decreased) {
                break;
              font = font.deriveFont((float) font.getSize() + 1);
              increased = true;
          } while (true);
          setFont(font);
    }db
    PS Now somebody tell me that it's not a good idea to setPreferredSize in componentResized ... along with an alternative that's clean(er) ;-)
    edit No, that needs a lot more work to be stable with GBL (or maybe it never will be). It appears to be stable only with the same weightx / weighty for all columns/rows.
    Edited by: DarrylBurke

  • How the get the content of selected ALV cell??

    hello expert,
    after click one of the ALV lines, we want to get the cell content of this selected line? how to realize this? thanks/

    hi,
    it is pretty simple,
    in the methosd u declare for the click we use the events of the ALV.
    in that we have an attribute r_param.
    do this to get the value:
    FIELD-SYMBOLS:<l_value> TYPE ANY.
      ASSIGN r_param->index TO <l_value>.
    the clicked value will be in <l_value>.
    madhu.

  • Trying to get multiple cell values within a geometry

    I am provided with 3 tables:
    1 - The GeoRaster
    2 - The geoRasterData table
    3 - A VAT table who's PK is the cell value from the above tables
    Currently the user can select a point in our application and by using the getCellValue we get the cell value which is the PK on the 3rd table and this gives us the details to return to the user.
    We now want to give the worst scenario within a given geometry or distance. So if I get back all the cell values within a given geometry/distance I can then call my other functions against the 3rd table to get the worst scores.
    I had a conversation open for this before where JeffreyXie had some brilliant input, but it got archived while I was waiting on Oracle to resolve a bug (about 7 months)
    See:
    Trying to get multiple cell values within a geometry
    If I am looking to get a list of cell values that interact with my geometry/distance and then loop through them, is there a better way?
    BTW, if anybody wants to play with this functionality, it only seems to work in 11.2.0.4.
    Below is the code I was using last, I think it is trying to get the cell values but the numbers coming back are not correct, I think I am converting the binary to integer wrong.
    Any ideas?
    CREATE OR REPLACE FUNCTION GEOSUK.getCellValuesInGeom_FNC RETURN VARCHAR2 AS
    gr sdo_georaster;
    lb blob;
    win1 sdo_geometry;
    win2 sdo_number_array;
    status VARCHAR2(1000) := NULL;
    CDP varchar2(80);
    FLT number := 0;
    cdl number;
    vals varchar2(32000) := null;
    VAL number;
    amt0 integer;
    amt integer;
    off integer;
    len integer;
    buf raw(32767);
    MAXV number := null;
    r1 raw(1);
    r2 raw(2);
    r4 raw(200);
    r8 raw(8);
    MATCH varchar2(10) := '';
    ROW_COUNT integer := 0;
    COL_COUNT integer := 0;
    ROW_CUR integer := 0;
    COL_CUR integer := 0;
    CUR_XOFFSET integer := 0;
    CUR_YOFFSET integer := 0;
    ORIGINY integer := 0;
    ORIGINX integer := 0;
    XOFF number(38,0) := 0;
    YOFF number(38,0) := 0;
    BEGIN
    status := '1';
    SELECT a.georaster INTO gr FROM JBA_MEGARASTER_1012 a WHERE id=1;
    -- first figure out the celldepth from the metadata
    cdp := gr.metadata.extract('/georasterMetadata/rasterInfo/cellDepth/text()',
    'xmlns=http://xmlns.oracle.com/spatial/georaster').getStringVal();
    if cdp = '32BIT_REAL' then
    flt := 1;
    end if;
    cdl := sdo_geor.getCellDepth(gr);
    if cdl < 8 then
    -- if celldepth<8bit, get the cell values as 8bit integers
    cdl := 8;
    end if;
    dbms_lob.createTemporary(lb, TRUE);
    status := '2';
    -- querying/clipping polygon
    win1 := SDO_GEOM.SDO_BUFFER(SDO_GEOMETRY(2001,27700,MDSYS.SDO_POINT_TYPE(473517,173650.3, NULL),NULL,NULL), 10, .005);
    status := '1.2';
    sdo_geor.getRasterSubset(gr, 0, win1, '1',
    lb, win2, NULL, NULL, 'TRUE');
    -- Then work on the resulting subset stored in lb.
    status := '2.3';
    DBMS_OUTPUT.PUT_LINE ( 'cdl: '||cdl );
    len := dbms_lob.getlength(lb);
    cdl := cdl / 8;
    -- make sure to read all the bytes of a cell value at one run
    amt := floor(32767 / cdl) * cdl;
    amt0 := amt;
    status := '3';
    ROW_COUNT := (WIN2(3) - WIN2(1))+1;
    COL_COUNT := (WIN2(4) - WIN2(2))+1;
    --NEED TO FETCH FROM RASTER
    ORIGINY := 979405;
    ORIGINX := 91685;
    --CALCUALATE BLOB AREA
    YOFF := ORIGINY - (WIN2(1) * 5); --177005;
    XOFF := ORIGINX + (WIN2(2) * 5); --530505;
    status := '4';
    --LOOP CELLS
    off := 1;
    WHILE off <= LEN LOOP
    dbms_lob.read(lb, amt, off, buf);
    for I in 1..AMT/CDL LOOP
    if cdl = 1 then
    r1 := utl_raw.substr(buf, (i-1)*cdl+1, cdl);
    VAL := UTL_RAW.CAST_TO_BINARY_INTEGER(R1);
    elsif cdl = 2 then
    r2 := utl_raw.substr(buf, (i-1)*cdl+1, cdl);
    val := utl_raw.cast_to_binary_integer(r2);
    ELSIF CDL = 4 then
    IF (((i-1)*cdl+1) + cdl) > len THEN
    r4 := utl_raw.substr(buf, (i-1)*cdl+1, (len - ((i-1)*cdl+1)));
    ELSE
    r4 := utl_raw.substr(buf, (i-1)*cdl+1, cdl+1);
    END IF;
    if flt = 0 then
    val := utl_raw.cast_to_binary_integer(r4);
    else
    val := utl_raw.cast_to_binary_float(r4);
    end if;
    elsif cdl = 8 then
    r8 := utl_raw.substr(buf, (i-1)*cdl+1, cdl);
    val := utl_raw.cast_to_binary_double(r8);
    end if;
    if MAXV is null or MAXV < VAL then
    MAXV := VAL;
    end if;
    IF i = 1 THEN
    VALS := VALS || VAL;
    ELSE
    VALS := VALS ||'|'|| VAL;
    END IF;
    end loop;
    off := off+amt;
    amt := amt0;
    end loop;
    dbms_lob.freeTemporary(lb);
    status := '5';
    RETURN VALS;
    EXCEPTION
        WHEN OTHERS THEN
            RAISE_APPLICATION_ERROR(-20001, 'GENERAL ERROR IN MY PROC, Status: '||status||', SQL ERROR: '||SQLERRM);
    END;

    Hey guys,
    Zzhang,
    That's a good spot and as it happens I spotted that and that is why I am sure I am querying that lob wrong. I always get the a logic going past the total length of the lob.
    I think I am ok using 11.2.0.4, if I can get this working it is really important to us, so saying to roll up to 11.2.0.4 for this would be no problem.
    The error in 11.2.0.3 was an internal error: [kghstack_underflow_internal_3].
    Something that I think I need to find out more about, but am struggling to get more information on is, I am assuming that the lob that is returned is all cell values or at lest an array of 4 byte (32 bit) chunks, although, I don't know this.
    Is that a correct assumption or is there more to it?
    Have either of you seen any documentation on how to query this lob?
    Thanks

  • How to get the TableRow from TableView with given row Index.

    Hi ,
    I want to retrieve the TableRow object or Cells of that row of the TableView, for the given row index. How i can get that.
    Here is the below code what i am actually looking for
    TableView table = new TableView();
    table.getSelectionModel().selectedIndexProperty().addListener(new ChangeListener<Number>() {
         @Override
         public void changed(ObservableValue<? extends Number> paramObservableValue,Number prevRowIndex, Number currentRowIndex) {
              System.out.println(":::::::::>  Previous Row : "+prevRowIndex+" Current Row : "+currentRowIndex);
              if(prevRowIndex.intValue()>-1){
                   // TODO: Get the TableRow object of prevRowIndex or the cells in that row.
    });Thanks in advance !!

    Jonathan, Thanks for the info !
    Actually my requirement is ,
    1) I have an editable table with four columns. Where the first three colums are editable and the last column is a delete button to delete the record.
    2) My requirement is such that, whenever the user edits a cell, it is not comitted on focus out but the whole row(all cells) is comitted at a time when the user hits "enter". If the validation is not successfull, the textfields are styled with error class and focuses on it.
    So based on the key event on the textfield in the editable cell, i am fetching all the cells in the same row, with the below code.. and doing the save/update operation.
    textBox.setOnKeyReleased(new EventHandler<KeyEvent>() {
         @Override
         public void handle(KeyEvent t) {
              if (t.getCode() == KeyCode.ENTER) {
                          TableRowSkin<ContactPersonResponse> rowSkin = (TableRowSkin<ContactPersonResponse>) cell.getParent();
                    ObservableList<Node> cells = rowSkin.getChildren();
                    view.setCellAction(cells);
                          // The setCellAction(cells) will iterate through all the cells, validates the text field,
                          // if validation is success commits all the cells else styles the cells and focuses on the cell.
    });Till now everything is fine and working properly.
    Now I have new requirement that when the user edits a row (not yet comitted) and if he selects another row, the previous selected row should be automatically committed with validation.
    So my final action is to call the setCellAction(cells) by passing the cells of the previous selected row.
    table.getSelectionModel().selectedIndexProperty().addListener(new ChangeListener<Number>() {
         @Override
         public void changed(ObservableValue<? extends Number> paramObservableValue,Number prevRowIndex, Number currentRowIndex) {
              System.out.println(":::::::::>  Previous Row : "+prevRowIndex+" Current Row : "+currentRowIndex);
              if(prevRowIndex.intValue()>-1){
                   // TODO: Need to call the setCellAction method by passing the cells of previous selected row. (prevRowIndex)
                            // Here i am not getting how to get the cells of the previous row.          
    });In the selectedIndex listener , i am not getting how to get the cells/row from the index.
    Any solution or workaround for achieving this functionality is highly apprieciated .
    Thanks & Regards,
    Sai Pradeep Dandem.
    Edited by: Sai Pradeep Dandem on Jan 2, 2012 10:23 PM
    Edited by: Sai Pradeep Dandem on Jan 2, 2012 10:23 PM

  • Using "calc' function to show if the cell is editable(EVDRE Reports)

    Hello All,
    I have a question regarding using the "calc' property in my dimension 'ACCOUNT' in a EvDRE report to display the rows as calculated or input ready cells. I have developed an input template by opening a blank workbook and typing in EVDRE(). I have listed ACCOUNT to be in the rows and Time in the columns. I have listed the memberset to be members in the ACCOUNT and SELF, DEP in the Time dimension. Whenever I expand the EVDRE, I always get the cells to be 'yellow' in color similiar to the calc format. How do I differentiate between the Calculated cell and the input cell. I was thinking to use the CALC functionality similiar to the reports/input schedules written using EVGTS/EVSND functions.
    Any help is appreciated.
    Thanks.

    Hi  bpc4livin,
    Take note that even though you have specified the base members as memberset in your EVDRE, still you must have base level members in your Current View in the Action pane. Remember that each data cells in an EVDRE template is an intersection of the dimension in your rows and columns plus the rest of the dimensions in your application which would come in your current view if you don't define them as memberset. So as long as there is one calculated member in your current view still the cell would be marked as calculated.
    You can use EVDRE's format range to format a scpecific cell or group of cells. To activate this after you typed the EVDRE and refresh the sheet, you must check the allow formatting option in the EVDRE builder that appears. I think that there is already a default format in the format range that says that if a data cell is calculated it would be colored yellow. So if you want further knowldege on how to use the format range, you could see the Using Reports Help in the See Also section of the action pane of the BPC Excel.
    Hope this helps,
    MVS

  • How to get TableView cell values

    Hi All,
    I'm new to PDK.
    I have a TableView which set to Single Selection (the table has a column of radio buttons).
    When the user selects a row I want to get the cells' values of the row from the client side.
    I can get the row's number by using the following code:
    tvModel.setOnClientRowSelection("generateNumber(htmlbevent)");
    function generateNumber(myEvent) {
    alert(myEvent.obj.clickedRow.toString());
    Is there a function like getValueAt(row,col)?
    How can I solve this?
    Thanks,
    Omri

    Hi
    There is a function getValueAt(row,col) to get a value at particular row and column.
    Please go through the followin forum thread which is related to your problem:
    Using OnCellClick with TableView to get cell value
    Hope this helps you.
    Regards
    Victoria

  • I am in the print mode  but the dimensions I select in the size template do not show up on either the cell size or the photo,  i.e. select 4x6 template lR gives me 3.5x4 8x10 gives me 5.19x3,50 I have to use 8x10 template in order to get 3.5x5.194

    The sizes on the print template do not relate to the size I get in the cell size or on the photo. Template 8x10 gives me 3.5 x5.194 which is on the cell size can't make it any larger. 4X6 template gives me 3.5x4 which is the same as the cell size.  My printer is a new epson 3000 which is set to print 4x6 but LR does not give the 4x6 dimension to the printer just the aforementioned sizes!!!! I have tried everything to get it to print properly to no avail.   The photo system that came with the computer an iMac 27" pro 2013  with yosemite as the os.works fine with he printer!  You just cannot do much other than print with it
    Anybody have any idea what happened?  It used to work fine ____about a week and a half ago
    HELP
    len

    Hi,
    I tried the example and got some weird error messages as follows:
    ********* error messages*********
    ShowComponent.java:90: cannot resolve symbol
    symbol : method getName ()
    location: class javax.swing.UIManager.LookAndFeelInfo[]
    { String plafName = plafs.getName();
    ^
    ShowComponent.java:91: cannot resolve symbol
    symbol : method getClassName ()
    location: class javax.swing.UIManager.LookAndFeelInfo[]
    final String plafClassName = plafs.getClassName();
    ^
    ShowComponent.java:139: cannot resolve symbol
    symbol : method indexOf (char)
    location: class java.lang.String[]
    int equalsPos = args.indexOf('=');
    ^
    ShowComponent.java:143: cannot resolve symbol
    symbol : method forName (java.lang.String[])
    location: class java.lang.Class
    Class componentClass = Class.forName(args);
    ^
    ShowComponent.java:161: cannot resolve symbol
    symbol : method substring (int,int)
    location: class java.lang.String[]
    String name = args.substring(0, equalsPos); //property name
    ^
    ShowComponent.java:162: cannot resolve symbol
    symbol : method substring (int)
    location: class java.lang.String[]
    String value = args.substring(equalsPos+1); //property value
    ^
    6 errors.
    *****end of error messages*****
    I use jdk1.3 and Win2000. Can anybody tell me how to delete above error messages?
    Thanks a lot.
    Li

  • How to get the Last cell in HSSFCell (Excel sheet)

    Hello
    I am trying to convert an excel sheet to a tab limited file.
    I am using HSSF and unable to track how do i know if the cell encountered is a last filled cell in excel sheet
    Some of the cells in the sheet can be blank. In that case i am just using inputting a '\t' for that cell and read the next one. But coz of this when i get the last cell, a tab is included for that too.
    Can someone let me know how can i rectify this?
    it seems like HSSFCell does not have any methos like lastCell or so
    Thanx

    then use getLastCellNum() in org.apache.poi.hssf.usermodel.HSSFRow

  • If I add a row to my spreadsheet, how do I get the footer cell to show the last amount in the table automatically?

    Balance Forward
    $0.00
    Date
    Code
    Check Number
    Transaction/Description
    Deposit
    Withdrawl
    Ending Balance
    I am able to set up the Ending Balance to show the value of the cell right above it as long as I dont need anymore rows. If I add a row the value of the ending balance is stuck on the row or rows above the newly addd ones. All of my other formulas contiune on when a row is added, Is there a formula that can be added so that when a row is added the ending balance value moves to the last cell in the row?

    Cobb425 wrote:
    Thank you badunit for your responses and help. Jerrolds formula worked for me a little bit better for what I was looking to do. Thank you again for your help
    Whatever works best for you. Jerry's formula assumed your table might not be totally full, that there might be empty rows at the bottom.  Mine assumed there were no empty rows; it gave the value of the cell directly above it, as you asked. With Jerry's formula, be sure you enter your data in order by date or keep it sorted that way to ensure you get the correct "Ending Balance".  If your last row does not have the most recent date, the formula will return the balance from a different row.
    I don't see the advantage in Jerry's "Balance Forward" formula over the simpler one I provided.

  • A problem to get the value of a selected cell

    Hi all,
    I am trying to get the value of a cell in JTable. The problem that I have is ListSelectionListener only listens if the selection changes(valueChanged method).
    It means that if I select apple then rum, only rowSelectionModel is triggered, which means I do not get the index of the column from selectionModel of ColumnModel.
    apple orange plum
    rum sky blue
    This is a piece of code from JTable tutorial that I modified by adding
    selRow and selCol variables to keep track of the location so that I can get the value of the selected cell.
    Thank you.
    if (ALLOW_ROW_SELECTION) { // true by default
    ListSelectionModel rowSM = table.getSelectionModel();
    rowSM.addListSelectionListener(new ListSelectionListener() {
    public void valueChanged(ListSelectionEvent e) {
    if (e.getValueIsAdjusting()) return;
    ListSelectionModel lsm = (ListSelectionModel)e.getSource();
    if (lsm.isSelectionEmpty()) {
    System.out.println("No rows are selected.");
    } else {
    int selectedRow = lsm.getMinSelectionIndex();
    selRow = selectedRow;
    System.out.println("Row " + selectedRow + " is now selected.");
    else {
    table.setRowSelectionAllowed(false);
    if (ALLOW_COLUMN_SELECTION) { // false by default
    if (ALLOW_ROW_SELECTION) {
    table.setCellSelectionEnabled(true);
    table.setColumnSelectionAllowed(true);
    ListSelectionModel colSM = table.getColumnModel().getSelectionModel();
    colSM.addListSelectionListener(new ListSelectionListener() {
    public void valueChanged(ListSelectionEvent e) {
    //Ignore extra messages.
    if (e.getValueIsAdjusting()) return;
    ListSelectionModel lsm = (ListSelectionModel)e.getSource();
    if (lsm.isSelectionEmpty()) {
    System.out.println("No columns are selected.");
    } else {
    int selectedCol = lsm.getMinSelectionIndex();
    selCol = selectedCol;
    System.out.println("Column " + selCol + " is now selected.");
    System.out.println("Row " + selRow + " is now selected.");
    javax.swing.table.TableModel model = table.getModel();
    // I get the value here
    System.out.println("Value: "+model.getValueAt(selRow,selCol));
    }

    maybe you can try with :
    table.getSelectedColumn()
    table.getSelectedRow()
    :)

Maybe you are looking for

  • Is it possible to do DB restore from FS backup ?

    Hi All, I would like to share issue which I have confronted recently......Here is the scenario We have taken cold backup of DB ( sizing to 900 gb) to disk, via RMAN. We took FS(file system) backup of that disk backup to tape using Legato MML. There w

  • Freezing when saving to share drive.

    Hi everyone, I am posting here because I have been troubleshooting an issue for a couple weeks now with no resolution.  I had the CS4 design suite with Photoshop and Illustrator on a Windows 7 64bit computer and was having issues with Illustrator fre

  • Persisting data using LDAP

    Is it possible to persist data (across sessions) in an LDAP service? I would like to be able to store preferences/configuration properties in an LDAP service and when I restart the application server those properties are persisted and can be retrieve

  • Adobe has officially decided to discontinue Coldfusion in 2009!

    ...happy April fools day :) Long live Coldfusion!

  • Versionning and initial load of Content Services

    Hi all, Would someone know how to load alredy existing files with their current version numbers. I have existing documents already versionned ; I'd rather avoid the upload all the original documents with check-out / in. Thanks for your help