Capturing user data through JTable

hello everyone,
i am developing a quotation generator application using Java. I am using a JTable to capture user input(this input is taken from a database i.e. each cell of the tale will have a combobox where  the user can select an input value). when the user is done he/she has to print the quotation as A4 page.
My issue is: Is there a way of doing it besides using the JTable?
I appreciate any ideas that i may make use of which are relevant to this application.
Thank you in advance for your help.

2813625 wrote:
My issue is: Is there a way of doing it besides using the JTable?
Yes.
But what is the problem with your current solution?
In which way should your new aproach differ from the JTable-Approach?
bye
TPD

Similar Messages

  • Win XP to Win 7 - Using OSD - Capturing User data from Profiles

    Hi All,
    I'm having a few issues with capturing users profiles using USMT moving from Windows XP to Windows 7 as part of a task sequence - we use a SMP to save the data but strangely it wont apply the data on Apply state store. The OS deployment works fine but saving
    user's data and moving it too new PC doesnt seem to apply. I am using Stock requests for the task sequence Find user state storage capture user state etc and like wise at the end apply user state and release user state but doesnt seem to work. Are there any
    variables that need to be added to get this working or am i missing something stupid? We do use same PC to image and have mentioned about hardlinking but powers that be want to use SMP. How would this work also if when using Computer association(due to the
    Windows 7 pc not being setup yet)?
    Apologies if im missing something simple

    You are doing what is called a "refresh" OSD scenario...refreshing the OS on the computer while maintaining user state. SCCM automatically creates a computer association in that instance. If an existing Replace (Old to New) computer association
    does not already exist, then it will create a Refresh Computer Association to allow the user state to be restored to the same computer. You wouldn't need to do anything special.
    The key is that you need to have your task sequence be capable of both capturing the user state at the beginning of the task sequence, then laying down the new OS, then doing the restore of the user state...all within the same task sequence.
    If you utilize the MDT integration with SCCM and build an MDT integrated task sequence, this functionality is already built in. Although for simple testing purposes to show the concept, you can simply add to your existing task sequence.
    Your task sequence would need to include the following major sections:
    Capture user state (including the request/release state store tasks)
    Lay down the OS (essentially the components of your regular bare metal imaging task sequence)
    Restore user state (including the request/release state store tasks)
    <p>Jarvis </p>
    <b>Blog:</b> <a href="http://verbalprocessor.com/feed/" target="_blank">
    <img src="http://aka.ms/gmvm2k" border="0"></a> <a href="http://verbalprocessor.comhttp://verbalprocessor.com">http://verbalprocessor.com</a>
    <b>Twitter:</b> <a href="https://twitter.com/VerbalProcessor" target="_blank"><img src="http://aka.ms/iejgcv" border="0"></a>
    <p><font size="1">Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.</font></p>
    <p><font size="1">The postings on this site are my own and don’t necessarily represent my employer’s positions, strategies or opinions.</font></p>

  • Capturing User Data

    Is there a way to capture data fields with a Name, Title,
    Company, etc. where the software can track that there are no
    duplicate "players" for a quiz? Can this data go into a database
    file to be viewed later? We want to have a quiz at a conference
    where players answer questions about our company and if they get
    them all right, there is a random winner every hour. Is this
    functionality possible?

    Rick is correct, of course, that an LMS would satisfy these
    requirements, as well more, since that's really how Captivate
    seems to
    be geared to record such results.
    If you have folks there who know javascript well, you can
    edit the HTML
    page generated by the publishing process to 'redirect' the
    data which
    the Captivate file sends to those JS functions. Folks have
    done so to
    send that info to a generic database, and perhaps other
    methods of
    recording.
    I can see why an LMS may be a bit overkillish for a
    conference computer
    quiz. On the other hand, it may be a good way for you to
    review an LMS
    and possibly expand your offerings.
    HTH,
    Erik
    JENNIFERMCC wrote:
    > Is there a way to capture data fields with a Name,
    Title, Company, etc. where
    > the software can track that there are no duplicate
    "players" for a quiz? Can
    > this data go into a database file to be viewed later? We
    want to have a quiz at
    > a conference where players answer questions about our
    company and if they get
    > them all right, there is a random winner every hour. Is
    this functionality
    > possible?
    >
    Erik Lord
    http://www.capemedia.net
    Adobe Community Expert - eLearning
    http://www.adobe.com/communities/experts/
    http://www.awaretips.net -
    Authorware Tips!

  • How to verify user data through an unhelpful DBA

    I'm a developer. My organization is large and has separation of duties... i.e. I'm not allowed to touch the production system. The DBA exhibits some sort of anti-social traits and is unhelpful to the point of being harmful. If we request him to run an sql statement and it fails, he offers no insights as to why. Instead, we are left to try and request query after query to try and resolve the issue--which can take days when he could speak up and resolve the issue in seconds.
    But my organizations DBA problem isn't yours... instead, here's my current dilema.
    Our projects are supposed to get 3 generic accounts that we the developers then alter to suit the application. Those users are named:
    <projectname>USR
    <projectname>ADM
    <projectname>DBA
    (I'll use the project name "TEST" in this post)
    We requested the rows from DBA_SYS_PRIVS to see that these generic accounts existed and received the following:
    GRANTEE                        PRIVILEGE                                ADM
    TESTADM                        CREATE SESSION                           NO
    TESTDBA                        CREATE SESSION                           NO
    TESTUSR                        CREATE SESSION                           NOWe requested an alter user on TESTDBA and it worked fine.
    We then requested an alter user on TESTUSR and it returned:
    ALTER USER "TESTUSR"
    ERROR at line 1:
    ORA-01918: user 'TESTUSR' does not existThe only explanation I can think of is that TESTUSR was mistakenly created as a role instead of a user. I'm planning on requesting the contents of the DBA_USERS table and the DBA_ROLES table and see where TESTUSR is located. But what I'm asking here in this forum is if there is a better set of sql statements I could request to be more definitive in researching what happened.
    Thank in advance,
    Darren

    In the actual dump that you got from DBA_SYS_PRIVS, were the GRANTEE names all upper case? Or were some characters lower case as well?
    Oracle is normally case insensitive. But if you double-quote identifiers, those identifiers become case sensitive. The failing DDL
    ALTER USER "TESTUSR"is using double-quotes so TESTUSR would need to be a case-sensitive match to the user name. Is there any chance that is not the case in your environement?
    Barring that, getting a listing from DBA_USERS and DBA_ROLES is probably the way to go.
    Justin

  • Can Adobe Acrobat and/or Formscentral be used to individually collect and save user data? Can user data be used to populate other forms?

    I want to collect individual user data through my site and then use that data to subsequently populate PDF forms. Can Formscentral or Acrobat Pro do this?

    There's not a built-in feature in either for this. With both FormsCentral and Acrobat, you have access to the form data, which can be used to populate a different form using Acrobat, but this is a workflow that you would have to customize and would involve some manual steps.

  • How to capture the data that the user modified in SM30(Maintenance view)

    Hello experts,
    I have a new requirement wherein when the user modifies a particular record in SM30(maintenance view)
    it would also update that certain records in another table. For example, I modified the address
    of record 1 in table1 so I need to automatically update that same record in table2. Help would be greatly appreciated.
    Again, thank you guys and have a nice day!

    Hi again,
    1. But how can I capture the data that was modified
    Yes, u are right.
    We will have to use the event,
    'BEFORE SAVING'.
    2. In that,
      u must fire a select query,
       from the same table,
       for the same record.
    3. In this, u will get the OLD DATA (which was already saved),
    4. Using this,u can compare,
       (either thru LOOP, or field by field)
      to know, which field value has been changed.
    regards,
    amit m.

  • How to capture the data entered in a textfield in a JTable

    How to capture the data entered in a textfield present in a cell of a textfield or how to add listener to this textfield

    A sample of my code is:
              model = new GridDisplayTableModel(gridDisp,columnName,getRows(),getCols());
              final ComboRenderer cRenderer = new ComboRenderer();
              final TextFieldRenderer tRenderer = new TextFieldRenderer();
              combo.addItem("one");
              combo.addItem("two");
              combo.addItem("three");
              final JTextField textfield = new JTextField();
              final DefaultCellEditor cmbEditor = new DefaultCellEditor(combo);
         //     final JEnterDataCellEditor textEditor = new JEnterDataCellEditor(12);
              final DefaultCellEditor textEditor = new DefaultCellEditor(textfield);
              rm = new RowEditorModel();
              table = new JTable(model){
         public TableCellRenderer getCellRenderer(int row, int column) {
              int posx = 0;
                   int posy = 0;
                   TableCellRenderer renderer = null;
         for(int l=0;l<getDataVec().size();l++)
                   beanObj =(Helperbean)dataVec.elementAt(l);
                   posx = beanObj.getPosx();
                   posy = beanObj.getPosy();
                   if(row==posx && column==posy)
                             if(beanObj.getModeofDisplay() != null && beanObj.getModeofDisplay().equalsIgnoreCase("textfield"))
                                  rm.addEditorForRow(row,textEditor);
                                  renderer = tRenderer;
                             else if(beanObj.getModeofDisplay() != null && beanObj.getModeofDisplay().equalsIgnoreCase("combo"))
                                  rm.addEditorForRow(row,cmbEditor);
                                  renderer = cRenderer;
                             break;
                        renderer = super.getCellRenderer(row, column);
              //     System.out.println("getEditor"+rm.getEditor(1));
         return renderer;
    public TableCellEditor getCellEditor(int row, int col) {   
         int posx = 0;
         int posy = 0;
         TableCellEditor tmpEditor = null;
    for(int l=0;l<getDataVec().size();l++)
         beanObj =(Helperbean)dataVec.elementAt(l);
         posx = beanObj.getPosx();
         posy = beanObj.getPosy();
         if(row==posx && col==posy)
                   if(beanObj.getModeofDisplay() != null && beanObj.getModeofDisplay().equalsIgnoreCase("textfield"))
                        System.out.println("celleditorval "+textEditor.getCellEditorValue());
                        tmpEditor = textEditor;
                   else if(beanObj.getModeofDisplay() != null && beanObj.getModeofDisplay().equalsIgnoreCase("combo"))
                        tmpEditor = cmbEditor;
                   break;
              tmpEditor = super.getCellEditor(row, col);
    return tmpEditor;
    public boolean isCellEditable(int row,int col){
         boolean isEditable = false;
         int posx = 0;
         int posy = 0;
    for(int l=0;l<getDataVec().size();l++)
         beanObj =(Helperbean)dataVec.elementAt(l);
         posx = beanObj.getPosx();
         posy = beanObj.getPosy();
         if(row==posx && col==posy)
              if(beanObj.getModeofDisplay() != null )     
                        isEditable = true;     
                   else
                        isEditable = false;     
                   break;
         isEditable = false;
         return isEditable;
    public void changeSelection(final int row, final int column, boolean toggle, boolean extend) {
         super.changeSelection(row, column, toggle, extend);
         //my attempt to avoid editCellAt from being called twice in a row
         if (getModel().isCellEditable(row, column) && !(isEditing() && getEditingRow() == row && getEditingColumn() == column))
              if (editCellAt(row, column)) {
                   getEditorComponent().requestFocus();
         // Select the text when the cell starts editing
    public boolean editCellAt(int row, int column) {       
         boolean result = super.editCellAt(row, column);
         final Component editor = getEditorComponent();
         if (editor != null && editor instanceof JTextField) {           
              SwingUtilities.invokeLater(new Runnable() {               
                   public void run() {                   
                        ((JTextField)editor).selectAll();
              return result;
         public boolean hasFocus()
              Component editorComponent = getEditorComponent();
              // Try to install the editor
              int anchorRow = getSelectionModel().getAnchorSelectionIndex();
              int anchorColumn = getColumnModel().getSelectionModel().
              getAnchorSelectionIndex();
              if (anchorRow != -1 && anchorColumn != -1 && !isEditing())
              if ((this.getSelectedRow() == anchorRow) && (this.getSelectedColumn() == anchorColumn))
              if (!editCellAt(anchorRow, anchorColumn)) {}
              return super.hasFocus();
         public void valueChanged(ListSelectionEvent e)
              super.valueChanged(e);
              if ((this.getSelectedRow() == 2) && (this.getSelectedColumn() == 3))
                   DefaultFocusManager focusManager = new DefaultFocusManager();
                   focusManager.focusNextComponent(this);
                   model.fireTableStructureChanged();
         

  • I want to capture data through I/O while posting to Customer Line items

    Hi Experts
    Can you please suggest me that while posting to Customer line items i would require to capture data through Internal Order, is this possible if yes please explain
    Regards
    Sreenivasulu

    Hi
    Internal Order details can be updated to the P&L line item ie revenue line item in your case. From ECC 6.0 it will be available in the General Ledger view of the document.
    Regards,
    Lakshmanan Krishnan

  • Want to capture data through I/O while posting to Customer Line items

    Hi Experts
    Can you please suggest me that while posting to Customer line items i would require to capture data through Internal Order, is this possible if yes please explain
    Regards
    Sreenivasulu

    If you are classic GL, this not a standard functionality.
    If you are new GL, you can have profit center on customer / vendor line items.
    Also activate document splitting.
    Regards,
    Ravi

  • Identifying user who submitted the data through SmartView / Planning Forms

    Hi All ,
    We are facing one strange issue wherein data from the data files of the source system is not getting matched with the data loaded in Planning Application.
    We think that the data for the member combination which is not getting matched is modified by user either through SmartView or Planning Form.
    We need to Identify whether such modification is happened or not from the user either through SmartView or Planning Forms ?
    Is there any way we can find this details from any log or any back end tables ?
    Could you please share your thoughts on this.
    Thanks in advance !

    If you have setup auditing in Planning. See Setting up Audit Trails for more details.
    Regards
    Celvin Kattookaran

  • I just bought an iMac and I´m a new user of Mac.  I captured my data and my country is Mexico. What can i do if the final data check show España? Is it important or it doesn´t matter?

    I just bought an iMac and I´m a new User of Mac. I captured my data and my country is Mexico. What can i do if the final data check of Mac shows Spain? Is it important or it doesn´t matter?

    Hola & welcome to the Forums!
    Have you noticed any problems, like Time zone or Time display?

  • User Data Security through forms.

    Hi All,
    I am working on a forms(10g) which once deployed in application env. will have different level of accesses to different users , like view,edit,etc.
    could you please let me how to set up this user data security ,and access levels ...
    Is this to be done through forms development , or any environmental setups required?
    Any quick pointers in this regard are highlu appreciated.
    Thnaks.

    Hi,
    you can define your user level on oracle form,but these user only work on form level not on database level direct,you can make a proper setup form or role form to provide access to different user but you must mentioned these security on each transactional form.You also make a global procedure as security which maintain security only on form.Hope it'll helpful for you.
    Thanks
    Baloch.

  • OIM 9.1 User data set

    Hi,
    In release note of 9.1 it is mentioned that :
    Display of all OIM User attributes on the Step 3: Modify Connector Configuration page
    On the Step 3: Modify Connector Configuration page, the OIM - User data set now shows all the OIM User attributes. In the earlier release, the display of fields was restricted to the ones that were most commonly used.
    and
    Attributes of the ID field are editable
    On the Step 3: Modify Connector Configuration page, you can modify some of the attributes of the ID field. The ID field stores the value that uniquely identifies a user in Oracle Identity Manager and in the target system.
    Can anyone please guide me how to get both things as I am getting only few fields of user profile in OIM-USer data set and also not able to modify ID field.
    I am using OIM 9.1 on Websphere application server 6.1
    Thanks

    Unfortunately i do not have experience using the SPML generic connector. Have you read through all the documentation pertaining to the GTC?
    -Kevin

  • Can't load data through smart view (ad hoc analysis)

    Hi,
    There is EPM application where I want to give ability to planners to load data through smart view (ad hoc analysis). In Shared Services there are four options in
    EssbaseCluster-1: Administrator, Create/Delete Application, Server Access, Provisioning Manager. Only Administrator can submit data in smart view (ad-hoc analysis). But I don't want to grant Essbase administrator to planners, I'm just interested to give them ability to load data through ad-hoc analysis. Please suggest!

    I take that you refreshed the Planning security, If not refresh the security of those users. Managing Security Filters
    Check in EAS whether those filters are created with "Write" permissions.
    Regards
    Celvin
    http://www.orahyplabs.com

  • How do I access session data through an EJB?

    Hi
    How do I access session data through an EJB?
    I am currantly developing a Web service (using ejb's, JBoss.net and Apache Axis). A client making a call to this Web service, is expecting a bussiness-object in return. My problem is that this bussiness-object i stored in a users session data. How do I retrieve this bussiness-object from the users session.
    I have read that this does not work with httpsessions, is this true? If this is true, is it possible to store the bussiness object in a JavaBean e.g:
    <jsp:useBean id="userContextWebImpl" scope="session" class="com.ac.march.client.UserContextWebImpl">
    <%
    String key = "test";
    String value = "This is the value";
    userContextWebImpl.setValue( key, value1 );
    %>
    </jsp:useBean>
    and then retrieve this information through the EJB? Or is it possible to do this by using Statfull JavaBeans? Or can this be done through a nother solution?
    Please help!

    I have created a JavaBean with scope="application" to store some data. The data is stored when a user prefomes a spesific task.
    A different person then makes a call to a Web-Service on the server. The Web-Service then asks an EJB to retrieve the data stored in the JavaBean (servlet cotext). In other words: How do I retrieve this data from the EJB?
    I have tried with this code, but with no luck.
    (ApplicationContextWebImpl is the JavaBean)
    public static String getBookingResult( String key )
         String myResult = null;
         String myKey = key;
         ApplicationContextWebImpl applicationContextWebImpl = null;
         try
              applicationContextWebImpl = new ApplicationContextWebImpl();
              myResult = (String)applicationContextWebImpl.getValue( key );
         catch ( java.rmi.RemoteException e )
         return myResult;
    }

Maybe you are looking for

  • How can I make the app store charge purchases to my phone bill?

    I just switched from an android to an iPhone.  In the android market it gives you the option of charging app purchases to your billing account, but I can't seem to find that option on iPhone, it only let's you pay through credit card.  Is there any w

  • Macbook Pro Retina (late 2013) sleep wake problems under Yosemite

    Hi, Ever since I installed Yosemite on my MBP (details in the screen shot below), I've been getting Sleep Wake problems.  At night, I simply close the lid of the laptop, leaving all applications running, and in the morning I wake it up.  This worked

  • How can I show formulas in spreadsheet AW6?

    I did a spreadsheet in Claris Works and was able to switch back and forth between the results of some calulations and the formulas. In a AW6 spreadsheet I can't figure out how to show the formulas. I've gone to Menu>Option>display>formulas (plus all

  • Hp deskjet 2545 printer driver not supporting on windows server 2008 r2

    I have purchased a 3 in 1 hp deskjet 2545 printer. I am trying to configure in on my home laptop (HCL) operating system: windows server 2008 R2, but unable to configure it. customer support executive told me hp deskjet 2545 printer driver is not comp

  • My MacBook Air keeps randomly turning off but they keyboard is still lit.

    I'll be doing work on my MacBook Air that I only got a month or so ago.  and the screen with suddenly turn black. The laptop isn't off as the keyboard is still lit. It is fully charged and plugged in. I have pressed all the buttons but it still won't