Adding data to a JTable
how can I add data (Object[][]) to an existing Jtable without creating the Jtable again or setting up a new TableModel for this Jtable.
Thanks you
You can't, unless you've written a custom TableModel that allows you to do this.
The normal solution is:
DefaultTableModel model = new DefaultTableModel(...);
table.setModel( model );
Similar Messages
-
Adding data dynamically to JTable with a filter - getting error
Hello,
I am using JTable, and adding data and displaying it worked fine
until I tried adding a filter,
can anyone tell me what am I doing wrong or
why am I getting this Error?
The Error message
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at javax.swing.DefaultRowSorter.convertRowIndexToModel(DefaultRowSorter.java:501)
at javax.swing.JTable.convertRowIndexToModel(JTable.java:2620)
at javax.swing.JTable.getValueAt(JTable.java:2695)
at javax.swing.JTable.prepareRenderer(JTable.java:5712)
at javax.swing.plaf.basic.BasicTableUI.paintCell(BasicTableUI.java:2075)
at javax.swing.plaf.basic.BasicTableUI.paintCells(BasicTableUI.java:1977)
at javax.swing.plaf.basic.BasicTableUI.paint(BasicTableUI.java:1773)
at javax.swing.plaf.ComponentUI.update(ComponentUI.java:143)
at javax.swing.JComponent.paintComponent(JComponent.java:763)
at javax.swing.JComponent.paint(JComponent.java:1027)
at javax.swing.JComponent.paintChildren(JComponent.java:864)
at javax.swing.JComponent.paint(JComponent.java:1036)
at javax.swing.JViewport.paint(JViewport.java:747)
at javax.swing.JComponent.paintChildren(JComponent.java:864)
at javax.swing.JComponent.paint(JComponent.java:1036)
at javax.swing.JComponent.paintToOffscreen(JComponent.java:5122)
at javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:277)
at javax.swing.RepaintManager.paint(RepaintManager.java:1217)
at javax.swing.JComponent._paintImmediately(JComponent.java:5070)
at javax.swing.JComponent.paintImmediately(JComponent.java:4880)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:803)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:714)
at javax.swing.RepaintManager.seqPaintDirtyRegions(RepaintManager.java:694)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:128)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)I am also using my own class that extends "AbstractTableModel"
as TableModel,
public class MyTableModel extends AbstractTableModel {
ArrayList<TableData> tableData=new ArrayList<TableData>(10);
String[] columnNames=new String[]{"S/N"," Time (mili)","SD","SA","SSAP","DA","DSAP","FC","DATA"};
public void addRow(TableData data){
tableData.add(data);
fireTableDataChanged();
@Override
public int getRowCount() {
return tableData.size();
public TableData getRow(int i){
return tableData.get(i);
@Override
public int getColumnCount() {
return columnNames.length;
@Override
public String getColumnName(int col) {
return columnNames[col];
@Override
public Object getValueAt(int rowIndex, int columnIndex) {
return tableData.get(rowIndex).getValue(columnIndex);
}The Row Filter class
class myRowFilter extends RowFilter<MyTableModel,Integer>{
@Override
public boolean include(Entry<? extends MyTableModel, ? extends Integer> entry) {
// Entry < SomeCostumTableModel , Integer> entry ; Integer =Identifier= Row Number
boolean frame_type;
MyTableModel model=entry.getModel();
TableData data=model.getRow(entry.getIdentifier());
frame_type=((SD1&&data.SD==TableData.SD1) ||
(SD2&&data.SD==TableData.SD2) ||
(SD3&&data.SD==TableData.SD3) ||
(SD4&&data.SD==TableData.SD4) ||
(SC&&data.SD==TableData.SC) );
return frame_type;
}and How I add the filter to the Table
private MyTableModel myTableModel=new MyTableModel();
private RowSelectionListener rowSelectionListener=new RowSelectionListener();
TableRowSorter<MyTableModel> sorter=new TableRowSorter<MyTableModel>(myTableModel);
private FilterFrame filterFrame=new FilterFrame(this);
// then in the constructor of the main frame
// I call this
sorter.setRowFilter(filterFrame.filter);
MainTable.setRowSorter(sorter);
sorter.setSortsOnUpdates(true);Edited by: YellowMurdoch on Nov 17, 2009 6:31 AM
Edited by: YellowMurdoch on Nov 17, 2009 6:31 AMThanks for noting that.
you mean like this?
public void addEntry(TableData data){
myTableModel.addRow(data);
javax.swing.SwingUtilities.invokeLater(new Runnable(){
@Override
public void run(){
myTableModel.fireTableRowsInserted(0,0);
}both work,
would putting "invokeLater" inside "addEntry" somehow mess other things?
i guess that means addRow() is not supposed to update the table graphically?
Edited by: YellowMurdoch on Nov 17, 2009 9:30 AM
Edited by: YellowMurdoch on Nov 17, 2009 9:33 AM -
Directory being added two times in JTable rows.(JTable Incorrect add. Rows)
hi,
I have a problem, The scenario is that when I click any folder that is in my JTable's row, the table is update by removing all the rows and showing only the contents of my selected folder. If my selected folder contains sub-folders it is some how showing that sub-folder two time and if there are files too that are shown correctly. e.g. If I have a parent folder FG1 and inside that folder I have one more folder FG12 and two .java files then when I click on FG1 my table should show FG12 and two .java files in separate rows, right now it is showing me the contents of FG1 folder but some how FG12 is shown on two rows i.e. first row shows FG12 second row shows FG12 third row shows my .java file and fourth row shows my .java fil. FG12 should be shown only one time. The code is attached. The methods to look are upDateTabel(...) and clearTableData(....), after clearing all my rows then I proceed on adding my data to the Jtable and inserting rows. May be addRow(... method of DefaultTableModel is called two times if it is a directory I don't know why. Please see the code below what I am doing wrong and how to fix it. Any help is appreciated.
Thanks
import javax.swing.*;
import javax.swing.event.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.table.*;
import javax.swing.border.*;
import java.io.*;
import java.text.SimpleDateFormat;
import java.util.*;
public class SimpleTable extends JPanel {
/** Formats the date */
protected SimpleDateFormat formatter;
/** two-dimensional array to hold the information for each column */
protected Object data[][];
/** variable to hold the date and time in a raw form for the directory*/
protected long dateDirectory;
/** holds the readable form converted date for the directories*/
protected String dirDate;
/** holds the readable form converted date for the files*/
protected String fileDate;
/** variable to hold the date and time in a raw form for the file*/
protected long dateFile;
/** holds the length of the file in bytes */
protected long totalLen;
/** convert the length to the wrapper class */
protected Long longe;
/** Vector to hold the sub directories */
protected Vector subDir;
/** holds the name of the selected directory */
protected String dirNameHold;
/** converting vector to an Array and store the values in this */
protected File directoryArray[];
/** hashtable to store the key-value pair */
protected static Hashtable hashTable = new Hashtable();
/** refer to the TableModel that is the default*/
protected DefaultTableModel model;
/** stores the path of the selected file */
protected static String fullPath;
/** stores the currently selected file */
protected static File selectedFilename;
/** stores the extension of the selected file */
protected static String extension;
/** holds the names of the columns */
protected final String columnNames[] = {"Name", "Size", "Type", "Modified"};
* Default constructor
* @param File the list of files and directories to be shown in the JTable.
public SimpleTable(File directoryArray[])
this.setLayout(new BorderLayout());
this.setBorder( BorderFactory.createEmptyBorder( 0, 0, 0, 0 ) );
(SimpleTable.hashTable).clear();
data = new Object[this.getRowTotal(directoryArray)][this.getColumnTotal()];
formatter = new SimpleDateFormat("mm/dd/yyyy hh:mm aaa");
//this shows the data in the JTable i.e. the primary directory stuff.
for(int k = 0; k < directoryArray.length; k++)
if(directoryArray[k].isDirectory())
data[k][0] = directoryArray[k].getName();
data[k][2] = "File Folder";
dateDirectory = directoryArray[k].lastModified();
dirDate = formatter.format(new java.util.Date(dateDirectory));
data[k][3] = dirDate;
(SimpleTable.hashTable).put(directoryArray[k].getName(), directoryArray[k]);
else if(directoryArray[k].isFile())
data[k][0] = directoryArray[k].getName();
totalLen = directoryArray[k].length();
longe = new Long(totalLen);
data[k][1] = longe + " Bytes";
dateFile = directoryArray[k].lastModified();
fileDate = formatter.format(new java.util.Date(dateFile));
data[k][3] = fileDate;
(SimpleTable.hashTable).put(directoryArray[k].getName(), directoryArray[k]);
model = new DefaultTableModel();
model.addTableModelListener( new TableModelListener(){
public void tableChanged( javax.swing.event.TableModelEvent e )
final JTable table = new JTable(model);
table.getTableHeader().setReorderingAllowed(false);
table.setRowSelectionAllowed(false);
table.setBorder( BorderFactory.createEmptyBorder( 0, 0, 0, 0 ) );
table.setShowHorizontalLines(false);
table.setShowVerticalLines(false);
table.addMouseListener(new MouseAdapter()
public void mouseReleased(MouseEvent e)
//TBD:- needs to handle the doubleClick of the mouse.
System.out.println("The clicked component is " + table.rowAtPoint(e.getPoint()) + "AND the number of clicks is " + e.getClickCount());
if(e.getClickCount() >= 2 &&
(table.getSelectedColumn() == 0) &&
((table.getColumnName(0)).equals(columnNames[0])))
System.out.println("The clicked component is " + table.rowAtPoint(e.getPoint()) + "AND the number of clicks is " + e.getClickCount());
upDateTable(table);
upDateTable(table);
/** set the columns */
for(int c = 0; c < columnNames.length; c++)
model.addColumn(columnNames[c]);
/** set the rows */
for(int r = 0; r < data.length; r++)
model.addRow(data[r]);
//this sets the tool-tip on the headers.
DefaultTableCellRenderer D_headerRenderer = (DefaultTableCellRenderer ) table.getTableHeader().getDefaultRenderer();
table.getColumnModel().getColumn(0).setHeaderRenderer(D_headerRenderer );
((DefaultTableCellRenderer)D_headerRenderer).setToolTipText("File and Folder in the Current Folder");
//Create the scroll pane and add the table to it.
JScrollPane scrollPane = new JScrollPane(table);
//Add the scroll pane to this window.
this.add(scrollPane, BorderLayout.CENTER);
* Returns the number of columns
* @return int number of columns
public int getColumnTotal()
return columnNames.length;
* Returns the number of rows
* @return int number of rows
public int getRowTotal(Object directoryArray[])
return directoryArray.length;
* Update the table according to the selection made if a directory then searches and
* shows the contents of the directory, if a file fills the appropriate fields.
* @param JTable table we are working on
* //TBD: handling of the files.
private void upDateTable(JTable table)
if((table.getSelectedColumn() == 0) && ((table.getColumnName(0)).equals(columnNames[0])))
dirNameHold =(String) table.getValueAt(table.getSelectedRow(),table.getSelectedColumn());
File argument = findPath(dirNameHold);
if(argument.isFile())
CMRDialog.fileNameTextField.setText(argument.getName());
try
fullPath = argument.getCanonicalPath();
selectedFilename = argument.getCanonicalFile();
CMRDialog.filtersComboBox.removeAllItems();
extension = fullPath.substring(fullPath.lastIndexOf('.'));
CMRDialog.filtersComboBox.addItem("( " + extension + " )" + " File");
catch(IOException e)
System.out.println("THE ERROR IS " + e);
return;
else if(argument.isDirectory())
String path = argument.getName();
//find the system dependent file separator
//String fileSeparator = System.getProperty("file.separator");
CMRDialog.driveComboBox.addItem(" " + path);
subDir = Search.subDirs(argument);
/**TBD:- needs a method to convert the vector to an array and return the array */
directoryArray = new File[subDir.size()];
int indexCount = 0;
/** TBD:- This is inefficient way of converting a vector to an array */
Iterator e = subDir.iterator();
while( e.hasNext() )
directoryArray[indexCount] = (File)e.next();
indexCount++;
/** now calls this method and clears the previous data */
clearTableData(table);
(SimpleTable.hashTable).clear();
data = new Object[this.getRowTotal(directoryArray)][this.getColumnTotal()];
formatter = new SimpleDateFormat("mm/dd/yyyy hh:mm aaa");
data = null;
data = new Object[this.getRowTotal(directoryArray)][this.getColumnTotal()];
for(int k = 0; k < directoryArray.length; k++)
if(directoryArray[k].isDirectory())
data[k][0] = directoryArray[k].getName();
data[k][2] = "File Folder";
dateDirectory = directoryArray[k].lastModified();
dirDate = formatter.format(new java.util.Date(dateDirectory));
data[k][3] = dirDate;
(SimpleTable.hashTable).put(directoryArray[k].getName(), directoryArray[k]);
model.addRow(data[k]);
model.fireTableDataChanged();
else if(directoryArray[k].isFile())
data[k][0] = directoryArray[k].getName();
totalLen = directoryArray[k].length();
longe = new Long(totalLen);
data[k][1] = longe + " Bytes";
dateFile = directoryArray[k].lastModified();
fileDate = formatter.format(new java.util.Date(dateFile));
data[k][3] = fileDate;
(SimpleTable.hashTable).put(directoryArray[k].getName(), directoryArray[k]); }
model.addRow(data[k]);
model.fireTableDataChanged();
table.revalidate();
table.validate();
* Searches the Hashtable and returns the path of the folder or the value.
* @param String name of the directory or file.
* @return File full-path of the selected file or directory.
public File findPath(String value)
return (File)((SimpleTable.hashTable).get(value));
* This clears the previous data in the JTable and removes the rows.
* @param JTable table we are updating.
public void clearTableData(JTable table)
for(int row = table.getRowCount() - 1; row >= 0; --row)
model.removeRow(row);
model.fireTableStructureChanged();java gurus any idea how ti fix this problem.
thanks -
Regarding adding Rows to a Jtable programmatically
I tried adding rows to a Jtable programmatically.
My Jtable has the Table Model as a class that has been extended from DefaultTAbleModel.
I tried inserting rows using addRow, and setRowCount and set RowNum methods but nothing worked..
and I get the OutOfMemory xecption alawys and my applet hangs...What's in your addRow method? Are you firing the
inserted event with fireRowsInserted?
My snippet assumes you're storing table data in a
vector of vectors and only want to add the row to the
bottom of the table.
public void addRow(Vector vector)
data.add(vector);
fireTableRowsInserted(data.size(),
size(), data.size());
addRow is a method of the DefaultTableModel class..and so I am not over riding it...
i just use it as defaulttablemodel-object.addRow(Object[] obj); -
Adding data to a specific row in excel
Hi there,
I have problems with my data collection from serial read block. I get every time 16 bytes when I write certain command to my serial device. But after a continuous data written to excel, that is let say six rows of data and after that I get one byte of data which I do not want to save in current updating excel sheet.
For that now, I have taken a case structure with two cases, one case contains nothing when I read the one byte and another case contains the code(Spreadsheet file VI) for adding data to excel when 16 bytes received one by one. Still, I am not getting what I wish for. The one byte case adding zero to the current excel file at row 6 and then continuous with 16bytes of data in remaining rows and again after 6 continuous rows it adds zero and so on. I don't know why it is adding zero even i did not put any code inside the case of it.
How could I eliminate this adding of zeros?
Here it looks like in my excel sheet.
row1: 15 16 17 18 19 20
row2: 15 16 17 18 19 20
row3: 15 16 17 18 19 20
row4: 15 16 17 18 19 20
row5: 15 16 17 18 19 20
row6: 0 (This when one byte reception case which contains no spreadsheet file VI)
row7: 15 16 17 18 19 20
row8: 15 16 17 18 19 20
row9: 15 16 17 18 19 20
row10: 0
Any help here around!You misunderstood my point. I have no code inside the adding zero case. It adding by no meaning. I have only written in one case to add continuous data to excel when ever I receive more than one byte. If I receive one byte exactly, I would not like to append this to excel but currently my program is doing that.
I have added my code snippet which is not the current working code. I am out of access to my current code. But instead I have attached similar one. You merely assume that the data is coming form serial read block.
Thanks for your efforts.
Attachments:
Excel.vi 11 KB -
Adding data labels to column graph
I work in the financial industry and I have to add data labels to all bars that appear in my ten year performance graphs (see http://fundinvestor.calamos.com/ClosedEndFunds/CEFund.aspx?name=CHI under the "Performance" tab as an example). Is there a script that can do this? I saw there's this technique that Adobe offers for column totals: http://livedocs.adobe.com/en_US/Illustrator/13.0/help.html?content=WS714a382cdf7d304e7e07d 0100196cbc5f-619e.html but that's not working. What am I doing wrong? Adding data labels to bars is ridiculously simple in Excel, why can't I find the way to do it easily in Illustrator?
http://help.adobe.com/en_US/Illustrator/14.0/WS714a382cdf7d304e7e07d0100196cbc5f-619ea.htm l
That should do the trick.
Mylenium -
Adding data to Manual Distribution Rule from DIAPI
Hi
I am searching for the object to insert the data to OMDR (manual distribution rule) using DI API. Can any one help me out.
I found many questions related to adding data to manual distribution rule using DIAPI which were not answered.
Thanks in Advance.hi.
Just check the below posts.
object type of distribution rules
Distribution rules setup.. -
Adding data to multiple tables using one form in Access 2010?
Hi All,
I have a access database with two tables and I want to create a single form to enter data into that tables.
How to adding data to multiple tables using one form in Access 2010?
I don't have to much knowledge of access database?
Please help me
Thanks
BalajiYou really don't enter identical data into 2 tables. You enter dat into one single table, and then you have an unique identifier that maps to another table (you have a unique relationship between two tables).
Maybe you need to read this.
http://office.microsoft.com/en-001/access-help/database-design-basics-HA001224247.aspx
Think about it this way... What is you update data in 2 tables, and then the data in one of those tables changes, but the data in the other table does NOT change. WHOOPS!! Now, you've got a BIG problem. For instance, you have a customer
named Bill Gates. In one Table you update Bill's address to 1835 73rd Ave NE, Medina, WA 98039 and in the other table you accidentally update Bill's address to 183 73rd Ave NE, Medina, WA 98039. Now you have 2 addresses for Bill. Why would
you want that??? Which is right? No one knows. If you have one address, you just have to update one address and if there is a mistake, you just have to update one address, but you don't have to waste time trying to figure out which is right
and which is wong...and then update the one that is wrong.
Post back with specific questions.
Knowledge is the only thing that I can give you, and still retain, and we are both better off for it. -
Adding data in internal table using extracted data
Hi Experts,
Good day!
I have a requirements in our historical data of material price which adding data that are not existing based on data extracted from standard tables such as A004 and KONP.
Now, i need to use the VALIDFROM (DATAB) value as basis for the latest price.
To make it more clear, see the example below:
Extracted data:
Material Number Valid From Valid to Price
100101 01/01/2008 02/01/2008 100.00
100101 02/02/2008 04/02/2008 100.00
100101 04/03/2008 08/01/2008 200.00
100101 08/02/2008 01/31/2009 300.00
100102 05/02/2008 07/01/2008 10.00
100102 07/02/2008 10/31/2008 15.00
100102 11/01/2008 01/31/2009 20.00
Output:
Material Number Calmonth Price
100101 01/2008 100.00
100101 02/2008 100.00
100101 03/2008 100.00
100101 04/2008 200.00
100101 05/2008 200.00
100101 06/2008 200.00
100101 07/2008 200.00
100101 08/2008 300.00
100101 09/2008 300.00
100101 10/2008 300.00
100101 11/2008 300.00
100101 12/2008 300.00
100101 01/2009 300.00
100102 05/2008 10.00
100102 06/2008 10.00
100102 07/2008 15.00
100102 08/2008 15.00
100102 09/2008 15.00
100102 10/2008 15.00
100102 11/2008 20.00
100102 12/2008 20.00
100102 01/2009 20.00
Text that are in bold are the added data. What is the best code to do with this?
How can i come up with this output? Help me please
Thanks and Godbless,
nipsHi Nips,
Logic shud b sumthing on similar lines
lv_count = 1.
Loop at itab into watab.
if lv_count > 12.
lv_count = 1.
endif.
if watab-date+0(2) = lv_count.
append watab to gt_output.
continue.
else.
concatenate lv_count sy-datum+4(4) into watab-date.
append watab to gt_output.
endif.
endloop.
Best regards,
Prashant -
One thing I am finding a little awkward; Adding data in the grid. It would be nice to be able to use tab to get to the next cell. At present it just highlights the cell and typing doesn't do anything until the cell is clicked. Equally hitting return I would expect it to give me a new blank row. I would like to be able to add a couple of rows of data without resorting to using the mouse at each turn.
Very good initial impressions though.Yes we should do this as it's what everyone will expect from Excel.
-kris -
Adding data from one matrix to another
Hay guys.I'm having trouble with adding data, that is situated in a Matrix on form A and bound to a userdatasource,
to a Matrix on form B that is bound to a dbdatasource.
For some reason the data either does not display at all, or it only displays the last records' data as many times
as there are records in the original matrix from form A.
Here's the code I've tried: (Displays only last record x times)
For i = 1 To oMatrixSync.RowCount
oFormTime.DataSources.DBDataSources.Item("@TB_TIMEDET").SetValue("U_Activity", _
oMatrixTime.RowCount, _
oFormSync.DataSources.UserDataSources.Item("U_Act").ValueEx)
oMatrixTime.AddRow()
next
And this code displays zip:
For i = 1 To oMatrixSync.RowCount
oCheckBox = oMatrixSync.Columns.Item("c_Check").Cells.Item(i).Specific
If oCheckBox.Checked = True Then
oEditS = oMatrixSync.Columns.Item("c_Activity").Cells.Item(i).Specific
oFormTime.DataSources.DBDataSources.Item("@TB_TIMEDET").SetValue("U_Activity", _
oMatrixTime.RowCount, _
oEditS.Value)
oMatrixTime.AddRow()
oMatrixTime.LoadFromDataSource()
next
Any help would be greatly appreciated, thanx all!
Message was edited by: Tjaard Du PlessisThanks, Jaro!
You are right. The code should look like this:
Dim oDBDSTime As DBDataSource = oFormTime.DataSources.DBDataSources.Item("@TB_TIMEDET")
Dim oUDSSync As UserDataSource = oFormSync.DataSources.UserDataSources.Item("U_Act")
For i = 1 To oMatrixSync.RowCount
oMatrixSync.GetLineData(i)
oDBDSTime.InsertRecord(i)
oDBDSTime.SetValue("U_Activity", _
i, _
oUDSSync.ValueEx)
Next
oMatrixTime.LoadFromDataSource()
Regards,
Frank -
Hi Guys,
I have another problem on adding data source on EID. When I try adding a data source on EID as a JDBC source I get error that says "Could not establish a connection"..Do you tell me step by step what I have to do when I add a data source on Endeca? My data has based on SQL 2008.The Studio Administration and Customization Guide includes the information on creating and managing data sources.
Adding and editing data sources in the Data Source Library
I don't know anything about the specific format of a connection URL for SQL 2008. That should be fairly standard, though. -
Adding Data through LOV when LOV validation fails to bring row
Question on Adding data to LOV:
Just like in form 5(Professional Forms), Is there a way to dynamically insert the row to add data if the data entered is not in the LOV? I have searched forum and looked at Dev Guide but didn't find any notes. One way is making "AutoValidation" false so LOV will not fire and validate, THEN upon SAVE just commit trx. Will this work? or Is there a better thought. ThanksSet the Disable Validation property of the LOV Item to "True"
Thanks,
Kumar -
No dates in Last Modified Date or Added Date
Hello.
Due to some issues with our servers i'm unable to make any SR's so i hope to recive some answers here instead while that issue gets resolved.
When looking in the colums "Added Date" and "Last Modified Date" certain activites have no dates there. When attempting to filter all the activities with a filter "Added Date Equals 'Blank' " ie all aktivites who do not have a date in Added Date, the results are 0 activites. I interpret this as the fields are not empty but for some reason the information is not displayed.781070 wrote:
Hello.
Due to some issues with our servers i'm unable to make any SR's so i hope to recive some answers here instead while that issue gets resolved.
When looking in the colums "Added Date" and "Last Modified Date" certain activites have no dates there. When attempting to filter all the activities with a filter "Added Date Equals 'Blank' " ie all aktivites who do not have a date in Added Date, the results are 0 activites. I interpret this as the fields are not empty but for some reason the information is not displayed.As far back as I can remember, filtering by either of those fields has never worked.
There are a number of reasons why the last modified or added date could be blank. -
How to populate data in a JTable?????????
hi there
can anyone tell me how to populate data in a JTable? when a table is displayed, the table should have data retrieved from a file. thank you.Hi,
it is correct, that the best way to learn about JTable is to read the online tutorial about JTable. To give you a quick guideline, where to start your implementation, I will add this:
A JTables data is hold in a TableModel. TableModel is an interface, so if a class implements this interface correctly, you can simply populate the data hold by this TableModel by constructing a JTable this way
JTable jt = new JTable(MyTableModel);
where MyTableModel is your class, which implements the TableModel interface.
When JTable has to render a cell, it will call the getValueAt(...) method of the TableModel for example.Your implementation of this method must deliver the requested data - if you prefetch a bunch of data from a file and store it internally in this TableModel or fetch it from the file just in time, is up to you.
greetings Marsian
Maybe you are looking for
-
APEX 4.0.2 Created a RESTful web service with input and output parameters. Created a report region on the web service. It generates a SQL report with the following query select extractValue(value(t),'/*/op1') "op1" , extractValue(value(t),'/*/op
-
OIM 11g AD Connector Access Policy Based Provisioning Issue
Hi, I created Approval Policy for Access Policy Based Provisioning request type for request level (autoapproval) and operational level (used standart beneficiaryManagerApproval process), but when the resource must assigned to User,- throws exception
-
Comments on this style of scripting.
Hi, This is my first rman shell script, still learning the ropes. Just looking for any commentary on the pro's cons of how I'm doing this. You'll notice instead of saving a job in RMAN with "create script" I've elected to leave the script in the back
-
I would like to use the iPhoto album option in ofoto express to save my picts to the web, but for some reason i can no longer log-in using the ofoto express application. i tried the following: - uninsalling and reinstalling (removing the prefs as wel
-
Hello, is it possible to create a installer buindle so that the end user do not have to download and install the AIR Runtime ? Essentially it should be just an application (e.g: exe, app,...) which initiate the whole installation. Is this possible ?