Proper way to write a Renderer?

Why does this JTable show up with all three rows showing "Here". I only wanted the first one to. What is the proper way to write a JLabel renderer so that when I update a cell, it won't update the rest of the cells?
import javax.swing.*;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.TableCellRenderer;
import java.awt.*;
public class post extends JFrame {
private class JLabelRenderer extends JLabel implements TableCellRenderer {
public Component getTableCellRendererComponent(JTable table, Object value,
boolean isSelected, boolean hasFocus,
int row, int column) {
if (value instanceof String) this.setText((String) value);
return this;
private post() {
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.setSize(300, 300);
final DefaultTableModel model = new DefaultTableModel(3, 1);
JTable jtable = new JTable(model);
jtable.getColumnModel().getColumn(0).setCellRenderer(new JLabelRenderer());
jtable.setRowHeight(20);
JScrollPane pane = new JScrollPane(jtable);
this.getContentPane().add(pane);
this.show();
// Just update the FIRST cell of the FIRST ROW.
jtable.setValueAt("Here", 0, 0);
public static void main(String[] args) {
post blah = new post();

Every cell shares the same renderer. So once you set a property of the renderer, all cells use that property.
You use the setText() method to set the label to "Here", but it is never reset to another value. Try:
if (value instanceof String) this.setText((String) value);
else this.setText("");
However, here is a better example of how to write a Renderer:
import java.awt.*;
import javax.swing.*;
import javax.swing.table.*;
class HexCellRenderer extends DefaultTableCellRenderer
     private static final Color hexBackground = Color.cyan;
     public Component getTableCellRendererComponent(JTable table,
                                    Object value,
                                    boolean isSelected,
                                    boolean hasFocus,
                                    int row,
                                    int column)
          super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
          setBackground( hexBackground );
          setHorizontalAlignment( CENTER );
          return this;
}You should extend DefaultTableCellRenderer, which extends JLabel. The DefaultTableCellRenderer already sets the text of the label so your don't have to worry about it.

Similar Messages

  • What is the proper way to use the write method?

    What is the proper way to use the OutputStreams write method? I know the flush() method is automatically called after the write but i cant seem to get any output
    to a file. The char array contains characters and upon completion of the for loop the contents of the array is printed out, so there is actually data in the array. But write dosnt seem to do squat no matter what i seem to do. Any suggestions?
    import java.io.*;
    public class X{
    public static void main(String[] args){
    try{      
    FileReader fis = new FileReader("C:\\Java\\Test.txt"); //read chars
    FileWriter fw = new FileWriter("C:\\Java\\Test1.txt"); //read chars
    File f = new File("C:\\Java\\Test.txt");
    char[] charsRead = new char[(int)f.length()];
    while(true){
    int i = fis.read(charsRead);
    if(i == -1) break;
    // fw.write(charsRead); this wont work
    // but there is infact chars in the char Array?
    for(int i = 0; i < charsRead.length -1 ; ++i){
    System.out.print(charRead);
    }catch(Exception e){System.err.println(e);}

    Sorry to have to tell you this guys but all of the above are broken.
    First of all... you should all take a good look at what the read() method actually does.
    http://java.sun.com/j2se/1.3/docs/api/java/io/InputStream.html#read(byte[], int, int)
    Pay special attension to this paragraph:
    Reads up to len[i] bytes of data from the input stream into an array of bytes. An attempt is made to read as many as len[i] bytes, but a smaller number may be read, possibly zero. The number of bytes actually read is returned as an integer.
    In other words... when you use read() and you request say 1024 bytes, you are not guaranteed to get that many bytes. You may get less. You may even get none at all.
    Supposing you want to read length bytes from a stream into a byte array, here is how you do it.int bytesRead = 0;
    int readLast = 0;
    byte[] array = new byte[length];
    while(readLast != -1 && bytesRead < length){
      readLast = inputStream.read(array, bytesRead, length - bytesRead);
      if(readLast != -1){
        bytesRead += readLast;
    }And then the matter of write()...
    http://java.sun.com/j2se/1.3/docs/api/java/io/OutputStream.html#write(byte[])
    write(byte[] b) will always attempt to write b.length bytes, no matter how many bytes you actually filled it with. All you C/C++ converts... forget all about null terminated arrays. That doesn't exist here. Even if you only read 2 bytes into a 1024 byte array, write() will output 1024 bytes if you pass that array to it.
    You need to keep track of how many bytes you actually filled the array with and if that number is less than the size of the array you'll need pass this as an argument.
    I'll make another post about this... once and for all.
    /Michael

  • What is the proper way to close all open sessions of a NI PXI-4110 for a given Device alias?

    I've found that, when programming the NI PXI-4110 that, if a the VI "niDCPower Initialize With Channels VI" (NI-DCPower pallette) is called with a device
    alias that all ready has one or more sessions open (due to an abort or other programming error) a device reference results from the reference out that has a (*) where "*" is post-fixed to the device reference where and is an integer starting that increments with each initialize call. In my clean up, I would like to close all open sessions. For example, let's said the device alias is "NIPower_1" in NI Max, and there are 5 open sessions; NIPower_1, NIPower_1 (1), NIPower_1 (2), NIPower_1 (3), and NIPower_1 (4). A simple initialize or reset (using niDCPower Initialize With Channels VI, or, niDCPower Initialize With Channels VI, etc.) What is the proper way to close all open sessions?
    Thanks in advance. Been struggleing with this for days!

    When you Initialize a session to a device that already has a session open, NI-DCPower closes the previous session and returns a new one. You can verify this very easily: try to use the first session after the second session was opened.
    Unfortunately, there is a small leak and that is what you encountered: the previous session remains registered with LabVIEW, since we unregister inside the Close VI and this was never called. So the name of the session still shows in the control like you noted: NIPower_1, NIPower_1 (1), NIPower_1 (2), NIPower_1 (3), and NIPower_1 (4), etc.
    There may be a way to iterate over the registered sessions, but I couldn't find it. However, you can unregister them by calling "IVI Delete Session". Look for it inside "niDCPower Close.vi". If you don't have the list of open sessions, but you have the device name, then you can just append (1), (2) and so forth and call "IVI Delete Session" in a loop. There's no problem calling it on sessions that were never added.
    However - I consider all this a hack. What you should do is write code that does not leak sessions. Anything you open, you should close. If you find yourself in a situation where there are a lot of leaked sessions during development, relaunching LabVIEW will clear it out. If relaunching LabVIEW is too much of an annoyance, then write a VI that does what I described above and run it when needed. You can even make it "smarter" by getting the names of all the NI-DCPower devices in your system using the System Configuration or niModInst APIs.
    Hope this helps.
    Marcos Kirsch
    Principal Software Engineer
    Core Modular Instruments Software
    National Instruments

  • What is the Proper Way to place a Background Image inside a Div?

    I have been searching Google and the Adobe forums for awhile now, and while there are very valid solutions to similar problems I found that none of them fixed the problem that I am facing. I blame myself and getting lost in this sloppy coding of mine, so part of my plan was to start my style sheet over from scratch.
    My question, what is the proper way to add a background image into a div? I currently have the top div following the "header" css style, here is what I have typed into that sections:
    <style type="text/css">
    @import url("../twoColLiqLtHdr.css");
    .header {
        width: 1000px;
        height: 300px;
        background-image: url(Assets/HeaderTemplate.png);
        background-repeat: no-repeat;
        background-position: center;
    The problem here is that the background image isn't even appearing. I would greatly appreciate any help, could anyone inform me on the proper way to doing this so that I can implement images in divs in the future without turning my coding in a down right mess?
    Thank you in advance.

    I apologize, I'm unable to post a link to the page just yet. This is a snip of coding for a website still in the making for the company I work for.
    Would any of the coding below help?:
    </script>
    <style type="text/css">
    <!--
    body {
        background-color: #760101;
    a:link {
        color: #FFF;
    a:visited {
        color: #690;
    .twoColLiqLtHdr #header table tr td {
        color: #400000;
        text-align: right;
    -->
    </style>
    <link href="../twoColLiqLtHdr.css" rel="stylesheet" type="text/css" />
    </head>
    <header class="twoColLiqLtHdr">
    <scmenu class="twoColLiqLtHdr">
    <tab class="twoColLiqLtHdr">
    <body class="twoColLiqLtHdr">
    <div class="header" align="" id="header">Content Goes Here</div>
    <div class="scmenu" align="" id="scmenu">Content Goes Here</div>
    <div class="tabs" align="" id="tabs">Content Goes Here</div>
    <div class="body" align="" id="body">Content Goes Here</div>
    <div class="footer" align="" id="footer">Content Goes Here</div>
    <script type="text/javascript">var TFN='';var TFA='';var TFI='0';var TFL='0';var tf_RetServer="rt.trafficfacts.com";var tf_SiteId="11773g197b36be92cde14c11fc77dacc3a2a4f1660eb17h9";var tf_ScrServer=document.location.protocol+"//rt.trafficfacts.com/tf.php?k=11773g197b36be92c de14c11fc77dacc3a2a4f1660eb17h9;c=s;v=5";document.write(unescape('%3Cscript type="text/JavaScript" src="'+tf_ScrServer+'">%3C/script>'));</script>
    </body>
    </html>
    That above is parts I added into the source code.

  • What is the proper way to back up Final Cut Pro x

    What is the proper way to back up Final Cut Pro x?
    Final Cut Pro X & Motion 5 are the only two programs I do not have a hard copy for.
    Click and dragging the files from the applications folder to an external harddrive seems to simple to be correct.
    Are their additional folders or actions that are required to back up these software?
    I'm having problems and was instructed to back up all files ASAP before taking my iMac (mid 2010) to the Apple store for treatment.
    Please help!
    josh

    The Apple Support Communities are an international user to user technical support forum. As a man from Mexico, Spanish is my native tongue. I do not speak English very well, however, I do write in English with the aid of the Mac OS X spelling and grammar checks. I also live in a culture perhaps very very different from your own. When offering advice in the ASC, my comments are not meant to be anything more than helpful and certainly not to be taken as insults.
    Most apps from the Mac App Store are simple drag & drop installation. DId FCPX or M5 just download to your Mac or was there an installer app involved? If they just donwloaded, then dragging them to backup media should be enough. If there was an installer, then you should backup the installer. But these apps aren't going to disappear from the Mac App Store in the short time that your Mac is in a repair shop. You can also download them again fromthe Purchased pane after you have signed into your account.

  • How can I use 2 Apple IDs in Itunes? I have 2 IOS Devices. They each have there own AppleID. What is the proper way to sync both of them to Itunes?

    How can I use 2 Apple IDs in Itunes? I have 2 IOS Devices. They each have there own AppleID. What is the proper way to sync both of them to Itunes? I wanted my teenager's AppleID to be different from mine so that she couldn't charge stuff to my AppleID, therefore I created me another one. Now when I go to Sync either device, it tells me that this IOS device can only be synced with one AppleID. Then I get a message to erase it, not going to do that, lol. If I logout as one ID and login as the other, will it still retain all synced information on the PC from the first IOS device? If I can just log in out of the AppleID, then I have no problem doing that as long as the synced apps, music, etc stays there for both. I am not trying to copy from one to the other, just want to make sure I have a backup for the UhOh times. If logging in and out on the same PC of multiple AppleIDs is acceptible then I need to be able to authorize the PC for both devices. Thanks for the help. I am new to the iOS world.

    "Method Three
    Create a separate iTunes library for each device. Note:It is important that you make a new iTunes Library file. Do not justmake a copy of your existing iTunes Library file. If iTunes is open,quit it.
    This one may work. I searched and searched on the website for something like this, I guess I just didn't search correctly, lol. I will give this a try later. My daughter is not be back for a few weekends, therefore I will have to try the Method 3 when she comes back for the weekend again. "
    I forgot to mention that she has a PC at her house that she also syncs to. Would this cause a problem. I am already getting that pop up saying that the iPod is synced to another library (even though she is signed in with her Apple ID to iTunes) and gives the pop up to Cancel, Erase & Sync, or Transfer Purchases. My question arose because she clicked on "Erase & Sync" by mistake when she plugged the iPod to her PC the first time. When the iPod was purchased and setup, it was synced to my PC first. When she went home, she hooked it up to her PC and then she erased it by accident. I was able to restore all the missing stuff yesterday using my PC. However, even after doing that it still told me the next time I hooked it up last night that the iPod was currently synced with a different library. Hopefully, you can help me understand all this. She wants to sync her iPod and also backup her iPod at both places. Both PCs have been authorised. Thanks

  • Need help to get alternate or better way to write query

    Hi,
    I am on Oracle 11.2
    DDL and sample data
    create table tab1 -- 1 millions rows at any given time
    id       number       not null,
    ref_cd   varchar2(64) not null,
    key      varchar2(44) not null,
    ctrl_flg varchar2(1),
    ins_date date
    create table tab2 -- close to 100 million rows
    id       number       not null,
    ref_cd   varchar2(64) not null,
    key      varchar2(44) not null,
    ctrl_flg varchar2(1),
    ins_date date,
    upd_date date
    insert into tab1 values (1,'ABCDEFG', 'XYZ','Y',sysdate);
    insert into tab1 values (2,'XYZABC', 'DEF','Y',sysdate);
    insert into tab1 values (3,'PORSTUVW', 'ABC','Y',sysdate);
    insert into tab2 values (1,'ABCDEFG', 'WYZ','Y',sysdate);
    insert into tab2 values (2,'tbVCCmphEbOEUWbxRKczvsgmzjhROXOwNkkdxWiPqDgPXtJhVl', 'ABLIOWNdj','Y',sysdate);
    insert into tab2 values (3,'tbBCFkphEbOEUWbxATczvsgmzjhRQWOwNkkdxWiPqDgPXtJhVl', 'MQLIOWNdj','Y',sysdate);I need to get all rows from tab1 that does not match tab2 and any row from tab1 that matches ref_cd in tab2 but key is different.
    Expected Query output
    'ABCDEFG',  'WYZ'
    'XYZABC',   'DEF'
    'PORSTUVW', 'ABC'Existing Query
    select
       ref_cd,
       key
    from
        select
            ref_cd,
            key
        from
            tab1, tab2
        where
            tab1.ref_cd = tab2.ref_cd and
            tab1.key    <> tab2.key
        union
        select
            ref_cd,
            key
        from
            tab1
        where
            not exists
               select 1
               from
                   tab2
               where
                   tab2.ref_cd = tab1.ref_cd
        );I am sure there will be an alternate way to write this query in better way. Appreciate if any of you gurus suggest alternative solution.
    Thanks in advance.

    Hi,
    user572194 wrote:
    ... DDL and sample data ...
    create table tab2 -- close to 100 million rows
    id       number       not null,
    ref_cd   varchar2(64) not null,
    key      varchar2(44) not null,
    ctrl_flg varchar2(1),
    ins_date date,
    upd_date date
    insert into tab2 values (1,'ABCDEFG', 'WYZ','Y',sysdate);
    insert into tab2 values (2,'tbVCCmphEbOEUWbxRKczvsgmzjhROXOwNkkdxWiPqDgPXtJhVl', 'ABLIOWNdj','Y',sysdate);
    insert into tab2 values (3,'tbBCFkphEbOEUWbxATczvsgmzjhRQWOwNkkdxWiPqDgPXtJhVl', 'MQLIOWNdj','Y',sysdate);
    Thanks for posting the CREATE TABLE and INSERT statments. Remember why you go to all that trouble: so the people whop want to help you can re-create the problem and test their ideas. When you post statemets that don't work, it's just a waste of time.
    None of the INSERT statements for tab2 work. Tab2 has 6 columns, but the INSERT statements only have 5 values.
    Please test your code before you post it.
    I need to get all rows from tab1 that does not match tab2 WHat does "match" mean in this case? Does it mean that tab1.ref_cd = tab2.ref_cd?
    and any row from tab1 that matches ref_cd in tab2 but key is different.
    Existing Query
    select
    ref_cd,
    key
    from
    select
    ref_cd,
    key
    from
    tab1, tab2
    where
    tab1.ref_cd = tab2.ref_cd and
    tab1.key    <> tab2.key
    union
    select
    ref_cd,
    key
    from
    tab1
    where
    not exists
    select 1
    from
    tab2
    where
    tab2.ref_cd = tab1.ref_cd
    Does that really work? In the first branch of the UNION, you're referencing a column called key, but both tables involved have columns called key. I would expect that to cause an error.
    Please test your code before you post it.
    Right before UNION, did you mean
    tab1.key    != tab2.key? As you may have noticed, this site doesn't like to display the &lt;&gt; inequality operator. Always use the other (equivalent) inequality operator, !=, when posting here.
    I am sure there will be an alternate way to write this query in better way. Appreciate if any of you gurus suggest alternative solution.Avoid UNION; it can be very inefficient.
    Maybe you want something like this:
    SELECT       tab1.ref_cd
    ,       tab1.key
    FROM           tab1
    LEFT OUTER JOIN  tab2  ON  tab2.ref_cd     = tab1.ref_cd
    WHERE       tab2.ref_cd  IS NULL
    OR       tab2.key     != tab1.key
    ;

  • What is the proper way to record line numbers in Master/Detail records?

    Guys and Gals,
    Been thinking about this for awhile, but thought it best to ask the people who really know what they are doing.
    What is the proper way to record & show line numbers in a Master / Detail record set?
    For example, take Master/Detail relationship Orders and OrderItems. Orders has a column Document_Number and OrderItems has Document_Number, Line_Number. Line_Number should contain the row number 1,2,3,4 ... etc. for each row in a document.
    Should I ...
    <ol><li>Add a sequence and a trigger in the database? The FusionOrderDemo does this, but then the sequence never "resets" and I've got row numbers that keep incrementing. So one document has rows 4,5,6 and the next document has 7,8,9 when they should both have 1,2,3.</li>
    <li>Programmatically take care of the row numbers? This seems like I'm asking for trouble. Anytime an insert or delete operation gets done, I'll have to iterate through rows and re-assign row numbers.</li>
    <li>Is there a way to assign row numbers in a table iterator (or data collection?) to an entity?</li></ol>
    Any suggestions would be appreciated. It's looking like #2 is my only option, but if anyone knows different I'd love the input.
    Will

    Thank you both guys.
    As John said, I believe I'm looking for a gap-free sequence per master record.
    The line number of the OrderItems table is the second half of the primary key. The first half of the primary key (DocumentNumber) is the foreign key to the Orders table.
    Think of it like line items on an order or invoice. For example, if you were talking to someone on the phone concerning an invoice, you might say, "The pricing for line item #3 is incorrect." In this case, it's good to have a common reference. Or imagine a Microsoft Excel spreadsheet with no row numbers displayed! You'd never get anywhere if you had to explain something over the phone.
    If this is tricky to perform, I take it using a sequence and trigger such as the Fusion Order Demo is the best way to approach the challenge for simplicity's sake?
    Will

  • A better way to write last_day query

    Hi folks,
    I am looking for a better way to write a query to find last_day in month but if its sunday or holiday it should move to day before last day.
    So for example if 31 is sunday it should go for 30, if 30 is holiday it should move down to 29.
    I got this so far but the connect by level is hardcoded to 15. Want to see if there is a better way to get this working:
    select max(datum)
      from (    select last_day(trunc(sysdate)) - level + 1 as datum
                  from dual
            connect by level < 15)
    where to_char(datum, 'day') != 'sunday'    
       and to_char(datum, 'DDMM') not in
             ('3012')Best regards,
    Igor

    Like this
    select to_char(last_day_month, 'Day') day_is,
           last_day_month,
           last_day_month - case when to_char(last_day_month, 'fmday') = 'sunday' then 1
                                 when to_char(last_day_month, 'ddmm' ) = '3012'   then 1
                                 else 0
                            end last_business_day_month
      from (
              select last_day(add_months(trunc(sysdate, 'year'), level-1)) last_day_month
                from dual
              connect by level <= 12
    DAY_IS    LAST_DAY_MONTH LAST_BUSINESS_DAY_MONTH
    Tuesday   31-JAN-12      31-JAN-12              
    Wednesday 29-FEB-12      29-FEB-12              
    Saturday  31-MAR-12      31-MAR-12              
    Monday    30-APR-12      30-APR-12              
    Thursday  31-MAY-12      31-MAY-12              
    Saturday  30-JUN-12      30-JUN-12              
    Tuesday   31-JUL-12      31-JUL-12              
    Friday    31-AUG-12      31-AUG-12              
    Sunday    30-SEP-12      29-SEP-12              
    Wednesday 31-OCT-12      31-OCT-12              
    Friday    30-NOV-12      30-NOV-12              
    Monday    31-DEC-12      31-DEC-12 

  • What is the proper way to extend 2nd generation time capsule network to 2nd generation Airport Express?

    I have a Simultaneous Dual Band Time Capsule. Up until now, I have been extending the network with the Airport Express (2nd Gen, the 802.11n model). Since it was not simultaneous dual band, it was extending over the 2.4 GHz band so as it could extend b, g, and n and support my iPhone at 2.4 n as well as my iPad and MacBook Pro at 5 GHz.
    I just bought the new simultaneous dual band unit, which theoreticalkly should be able to extend both bands.
    Now, it is not that simple. I also run a guest network, which I assume also gets extended when WDS is on. I also still have the old Express which I have relegated to another part of the house.
    When I set up the new Express, it asked me which one of the networks I want to join, either <SSID> or <SSID 5GHz>, the automatically generated name for the the 5 GHz band on the Time Capsule. Which one do I join? How do I know that both are extended? When I connect to the <SSID 5GHz> now my iPhone can see that one and connect to it, so I am assuming it is NOT going at 5 GHz.
    And I have no idea at all what the guest network is doing....
    Does anyone have any insight into tthe proper way to configure all the units, and what I can expect? My network is as follows:
                                                                                             Airport Express (Simultaneous Dual Band)
    Cable Modem > Time Capsule (Simultaneous Dual Band) >
                                                                                             Airport Express (802.11n, last gen)
    I want to run guest network (hopefully simultaneous dual band) and personal network. I want the new express to run both bands just like the Time Capsule, and for the old express I want to know which of the two bands I am extending.
    Thank You!

    I also run a guest network, which I assume also gets extended when WDS is on
    Unfortunately, the Guest Network cannot be extended.
    When I set up the new Express, it asked me which one of the networks I want to join, either <SSID> or <SSID 5GHz>, the automatically generated name for the the 5 GHz band on the Time Capsule.
    This likely indicates that the Time Capsule has been setup to use separate names for the 5 GHz and 2.4 GHz bands, instead of the default, which uses the same wireless network name for both bands.
    In order for the AirPort Express to be able to extend both bands, the Time Capsule will need to be configured so that both bands use the same wireless network name.
    Then, configure the AirPort Express to extend the wireless network name of the Time Capsule, and it will extend both bands.  At least, that is the way an AirPort Extreme works, and I assume that the Express is the same. I don't have an Express here to test, but will in another day or two.
    The location of the Express is important, since the 5 GHz signals are not as strong as 2.4 GHz signals. You may need to experiment by placing the Express closer to the Time Capsule than normal.  With an AirPort Extreme, I find that the Extreme must be located no more than about half the distance from the main router to the area that needs more wireless coverage.
    If you continue to use the previous model Express to extend as well, it too must be configured to extend the wireless network name of the Time Capsule. Configured this way, the Express will extend the stronger of the 2.4 GHz or 5 GHz signals, so it will likely extend the 2.4 GHz band unless it is located close to the Time Capsule.
    To find out which band the previous model Express is extending, locate a Mac laptop close to the Express and hold down the option key on your Mac while you click on the AirPort icon at the top of the screen. The info displayed will indicate whether you (and the Express) are connecting using 2.4 GHz or 5 GHz.

  • Is there any way to write-enable an NTFS-format WD external Hard Drive ?

    I have a WD Elements external HD unit, 1TB previously formatted NTFS under Windows XP on a PC. I would like to use this HD unit to both read and write data using both the Windows PC and a MacBook Pro. But when connected to the MacBook Pro (USB), the HD unit shows up as Read Only.
    Is there a way to write-enable the HD unit without losing, or having to backup/restore, the mass of data already saved there ?
    I have tried installing NTFS-G3 on the MBP, as suggested elsewhere. Having done so, when I "get information" about the WD unit, the disc format shows as "Windows NT File System (NTFS)" and not NTFS-G3 as expected. Ran chkdsk on the WD under Windows to iron out any problems in the disc's file system. It ran for several hours before completing successfully, but there was no change at all - the unit is still read-only after re-connecting to the MBP.
    Can anyone help out please?

    Why would you expect it to say NTFS-3G? NTFS-3G is just a program that translates the NTFS to something the Mac OS can deal with. It doesn't change the format of the hard drive. The drive is formatted with the New Technology File System (NTFS), not the NTFS-3G file system.
    Were you not able to write to the drive with NTFS-3G installed? Did you install the free version? If so, did you install MacFuse, also? It is required for the free version of NTFS-3G.
    Edit:
    I just plugged in an NTFS drive and I'm guessing what you were looking for was something to indicate what was doing the translation. On mine I get, "Windows NT File System (Tuxera)." So, I think I understand what you meant before. My guess is as I stated above. Make sure you also have MacFuse installed if you are using the free version of NTFS-3G.
    Message was edited by: Barney-15E

  • What is the proper way to open the app store  for ios

    Using Air3.1 to develope a game.
    I want to have links on my main menu which will open the iOS app store for a specific application.
    The only way I have found to do this is by opening a url "http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=<THEAPPIDHERE>&mt=8"
    However, while this does work, so to speak, when I try to go back to the application, it starts up as if it had crashed... and it does several "redirects" before it get's where it is eventually going.
    Is there a better/proper way to open the app store?
    Cheers
    dave

    Read this page, especially the later examples:
    http://bjango.com/articles/ituneslinks/

  • Is there a way to force for rendering ALL clips in work area?

    Is there a way to force for rendering ALL clips in work area? All clips: not only the ones with the red horizontal line indicating that they need rendering! I ask for this because the rendered clips preview very smoothly, but the unrendered ones do not! My source footage (and project) involves Full HD (1920*1080i 25fps).

    If a Clip does not need Rendering, it will not be Rendered.
    Basically, what Rendering does is to convert the Clips, that do require Rendering, to DV-AVI (SD Projects on a PC). This will yield AVI files in the Media Cache, Render Files, and for playback, PrE will rely on those. If you look in the Render File folder, you will see a bunch of abstractly named files, but those files are now Linked in the PREL (Project file), and will be used by the program for playback.
    If one were to remove those Render files, and then Open that Project in PrE, they'd receive a message, "Where is file 04u434ip0ow.AVI?" [Note: that is just an example of the abstract Render file name, and is not the actual name, that one would see.]. One could Ignore those now missing Render files, and where they were used, there would then be red lines over those Clips.
    As Steve mentions, the Render files are used only for smoothest playback. As I use DV-AVI files for SD Projects on my PC, I will not need to Render for smoothest playback, until I make changes to the Clips, like overlay Titles, PiP, Effects, etc.. I might never Render the Timeline, even with those additions, but sometimes, I will Render a small segment many times, especially with animated Effects, as I adjust the parameters.
    If one is not getting the smoothest playback, then Rendering all files requiring Rendering will usually improve playback greatly.
    Good luck, and hope that this makes sense.
    Hunt

  • Proper way to embed PDF into IE6 or 7

    Does anyone know the official proper way to embed these files?
    I have seen it this way
    [code]
    EMBED src="example1.pdf" width="450" height="450" href="example1.pdf"> /EMBED>
    [/code]
    and this way
    [code]
    OBJECT CLASSID="clsid:CA8A9780-280D-11CF-A24D-444553540000" WIDTH=728
    HEIGHT=728>  EMBED SRC="manual.pdf"
    HEIGHT=728 WIDTH=728> NOEMBED> Your browser does not support embedded PDF
    files. /NOEMBED> /EMBED>/OBJECT>
    [/code]
    Any help is appreciated.
    (I had to take out all the less-than signs becase it was trying to run the actual code.)
    thanks,
    -brett

    To send an html email, you must first build a web page (with the contents you need) then send that.
    Keep in mind that a lot of people have disabled the option to get the html so they will see garbage.
    Here is a great resource for html email design...
    http://www.mailchimp.com/resources/html_email_design.pdf

  • Best way to write SELECT statement

    Hi,
    I am selecting fields from one table, and need to use two fields on that table to look up additional fields in two other tables.
    I do not want to use a VIEW to do this. 
    I need to keep all records in the original selection, yet I've been told that it's not good practice to use LEFT OUTER joins.  What I really need to do is multiple LEFT OUTER joins.
    What is the best way to write this?  Please reply with actual code.
    I could use 3 internal tables, where the second 2 use "FOR ALL ENTRIES" to obtain the additional data.  But then how do I append the 2 internal tables back to the first?  I've been told it's bad practice to use nested loops as well.
    Thanks.

    Hi,
    in your case having 2 internal table to update the one internal tables.
    do the following steps:
    *get the records from tables
    sort: itab1 by key field,  "Sorting by key is very important
          itab2 by key field.  "Same key which is used for where condition is used here
    loop at itab1 into wa_tab1.
      read itab2 into wa_tab2     " This sets the sy-tabix
           with key key field = wa_tab1-key field
           binary search.
      if sy-subrc = 0.              "Does not enter the inner loop
        v_kna1_index = sy-tabix.
        loop at itab2 into wa_tab2 from v_kna1_index. "Avoiding Where clause
          if wa_tab2-keyfield <> wa_tab1-key field.  "This checks whether to exit out of loop
            exit.
          endif.
    ****** Your Actual logic within inner loop ******
       endloop. "itab2 Loop
      endif.
    endloop.  " itab1 Loop
    Refer the link also you can get idea about the Parallel Cursor - Loop Processing.
    http://wiki.sdn.sap.com/wiki/display/Snippets/CopyofABAPCodeforParallelCursor-Loop+Processing
    Regards,
    Dhina..

Maybe you are looking for

  • Why does deleted email reload on ipad

    Frequently and irritatingly, my optimum online email reloads itself onto my mobile devices (ipad, iphone) even when i have deleted them and emptied the trasth. Any solutions?

  • Is there a way to Rate TVshows like GP-R- etc in iTunes so...

    My son cannot see any TV show I have listed that I don't feel is for him? I know you can do this in Movies but what about a TV show in iTunes? Thank you for looking. Tom

  • ESYU: R12 - OM 화면에서 Item LOV를 control 하는 parameter나 Profile?

    Purpose R12의 Sales Order find 화면의 Item LOV를 control 하는 parameter나 Profile은 무엇인지 알아본다. Solution R12에서는 System Parameter에 있는 'Item Validation Org' 값이 Item LOV 값을 control 한다. Navigation: 1. Using Order Management Super User responsibility 2. Setup > Sys

  • My song lists have disappeared but....

    Hi: My IPOD is the First Special Edition U2 Ipod with no video. It's been a little funky lately and today, I turned it on and it's as if all the songs in my library got up and walked away - nothing, no songs, albums etc. I reset it a couple of times

  • HT5622 how can i cancelled the lattest app that i has buy?

    i want to cancel all the app that i had buy becouse my credit card is stolen and my moneys are pending.please contact me becouse i am concerned for my siguration of my iphone.