Masters, Versins and Duplicates
History: I "think" this is an explanation for my current dilemma ...... My aperture photos were stored on a small external drive. For convenience and disconnect reasons I found this cumbersome and not satisfactory. So - I had more memory added to the hard drive and planned for it to be my Aperture 'base camp'. The tech. who transferred my Aperture Library (17,000 photos) from the small storage drive to the new HD location transferred versions instead of Masters. Hence there are MANY photos I can't edit without first finding and downloading their Masters images. So, as I am able, I have been spending an incredible amount of time importing Masters to the HD Library, and then eliminating related versions. I've learned that, because I lose size and quality, I can't simply do a drag-and-drop move. Instead I export Masters from the small external drive to a desktop file folder and then Import to the HD Library from there. It's a lot of time-consuming WORK! ... Work that becomes more challenging because, for some reason, there are many photos, (especially older ones that were downloaded from other than a camera card/with no keywords), that now have dates that are messed up - such that the version and Master image dates are different. Then it becomes next-to-impossible to find and match versions with Masters, in order to be sure both are available before deleting the version. ARGH!
Question: Is there any feature on Aperture that allows me to more easily find duplicates? (If not, is this a recommendation to be made to the powers-that-be?)
Can anyone recommend a simpler process for going through my Library and sorting this mess out?
THANKS!
I think the reason for no response to this question yet is because nobody that knows how Aperture works even knows where to start in explaining what to do or even what questions to ask to try to help you.
For instance I have no idea what you are talking about when you say "only the versions were moved" you can't really do that. If I took a complete guess at what happened is that your library was moved and you had your masters referenced on the external drive - somehow that reference got broken and your masters are off-line. If that is the case there are real simple ways to get them back on-line without reimporting and screwing everything up. If that is not the case I really don't even know where to start since the base line screw up is impossible.
Take a look around on my site for some file management stuff and see if you can formulate what actually happened so that we can better assist in a resolution.
[http://photo.rwboyer.com>
RB
Ps. Next time you get a "tech" make sure he is actually "technical"
Similar Messages
-
Avoiding null and duplicate values using model clause
Hi,
I am trying to use model clause to get comma seperated list of data : following is the scenario:
testuser>select * from test1;
ID VALUE
1 Value1
2 Value2
3 Value3
4 Value4
5 Value4
6
7 value5
8
8 rows selected.
the query I have is:
testuser>with src as (
2 select distinct id,value
3 from test1
4 ),
5 t as (
6 select distinct substr(value,2) value
7 from src
8 model
9 ignore nav
10 dimension by (id)
11 measures (cast(value as varchar2(100)) value)
12 rules
13 (
14 value[any] order by id =
15 value[cv()-1] || ',' || value[cv()]
16 )
17 )
18 select max(value) oneline
19 from t;
ONELINE
Value1,Value2,Value3,Value4,Value4,,value5,
what I find is that this query has duplicate value and null (',,') coming in as data has null and duplicate value. Is there a way i can avoid the null and the duplicate values in the query output?
thanks,
Edited by: orausern on Feb 19, 2010 5:05 AMHi,
Try this code.
with
t as ( select substr(value,2)value,ind
from test1
model
ignore nav
dimension by (id)
measures (cast(value as varchar2(100)) value, 0 ind)
rules
( ind[any]= instr(value[cv()-1],value[cv()]),
value[any] order by id = value[cv()-1] || CASE WHEN value[cv()] IS NOT NULL
and ind[cv()]=0 THEN ',' || value[cv()] END
select max(value) oneline
from t;
SQL> select * from test1;
ID VALUE
1 Value1
2 Value2
3 Value3
4 Value4
5 Value4
6
7 value5
8
8 ligne(s) sélectionnée(s).
SQL> with
2 t as ( select substr(value,2)value,ind
3 from test1
4 model
5 ignore nav
6 dimension by (id)
7 measures (cast(value as varchar2(100)) value, 0 ind)
8 rules
9 ( ind[any]= instr(value[cv()-1],value[cv()]),
10 value[any] order by id = value[cv()-1] || CASE WHEN value[cv()] IS NOT NULL
11 and ind[cv()]=0 THEN ',' || value[cv()] END
12 )
13 )
14 select max(value) oneline
15 from t;
ONELINE
Value1,Value2,Value3,Value4,value5
SQL> -
Configuration Settings for Postal Adress Validation and Duplicate Check
Hi,
What are The Configuration settings for Postal adress validation and Duplicate Check for Accounts(BP'S) in CRM 7.0 version
Can some one send me the configuration settings for Postal Adress validation and Duplicate Check
Thanks & Regards
Kishor KumarHi kishore kumar,
For the Postal code Validation you need to install and configure the following
Outside of your SAP system:
1. Install Data Services and the Address Directories.
2. Install Data Services Component.
3. Install the RFC Server.
On your SAP system:
4. Install the BAdIs from the previous version of this product.
5. Install the BAdIs support package from this version.
6. Run the post-installation tasks required of a new installation of the BAdIs.
7. Activate the IC WebClient, if desired.
Thanks
Jayakrishnan Nair -
New video blog: Address Validation and Duplicate Check in IC
Hello Everyone,
Here is a short video discussing "Address Validation and Duplicate Check in the Interaction Center" for CRM 7.0 from Renee Wilhelm of SAP product management.
[http://www.sdn.sap.com/irj/scn/elearn?rid=/library/uuid/70e18a60-efc9-2c10-01ae-c4626f673a53]
Best regards,
John
P.S. Please share your thoughts, ideas, or concerns! Thank you.Hi,
in the video, you say that the user (logged into the system as IC Agent), can choose to merge the BPs once identified that a duplication exists.
By the way, into SAP OSS note "1565230 - dump after merging of BPs in IC webclient" it is written that it is not supported to integrate Business partner merge functionality to IC webclient.
Here below, an extract from the Note:
Reason and Prerequisites:
It is not supported to integrate Business partner merge functionality to IC webclient. Technically after the merging of Businss partners, the buffers of business transaction will be initalized at API layer directly, instead of by Genil layer. It is not possible to synchronize the buffer to BOL layer. Once you access to the business transaction which has been initialized during the merging of Business partners, the dump will occur.
Solution:
It is required to move the functionality to the business roles for
backoffice scenario, for example, SALESPRO etc.
What do you think about? Am I missing something?
Thanks in advance and Best Regards,
Andrea -
I need to flip, move and duplicate a group in InDesign CS4 JS
Hi,
I need fo flip, move and duplicate grouped objects in InDesign. So far I have those lines from OMV:
var myGroup2 = myGroup.duplicate ([".0625 in", myPageHeight/2]);
myGroup.flip (Flip.HORIZONTAL, AnchorPoint.CENTER_ANCHOR);
or
myGroup.flipItem (Flip.HORIZONTAL, AnchorPoint.CENTER_ANCHOR);
myGroup.move ([".0625 in", myPageHeight/2]);
Those lines work for single object, and what I see in OMV, it should be the same for a group(?), but they don't work.
Your help is highly appreciated.
Yulia.I got it. The lines are correct, mistake was before the lines - in the group definition. Here what I got and it's working:
var myArray = new Array;
//Add the items to the array.
myArray.push(myWhiteLine);
myArray.push(myGreenLine);
//Group the items.
var myPage = app.activeDocument.pages [0];
myLineGroup = myPage.groups.add(myArray);
var myLineGroup2 = myLineGroup.duplicate ();
myLineGroup2.flipItem(Flip.VERTICAL, AnchorPoint.TOP_RIGHT_ANCHOR);
Thank you.
Yulia -
How do I do a cleanup on my Macbook to get rid of Junk and duplicates?
How do I do a cleanup on my MacBook, to get rid of junk and duplicates?
Try Disk Inventory X.
17" 2.2GHz i7 Quad-Core MacBook Pro 8G RAM 750G HD + OCZ Vertex 3 SSD Boot HD
Got problems with your Apple iDevice-like iPhone, iPad or iPod touch? Try Troubleshooting 101 -
Queries regarding Boleto and Duplicata
Hi All,
I am a new member of this site.We have got a requirement for developing sap scripts for Brazil. Did anyone happen to work on Boleto and duplicata?
The standard forms available are J_1b_boleto_itau and j_1b_duplicata.
Can anyone please explain the functinality of the driver program RFFOBR_D which is for both the forms mentioned above?
Please help me out.1) IS OMS 10g also going out of support in July. If yes, what is latest version availableTo know about support Life cycle you could review the below document :
www.oracle.com/us/support/.../057419.pdf
Or
MOS notes :FAQ for Products in Extended Support [ID 757445.1]
Latest version : 12c
2) Can we upgrade just repository DB (OEM DB) without upgrading OMS software (as oracle 10g is going out of support)yes
As view just to know :
http://learnwithme11g.wordpress.com/tag/upgrade-oem/
3) Steps involved in upgrading OMS from 10g to 11g.Review this :
Master Index for Grid Control OMS and Repository Installation, Patching and Upgrade [ID 1277921.1] -
Alias Tables and Duplicate tables in Physical Layer
Hi all,
I have a small doubt in physical layer. We have two options when we right click table, 'Alias' and 'Duplicate'. To create another instance of a table, can we use any one of these. Does it make any difference
Thanks & Regards,
JagiHi,
If u duplicate any table the join conditions will carry with respective tables , same name appending (TableName#1)
In case of alias u need to specify joins conditions explicitly
We can use same table with different constrains to the same table
Aliases used, if you need to replicate a physical table and not create multiple tables with the same data
If you delete any column in the Original table automatically deleted in alias
table and Its not reflected in Duplicate table.
Steps:
Right Click the original table. Choose New Object and choose Alias.
The mistake most people make is try to bring in the same table again and rename it or choose Duplicate by right clicking the original table.
Thanks,
Balaa... -
Matrix Add Row and Duplicate Row
Hi All,
Can anybody suggest me how to work on Add row and duplicate row in any document table.
Lets take one example
Sales order document
In this doc we have table format where we specify item no, item description etc. In this table when we right click on particluar row we have option for add, delete, duplicate rows..etc.
wht i would like to know is that when we click add row .....one row is added and number is incremented under # column. Hw to perform and display this auto increment/ decrement of number for these rows under this # column
thanks
harishHi,
I tried following both code, but in that i am geting value. Means i am getting .Value Why i not getting value.
matrix.Columns.Item("V_-1").Cells.Item(pVal.Row).Specific.value = matrix.RowCount
and i also tried for "AddRow",
If pVal.BeforeAction = False Then
Select Case pVal.ItemUID
Case "AddRow"
matrix = form.Items.Item("mtr").Specific
If matrix.RowCount > 0 Then
If Trim(matrix.Columns.Item("V_-1").Cells.Item(matrix.RowCount).Specific.value) = "" Then
End If
End If
End Select
End If
In both example i not getting .Value.
Plz tell y ?
Thanks -
Smartform print out orginal and duplicate
Hi,
Can any one tell how to obtain orginal and duplicate copy in smartform for the single invoice ie 2 copies one original and duplicate. And in printout it has to print orignal and in another copyHi,
See below Code, Ask your Technical team to do like below for radio button appearing in selection screen.
SELECTION-SCREEN BEGIN OF BLOCK frame1 WITH FRAME TITLE text-001.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN POSITION 15.
PARAMETERS: r1 RADIOBUTTON GROUP rb .
SELECTION-SCREEN COMMENT 20(77) text-002.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN POSITION 15.
PARAMETERS: r2 RADIOBUTTON GROUP rb.
SELECTION-SCREEN COMMENT 20(77) text-003.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN POSITION 15.
PARAMETERS: r3 RADIOBUTTON GROUP rb.
SELECTION-SCREEN COMMENT 20(77) text-004.
SELECTION-SCREEN END OF LINE.
* SELECTION-SCREEN BEGIN OF LINE.
* SELECTION-SCREEN POSITION 15.
* PARAMETERS: r4 RADIOBUTTON GROUP rb.
* SELECTION-SCREEN COMMENT 20(77) text-005.
* SELECTION-SCREEN END OF LINE.
*selection-screen function key 1.
*selection-screen function key 2.
SELECTION-SCREEN END OF BLOCK frame1. -
Missed and duplicate events with Continues Query Cache
We have seen missed events and duplicate events when we register to receive events (using Continues Query Cache) on an entry in the cache while the entry is updating.
Use case:
Start a Node
Start a Proxy
Start Extend Client
Implementation of the Extend Client
Create Cache
Add Entry to Cache
Initiate Thread 1 {
For each ( 1 to 30)
Run Update Entry Processor on cache entry; Entry Processor increments the Cache Entry value by 1
Initiate Thread 2 {
wait until Cache entry is updated 10 times
Create MAP Listener {
For Entry Insert Event {
Print event
set Initial value = new value
For Entry Update Event {
Print event
set Update value = + 1
Initiate Continues Query Cache (cache, Always Filter, MAP Listener)
Start Thread 1
Start Thread 2
Waits until Thread 1 and Thread2 are terminated
Expected Result = read the value of the entry from cache
Actual result = Initial value + Update value
Results we have seen in two tests_
Test1: Expected Result > Actual results: Missing events
Entry Inserted Event: MapEvent{ContinuousQueryCache inserted: key=1, value=UpdateObject [intNumber=1, longNumber=13]}
+Entry Updated Event: MapEvent{ContinuousQueryCache updated: key=1, old value=UpdateObject [intNumber=1, longNumber=13], new value=UpdateObject [intNumber=1, longNumber=15]}+*
Entry Updated Event: MapEvent{ContinuousQueryCache updated: key=1, old value=UpdateObject [intNumber=1, longNumber=15], new value=UpdateObject [intNumber=1, longNumber=16]}
Entry Updated Event: MapEvent{ContinuousQueryCache updated: key=1, old value=UpdateObject [intNumber=1, longNumber=16], new value=UpdateObject [intNumber=1, longNumber=17]}
Entry Updated Event: MapEvent{ContinuousQueryCache updated: key=1, old value=UpdateObject [intNumber=1, longNumber=17], new value=UpdateObject [intNumber=1, longNumber=18]}
Entry Updated Event: MapEvent{ContinuousQueryCache updated: key=1, old value=UpdateObject [intNumber=1, longNumber=18], new value=UpdateObject [intNumber=1, longNumber=19]}
Entry Updated Event: MapEvent{ContinuousQueryCache updated: key=1, old value=UpdateObject [intNumber=1, longNumber=19], new value=UpdateObject [intNumber=1, longNumber=20]}
Entry Updated Event: MapEvent{ContinuousQueryCache updated: key=1, old value=UpdateObject [intNumber=1, longNumber=20], new value=UpdateObject [intNumber=1, longNumber=21]}
Entry Updated Event: MapEvent{ContinuousQueryCache updated: key=1, old value=UpdateObject [intNumber=1, longNumber=21], new value=UpdateObject [intNumber=1, longNumber=22]}
Entry Updated Event: MapEvent{ContinuousQueryCache updated: key=1, old value=UpdateObject [intNumber=1, longNumber=22], new value=UpdateObject [intNumber=1, longNumber=23]}
Entry Updated Event: MapEvent{ContinuousQueryCache updated: key=1, old value=UpdateObject [intNumber=1, longNumber=23], new value=UpdateObject [intNumber=1, longNumber=24]}
Entry Updated Event: MapEvent{ContinuousQueryCache updated: key=1, old value=UpdateObject [intNumber=1, longNumber=24], new value=UpdateObject [intNumber=1, longNumber=25]}
Entry Updated Event: MapEvent{ContinuousQueryCache updated: key=1, old value=UpdateObject [intNumber=1, longNumber=25], new value=UpdateObject [intNumber=1, longNumber=26]}
Entry Updated Event: MapEvent{ContinuousQueryCache updated: key=1, old value=UpdateObject [intNumber=1, longNumber=26], new value=UpdateObject [intNumber=1, longNumber=27]}
Entry Updated Event: MapEvent{ContinuousQueryCache updated: key=1, old value=UpdateObject [intNumber=1, longNumber=27], new value=UpdateObject [intNumber=1, longNumber=28]}
Entry Updated Event: MapEvent{ContinuousQueryCache updated: key=1, old value=UpdateObject [intNumber=1, longNumber=28], new value=UpdateObject [intNumber=1, longNumber=29]}
Entry Updated Event: MapEvent{ContinuousQueryCache updated: key=1, old value=UpdateObject [intNumber=1, longNumber=29], new value=UpdateObject [intNumber=1, longNumber=30]}
Expected Result: 30
Actual Result: 29
Issue:+ Event on 14th update was not sent
Test 2: Expected Result < Actual Result: Duplicate events
Entry Inserted Event: MapEvent{ContinuousQueryCache inserted: key=1, value=UpdateObject [intNumber=1, longNumber=13]}
*Entry Updated Event: MapEvent{ContinuousQueryCache updated: key=1, old value=UpdateObject [intNumber=1, longNumber=13], new value=UpdateObject [intNumber=1, longNumber=13]}*+
Entry Updated Event: MapEvent{ContinuousQueryCache updated: key=1, old value=UpdateObject [intNumber=1, longNumber=13], new value=UpdateObject [intNumber=1, longNumber=14]}
Entry Updated Event: MapEvent{ContinuousQueryCache updated: key=1, old value=UpdateObject [intNumber=1, longNumber=14], new value=UpdateObject [intNumber=1, longNumber=15]}
Entry Updated Event: MapEvent{ContinuousQueryCache updated: key=1, old value=UpdateObject [intNumber=1, longNumber=15], new value=UpdateObject [intNumber=1, longNumber=16]}
Entry Updated Event: MapEvent{ContinuousQueryCache updated: key=1, old value=UpdateObject [intNumber=1, longNumber=16], new value=UpdateObject [intNumber=1, longNumber=17]}
Entry Updated Event: MapEvent{ContinuousQueryCache updated: key=1, old value=UpdateObject [intNumber=1, longNumber=17], new value=UpdateObject [intNumber=1, longNumber=18]}
Entry Updated Event: MapEvent{ContinuousQueryCache updated: key=1, old value=UpdateObject [intNumber=1, longNumber=18], new value=UpdateObject [intNumber=1, longNumber=19]}
Entry Updated Event: MapEvent{ContinuousQueryCache updated: key=1, old value=UpdateObject [intNumber=1, longNumber=19], new value=UpdateObject [intNumber=1, longNumber=20]}
Entry Updated Event: MapEvent{ContinuousQueryCache updated: key=1, old value=UpdateObject [intNumber=1, longNumber=20], new value=UpdateObject [intNumber=1, longNumber=21]}
Entry Updated Event: MapEvent{ContinuousQueryCache updated: key=1, old value=UpdateObject [intNumber=1, longNumber=21], new value=UpdateObject [intNumber=1, longNumber=22]}
Entry Updated Event: MapEvent{ContinuousQueryCache updated: key=1, old value=UpdateObject [intNumber=1, longNumber=22], new value=UpdateObject [intNumber=1, longNumber=23]}
Entry Updated Event: MapEvent{ContinuousQueryCache updated: key=1, old value=UpdateObject [intNumber=1, longNumber=23], new value=UpdateObject [intNumber=1, longNumber=24]}
Entry Updated Event: MapEvent{ContinuousQueryCache updated: key=1, old value=UpdateObject [intNumber=1, longNumber=24], new value=UpdateObject [intNumber=1, longNumber=25]}
Entry Updated Event: MapEvent{ContinuousQueryCache updated: key=1, old value=UpdateObject [intNumber=1, longNumber=25], new value=UpdateObject [intNumber=1, longNumber=26]}
Entry Updated Event: MapEvent{ContinuousQueryCache updated: key=1, old value=UpdateObject [intNumber=1, longNumber=26], new value=UpdateObject [intNumber=1, longNumber=27]}
Entry Updated Event: MapEvent{ContinuousQueryCache updated: key=1, old value=UpdateObject [intNumber=1, longNumber=27], new value=UpdateObject [intNumber=1, longNumber=28]}
Entry Updated Event: MapEvent{ContinuousQueryCache updated: key=1, old value=UpdateObject [intNumber=1, longNumber=28], new value=UpdateObject [intNumber=1, longNumber=29]}
Entry Updated Event: MapEvent{ContinuousQueryCache updated: key=1, old value=UpdateObject [intNumber=1, longNumber=29], new value=UpdateObject [intNumber=1, longNumber=30]}
Expected Result: 30
Actual Result: 31
Issue:+ Event on 13th update was sent in Insert and Update events both
reg
Dasun.Hi Paul,
I tested with 3.7.1.4 and 3.7.1.5. In both versions I can see the issue.
reg
Dasun. -
Remove Advanced Pulldown and Duplicate Frames
I've been researching this but still have not figured it out:
When I import Canon XF100 footage shot in 24fps from my CF card into FCP 7, in the "Log and Transfer" window under "Preferences", should I check or uncheck "Remove Advanced Pulldown and Duplicate Frames"? My thought was to uncheck the box since it is a function specific to P2 cards and that it wouldn't make a difference either way for my footage. Also (and I could be wrong), I didn't think any pulldown was necessary since I was shooting in 24fps. However, when I examined 2 test clips taken through both paths, there was one noticeable difference: the unchecked clip is larger (644.8MB) than the checked (582.8MB). Hmmmm....
Does this mean the footage changes based on if that box is checked or not?
And in my shooting/import scenario, should I check or uncheck that box?
Thank you.23.98 and 23.98
> I have a few different cameras and some need pulldown and some don't but I've always left it checked under the > assumption that if there's nothing to pulldown it can't/won't and everything has been fine.
good to know. i agree. based on my conversations with the canon xf software folks, they were not entirely sure whether or not to check the box, so it doesn't seem to be a significant impact on the work flow.
thanks all for your input. -
How do I remedy the missing and duplicate pages in my downloaded book? Not sure who/how to contact or what to do. I am missing parts of the story.
Thanks!Have you tried deleting and then redownloading the book via the Purchased tab at the bottom of the store in the iBooks app ? If it re-downloads in the state then try the 'report a problem' link from your purchase history : log into your account on your computer's iTunes via Store > View My Account and you should then see a Purchase History section with a 'see all' link to the right of it ; click on that and you should see a list of your purchases ; find that book and use the 'Report a Problem' link.
-
Rman and duplicate database.
Hi,
I have some problems with rman and duplicate a database.
Im trying to duplicate a database on a anoter server than the target, and I have run the command SQL>startup force nomount, on the auxiliary system.
But I don't know what commands to use i rman.
Have backup-files on disk at the same server as the auxiliary system is on.
Any tips and tricks?!
Thanks in advanced,
Micke.I had the same question a while ago. The location of the files you'll need to restore from are specified in the controlfile. The location referenced in the controlfile will be the location where they were put but RMAN on your "source" server. So for instance, if RMAN drops the backup set in /opt/oracle/dbs/tmp, then your controlfile will point to /opt/oracle/dbs/tmp. (yours probably won't be here, it's just an example). Your controlfile WILL however have to go in the dbs directory, wherever that is.
What worked for me in the past was placing the backup files on the destination server in /home/oracle/backup_<date> and recreating the file structure based on that of the source server (even if it's just empty dirs) and symlink the last level of the tree to the folder where the files reside.
For example:
ln -s /home/oracle/backup_03272008 /opt/oracle/dbs/tmp
I think there's a more efficient way to do this, but this worked for me. -
Deletion of Invalid and duplicate roles
Hi,
This is regarding some function modules which are used for deleting invalid roles.These function modules are available only in CUA environment that is in Solution Manager environment only, not in ECC or other systems.Can anybody confiem which one of these function modules would be the best to delete roles of one's choice.The idea is we have identified the invalid and duplicate roles , but we need the function modules only to delete them , ie remove them from user's role profile..
The function modules are: 1) BBPU_WAP_USER_ROLE_REMOVE_LIST
2) BBPU_WAP_USER_ROLE_REMOVE
3) BBPU_WAP_USER_ROLE_CHANGE
Thanks & Regards,
Savitha.I don't know what you're doing.
Try my working SSCCE example.
Just press the Reset Table button and see what happens.
import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.UIManager;
import javax.swing.table.DefaultTableModel;
public class ResetTableTest {
public static void main(String[] args) {
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
JFrame frame = new JFrame();
frame.setDefaultCloseOperation(JDialog.EXIT_ON_CLOSE);
DefaultTableModel model = new DefaultTableModel(new String[][]{{"1", "2"}, {"3", "4"}}, new String[]{"col1", "col2"});
model.addRow(new String[] {"5", "6"});
JPanel panel = new JPanel(new BorderLayout());
final JTable table = new JTable(model);
panel.add(new JScrollPane(table), BorderLayout.CENTER);
JButton button = new JButton("Reset Table");
button.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
table.setModel(new DefaultTableModel(new String[][]{{"1", "2"}, {"3", "4"}}, new String[]{"col1", "col2"}));
panel.add(button, BorderLayout.SOUTH);
frame.getContentPane().add(panel);
frame.pack();
frame.setVisible(true);
} catch (Exception e) {e.printStackTrace();}
}
Maybe you are looking for
-
Is it possible to measure single voltages without creating a new task every time
I need to take voltages as input in the event loop of a program. If I create a task, take a measurement, then stop the task I get roughly 10 - 20 measurements a second. Is this the most efficient way to do this, I would need many more measurements, b
-
I've spent all day trying to fix all the problems I'm encountered after updating to Yosemite on my MacBook Pro today. It's been a waste of a day. Nothing I have researched has helped. I wish I never updated. What is ironic that most of the things
-
ok i was wondering, so when im in a game/app and i hit the sleep/wake button (without going to home first) and the screen goes black, and then when i turn it back on the game/app is still running, so my question is is that i no putting it to sleep sa
-
How do I stop my playlists to stop repeated
If I go to sleep listening to a playlist, I will wake up in the middle of the night and the playlist has been starting from the top. I don't think that this used to happen. I would like the playlist to play once and stop. Any suggestions? Thanks
-
CS4 Thumbnails do not show metadata or file number
All of a sudden my Bridge Content panel does not show any info on thumbnail photos, neither file number nor any metadata preferences. Info is OK in the Metadata window, but not on Content pane Also, the file folder thumbnail icons in Content panel n