Can't highlight cells after using CellRenderer

I have used a CellRenderer for my column to change its background color but after i have set it i wasn't able to highlight any cell at my JTable. please help.
CellRenderer code:
class JJCellRenderer
extends DefaultTableCellRenderer
private int arrVerifyColumns[] = null;
     Color MyColor;
public JJCellRenderer(Color x)
MyColor = x;
}//end constructor
public Component getTableCellRendererComponent(JTable table, Object value,
boolean isSelected, boolean hasFocus, int row, int column)
     this.setValue(String.valueOf(value));
     this.setFont(new Font("Arial", Font.PLAIN, 12));
     this.setSelected(isSelected);
this.setBackground(MyColor); // All columns verified were empty - set our background RED
return this;
}//end getTableCRC
}//end class JJCR

i would be pleased if you could let us take part of your solution.
i have a problem in the same manner like yours - just that i call my Editor-/RendererComponents from outside like:
public class MainWindow extends javax.swing.JFrame implements Searchable {
  public void find (Criteria crit) {
     for(int i=0; i<documentTable.getRowCount (); i++) {
      Object v = null;
        String vs = "";
        v = documentTable.getModel ().getValueAt (i,0);
        if(v!=null) {
          vs = v.toString ();
        if(vs.matches (crit.getExpression ())) {
          ((javax.swing.JTextField)documentTable.getCellEditor (i,0)
          .getTableCellEditorComponent (documentTable, v, false,
                      i,0)).setBackground (getSearchHighlightedBackgroundColor ());
}i have tried many other variations of this snippet like CellRenderer instead of CellEditor
or miscellaneous derived implementations of CellRenderer and CellEditor, other components - and hereafter leading to - other casts and other hightlighting-formats such as setFont and also repaint()ing after this.
the best result was a changing color/font after the party should be over (means: while focusing other rows after closing the searchDialog).
one possible way to explain this could be one shared component referenced by the return of getTableCell...Component(...) but a
  return new JTextField(val);
  // ...inside of this method should make clear that there is no object being shared.
the search for a solution continues ...
best regards
tb

Similar Messages

  • How can I execute program after using F4_Filename function?

    Hi all,
    I'm a new user on the forum. I've been working with ABAP and SAP for a few weeks. I wrote a program for importing data from excel file to SAP using BDC. During searching this forum I found information about F4_Filename function which allows users to browse the disc for a file. I'd like to add this function to my program. I have a parameter for a file name but this is an ordinary static string field. When I added the code which I found in the message on this forum the rest of program doesn't execute.
    This is simple program for example:
    REPORT  Z_TEST8_AB.
    DATA f_name TYPE STRING.
    PARAMETERS p_file like rlgrap-filename DEFAULT 'c:\test.xls'.
    f_name = p_file.
    write:/ f_name.
    This program works correctly. There is a field for parameter. I can change the default name for a file.
    After all, I can run the program (F8) and rest of the code is executed. The field for parameter dissapears from the screen and the file name is displayed. ( command write)
    Now I added a function F4_Filename
    REPORT  Z_TEST8_AB.
    DATA f_name TYPE STRING.
    PARAMETERS p_file like rlgrap-filename DEFAULT 'c:\test.xls'.
    at selection-screen on value-request for p_file.
      call function 'F4_FILENAME'
           exporting
                program_name  = syst-repid
                dynpro_number = syst-dynnr
                field_name    = 'p_file'
           importing
                file_name     = p_file.
    f_name = p_file.
    write:/ f_name.
    I can browse a computer for a file now but after selecting the file I can't run the rest of the code. When I click on the icon or press key F8 the field for parameter doesn't dissapier and the command write is not executed.
    What do I do wrong?
    Could anyone suggest me a solution? How can I executed the code after using this function?
    Thanks in advance.
    Regards,
    Arek.

    Hi arkadiusz,
    1. simple
    2.
    <b>start-of-selection.</b>
    f_name = p_file.
    write:/ f_name.
    regards,
    amit m.

  • OO ALV - How to highlight cell after value change

    Hi All,
    I have an OO ALV with an input enable column and would like to highlight a cell in a different color when the user changes it's value.
    I am using pr_data_changed->get_cell_value to check the cells value has changed and pr_data_changed->modify_cell to update the cell with the new value.
    The output table has a field called CELLCOLOR of type LVC_T_SCOL which I am using to highlight the cell in red:
             lw_cellcolor-fname = 'THISFIELD' .
             lw_cellcolor-color-col = '7'.
    The ALV layout is also correclty set using:   layout-ctab_fname = 'CELLCOLOR'
    All the above is working fine and the changed cell is highlighted HOWEVER it only works if I call METHOD g_grid->refresh_table_display
    Is there anyway to highlight the cell without calling method refresh_table_display??????
    I do not like to call method refresh_table_display in an ALV event. The main reason is if a user changes a cells value and at the same time selects the row for update then the method refresh_table_display wipes out the row selection marker.
    So Is there anyway to highlight the cell without calling method refresh_table_display??????
    All your help appreciated
    Che

    Try this way
    In the PAI use
    call method get_selected_rows
    This will get you the row index of the selected rows from the screen for example I_ROW
    In PBO
    call method g_grid->set_selected_rows
    exporting
      it_row_no = i_rows[].
    then call refresh_table_first_display
    So this one will keep row selection after the refresh_table_first_display method

  • Can I highlight cells (without a date) on a particular day?

    Hi
    Probably a bit of an odd question...
    I have a row of cells numbered 1-31 (C5:AG5) – see http://flic.kr/p/aBeviB; I wondered if it's possible to highlight the day of the month (using a colour) in the corresponding cell, e.g.
    C5 (number 1) = day 1 of any particular month
    L5 (number 10) = day 10 of any particular month etc
    Is this possible?

    You can achive this by:
    1) calculating the day today by placing the following formula in a cell:
    I placed the formula in cell A1:
    =DAY(NOW())
    2) Then I selected the range of cells that represent the days of the month (C5 - AG5) and selected the menu item "Show Conditional Formatting Rules"
    Select the Rule "Equal to" the in the text entry box enter "A1", then set the formatting you want.  I selected to highlight the cell with green, and leave the text black, then click "Done"

  • EPM for Excel question : Can't lock cell after protect worksheet

    Dear experts,
         I need to set lock and color for some dimension, I use the format and set the ALL|Lock, but it's not work, but if I set the Style, or ALL|Style, it can lock after protect worksheet, but color will missing, how can I show the color and lock?
    best regards
    Evans.

    Hi Evans,
    You are doing something incorrect...
    Just tested:
    On the EPMFormattingSheet:
    Hierarchy Level Formatting - only enabled
    Priority to Row Format Set
    Default Format for Row - Apply
    Data cell for Default Format formatted as grey
    Default Format Use set to All
    EPM->Lock Selected Cells applied to the grey Data cell
    On the report sheet:
    All cells selected and formatted as Locked - NO
    Report refreshed - data area is formatted grey and locked is set to YES.
    Vadim

  • Can't access firefox after using it as primary browser for a few years?

    I've been using Firefox for a few years with AOL dial-up access. I just switched to Comcast and after a few days I lost my connection to Firefox. The icons are there but the program won't come up. The first few days I could just use the Firefox icon to access my internet connection and then it just quit. Also was having some problems with Facebook via Firefox (kept getting error messages) just before this happened/ Please help. I can't access all my saved bookended addresses.

    There are some malware infections that make it hard to run programs (EXE) files. Hopefully you do not have one of those.
    Could you check whether it is a problem with your shortcut by starting Firefox a different way:
    Start menu > Run, type or paste the following and then press the Enter key or click Go:
    firefox.exe

  • Can't open iPhoto after using iPhoto library upgrader

    I used the iPhoto library upgrader today, hoping that I could then use a newer version of iPhoto.  I have iPhoto 6.6 I think.  But now iPhoto won't open, so I can't see any of my photos.  Where can I download a newer version of iPhoto so I will be able to see my photos again?  My iMac is running OS X 10.7.5 and cannot be upgraded to a newer operating system as it is a late 2006 iMac.  Please help, I am so upset at losing all my family photos I can barely type this.

    1. Make a back up first thing.
    Most Simple Back Up:
    Drag the iPhoto Library from your Pictures Folder to another Disk. This will make a copy on that disk.
    Slightly more complex: Use an app that will do incremental back ups. This is a very good way to work. The first time you run the back up the app will make a complete copy of the Library. Thereafter it will update the back up with the changes you have made. That makes subsequent back ups much faster. Many of these apps also have scheduling capabilities: So set it up and it will do the back up automatically.
    Example of such apps: Chronosync - but there are many others. Search on MacUpdate or the App Store
    2. If you have iPhoto 6 why are you using the upgrader?

  • Can't open iphoto after using My Publisher

    I recently made a book on My Publisher.  Now I can not open iphoto since it says it is already in use.  It seems as if all my pictures have been captured by My Publisher.  What can I do.

    Is the full error message "your photo library is in use by another program or has become unreadable"? Then maybe the second part of the error message is the problem.  Make a backup of your iPhoto library and rebuild it.
    See this post by Old Toad on how to rebuild the iPhoto library in iPhoto '11:
         Rebuild iPhoto Version 11
    or this for iPhoto '09:
         Rebuilding iPhoto Library 09 and Earlier

  • Windows 8.1 can not access apps after using Disk Clean-up

    All was working well until I did a Disk Clean-up, now no apps from the Metro Start screen will load I just get a transparent icon holder on the Taskbar. I have tried uninstall the app which was Calendar I was allowed to uninstall but when I tried to re-install
    I just get error 0x80070005, after check lots of forums and Microsoft technet articles and all seem to point Windows Store being damaged or corrupted, I have run all the fixes but note work, when I run AppsDiagnostic.diagcab I just get [Service Registration
    is missing or corrupt] [Windows Store cache may be damaged] [Windows Store configuration may be damaged] I have now run out of what to try next. Can anyone help before I lose all my hair.

    Hi Rick,
    First of all, please run  "dism/online/cleanup-image/restorehealth"to check the health of the system files. Then take the following steps to have a check.
    1. We can run  “wsreset.exe” to reset the cache of Windows Store as S.Sengupta suggested to have a check .
    2. If the issue persists ,try this way to re-register the Windows Store to recover the entry of Windows Store :
    Right click on the “Start screen” , choose “Command prompt(Admin)”and in-put :
    powershell -ExecutionPolicy Unrestricted Add-AppxPackage -DisableDevelopmentMode -Register $Env:SystemRoot\WinStore\AppxManifest.XML
    3. If the issue persists ,kill Store and Store Broker from task manager . Rename the Cache folder to CacheOld at. C:\Users/(Your User Account)\AppData\Local\Packages\WinStore_xxxxxxxxxxxxxxxxxx\LocaalState.
    Rename folder called Cache into CacheOld, Create an empty folder with name Cache. That’s all. If you want to revert changes just delete Cache and Rename  CacheOld into Cache.
    " 0x80070005" means access denied .Considering the store app is downloaded from the windows update .Please refer to the following link to gain the permissios of the registry keys to have a check.
    Error 0x80070005 in Windows Update when you try to install updates
    http://support.microsoft.com/en-us/kb/968003
    Please also refer to the following link to check the permissions .
    Windows 8.1 Store Apps Won’t Open (Or Close Immediately) when logged on as a domain user. Make it stop! (Updated 3/14/2015)
    http://blogs.technet.com/b/ouc1too/archive/2014/07/22/windows-8-1-store-apps-won-t-open-or-close-immediately-when-logged-on-as-a-domain-user-make-it-stop.aspx
    Best regards
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Why I can't sync firefox after using "restart with Addons disabled"? Why It's showing account not found?

    I'm using firefox sync with multiple desktop and laptop, even with Linux and windows environments since long, without any problem. Recently, I've used "Restart with addons disabled" option. Since then I can't setup sync. It's showing account or usename not matching!!! When I've tried to reset the password then It's showing account not found!!! But I've checked several times about username and password. Interesting on my laptop Firefox sync works perfectly, without any issue.
    I really need to solve this issue ASAP. I really , really want to continue using Firfox.
    Please help. Thanks in advance.

    Is there still a name and password and Sync key saved in the Password Manager?
    You can find the sync account password and the sync (recovery) key in the password manager on computers where a sync account with a specific e-mail address has been set up.
    *Firefox/Tools > Security: Passwords: "Saved Passwords" > "Show Passwords"
    Look for:
    * chrome://weave (Mozilla Services Password)
    * chrome://weave (Mozilla Services Encryption Passphrase)
    You can try to remove all services.sync lines from the prefs.js file in the Firefox profile folder and possibly delete or rename the Weave folder.
    *Help > Troubleshooting Information > Profile Directory: Show Folder (Linux: Open Directory; Mac: Show in Finder)

  • Can't buy songs after using Coke bottle voucher!!

    A few weeks ago I used some of those freesong vouchers from the coke bottles to get some songs from iTunes. After I used the last one and bought a song, it still said "1 Song" at the top right next to my itunes id, in the iTunes shop. So I thought maybe I had not looked, and actually had one more. Yesterday I tried buying a song, but all it said was that my song credit had expired, and that I had to click ok to refresh and try again. I tried again a few more times, but realised it was not doing anything. I want to be able to buy songs again. Please someone help!

    Thank you for your reply. Seems I forgot the obvious attempt at solving the problem, which was to log out and back into the store. It occured to me when I clicked on your link. On that page there were several links to "View my account information". All I had to do was click one and sign in. It works now.

  • Can i exchange it after using more than 2 weeks?

    i got this new macbook pro last month.
    the model is A1286 15'display
    it's too hot that i can't put it on my legs.
    it has been used more than 2 weeks so i can't return it.
    can i exchange to 13' macbook pro?
    PS: i have upgrade the memery to 8GB by myself.

    Ter.z wrote:
    sorry about that i just *_+read the name+_* and it's called 'lap'top...
    JasonFear wrote:
    Really? Where in Apple's documentation, marketing material or anything else they've ever produced is it called a laptop? I'd love for you to provide that link, picture or screen shot...
    FoxFanRay wrote:
    Please see this picture on the apple web site advertising college student use of the MBP - http://www.apple.com/students/
    Looks like it is on a lap to me!
    But that webpage still does not refer to the device as a "laptop". (i.e.: the word "laptop" is not specifically stated on that page.) It may be on a lap, but so can we put many other things. Should Kindles be called "laptops"? (For that matter my baby nephew? )
    Jason was asking for a link, picture or screenshot of where the word "laptop" was used by Apple to indicate the Macbook Pro.
    And as my post implies, Apple does not say you can't use the Macbook Pro on a lap, but that you remove it from your lap when it gets hot.
    - If your MacBook Pro is on your lap and gets uncomfortably warm, remove it from your lap and place it on a stable work surface.
    I infer from that statement that while Apple is not saying "do not use" on a lap, they are saying that the Macbook Pro is not intended for long-term use on a persons lap. So just because you have a picture of someone using a Macbook or Macbook Pro on a lap, that does not mean it _+must be+_ a "laptop computer."

  • Can no longer login after using iPhoto

    I have a teacher's white Macbook running OS X 10.5.5 when they login, they put in the id and password, click login, the field turn gray and the machine hangs. We've left it for about 1.5 hrs, but no change. This happens with the teacher or admin account. This happened last week, and for the sake of time, I did an archive install. It seemed to resolve the problem, until she logged into iPhoto printed some pictures, logged out of iPhoto and her account. Boom, she can't login again.
    A detail that did not seem important last week has surfaced again, she was working in iPhoto both times, logged out, then at the next login the problem appears. I booted via Firewire from another machine to look at system log.
    This chunk of kernel messages appear that don't normally show up:
    Nov 13 08:15:06 wsheetz kernel[0]: AirPort: Link Up on en1
    Nov 13 08:15:11 wsheetz kernel[0]: hardware didn't idle, giving up: 00000150 00000154 4084.
    Nov 13 08:15:11 wsheetz kernel[0]: PRB0_TAIL: 00000150
    Nov 13 08:15:11 wsheetz ARDAgent 67: ******ARDAgent Launched******
    Nov 13 08:15:11 wsheetz kernel[0]: PRB0_HEAD: 00000150
    Nov 13 08:15:11 wsheetz kernel[0]: PRB0_STRT: 02120000
    Nov 13 08:15:11 wsheetz kernel[0]: PRB0_LEN: 00000003
    Nov 13 08:15:11 wsheetz kernel[0]: SRB0_TAIL: 00000000
    Nov 13 08:15:11 wsheetz kernel[0]: SRB0_HEAD: 00000000
    Nov 13 08:15:11 wsheetz kernel[0]: SRB0_STRT: 02121000
    Nov 13 08:15:11 wsheetz kernel[0]: SRB0_LEN: 00000003
    Nov 13 08:15:11 wsheetz kernel[0]: PGTBL_CTL: 3ffc0001
    Nov 13 08:15:11 wsheetz kernel[0]: PGTBL_ERR: 00000000
    Nov 13 08:15:11 wsheetz kernel[0]: EXCC: 00000000
    Nov 13 08:15:11 wsheetz kernel[0]: IPEIR: 00000000
    Nov 13 08:15:11 wsheetz kernel[0]: IPEHR: 7d9d003f
    Nov 13 08:15:11 wsheetz kernel[0]: INSTDONE: 7fffffc0
    Nov 13 08:15:11 wsheetz kernel[0]: NOPID: 00000000
    Nov 13 08:15:11 wsheetz kernel[0]: HWSTAM: ffffffff
    Nov 13 08:15:11 wsheetz kernel[0]: IIR: 00000000
    Nov 13 08:15:11 wsheetz kernel[0]: IMR: fffdff1f
    Nov 13 08:15:11 wsheetz ARDAgent 67: ******ARDAgent Ready******
    Nov 13 08:15:11 wsheetz kernel[0]: ISR: 00000000
    Nov 13 08:15:11 wsheetz kernel[0]: EIR: 00000000
    Nov 13 08:15:11 wsheetz kernel[0]: EMR: ffffffff
    Nov 13 08:15:11 wsheetz kernel[0]: ESR: 00000000
    Nov 13 08:15:11 wsheetz kernel[0]: INSTPM: 00000000
    Nov 13 08:15:11 wsheetz kernel[0]: INSTPS: 800f04ce
    Nov 13 08:15:11 wsheetz kernel[0]: ACTHD: 00000150
    Nov 13 08:15:11 wsheetz kernel[0]: MEM_MODE: 00000000
    Nov 13 08:15:11 wsheetz kernel[0]: DMAFADDP 02120150
    Nov 13 08:15:11 wsheetz kernel[0]: DMAFADDS 00000000
    Nov 13 08:15:11 wsheetz kernel[0]: MI_STATE 00000040
    Nov 13 08:15:11 wsheetz kernel[0]: PR0_STR: 00000000
    Nov 13 08:15:11 wsheetz kernel[0]: PR0_END: 00000000
    Nov 13 08:15:11 wsheetz kernel[0]: CCID0: 00000000
    Nov 13 08:15:11 wsheetz kernel[0]: CTXSIZEPAL: 00000009
    Nov 13 08:15:11 wsheetz kernel[0]: CTXSIZENOPAL: 00000003
    Nov 13 08:15:11 wsheetz kernel[0]: 3D_CTL: 00000307
    Nov 13 08:15:11 wsheetz kernel[0]: CHUNK_CTL: 00000000
    Nov 13 08:15:11 wsheetz kernel[0]: HWB_TAIL: 00000000
    Nov 13 08:15:11 wsheetz kernel[0]: HWB_HEAD: 00000000
    Nov 13 08:15:11 wsheetz kernel[0]: HWB_START: 00000000
    Nov 13 08:15:11 wsheetz kernel[0]: HWB_CTL: 003ff000
    Nov 13 08:15:11 wsheetz kernel[0]: BIN_CTL: 00000000
    Nov 13 08:15:11 wsheetz kernel[0]: BIN_SCENE: 00000000
    Nov 13 08:15:11 wsheetz kernel[0]: BMP_BUFER: 00000000
    Nov 13 08:15:11 wsheetz loginwindow33: Login Window Started Security Agent
    Nov 13 08:15:11 wsheetz kernel[0]: BMP_GET: 00000000
    Nov 13 08:15:11 wsheetz kernel[0]: BMP_PUT: 00000000
    Nov 13 08:15:11 wsheetz kernel[0]: ICS: 00000003
    Nov 13 08:15:12 wsheetz kernel[0]: ISP: 00000000
    Nov 13 08:15:12 wsheetz kernel[0]: FSI: 00000000
    Nov 13 08:15:12 wsheetz kernel[0]: SSI: 00000000
    Nov 13 08:15:12 wsheetz kernel[0]: FST: 00000000
    Nov 13 08:15:12 wsheetz kernel[0]: SST: 00000000
    Nov 13 08:15:12 wsheetz kernel[0]: INTC: 00000000
    Nov 13 08:15:12 wsheetz kernel[0]: IDLC: 00000000
    Nov 13 08:15:12 wsheetz kernel[0]: SVDebug 000000ff
    Nov 13 08:15:12 wsheetz kernel[0]: SHDebug 00080000
    Nov 13 08:15:12 wsheetz kernel[0]: SFDebug 018781e0
    Nov 13 08:15:12 wsheetz kernel[0]: SEDebug c0000080
    Nov 13 08:15:12 wsheetz kernel[0]: WMDebug 00400000
    Nov 13 08:15:12 wsheetz kernel[0]: IZDebug0 20000020
    Nov 13 08:15:12 wsheetz kernel[0]: IZDebug0 00000000
    Nov 13 08:15:12 wsheetz kernel[0]: PIDebug0 01807f88
    Nov 13 08:15:12 wsheetz kernel[0]: PIDebug1 00000000
    Nov 13 08:15:12 wsheetz kernel[0]: PIDebug2 01807f88
    Nov 13 08:15:12 wsheetz kernel[0]: DIPDebug 05ef7e17
    Nov 13 08:15:12 wsheetz kernel[0]: PLDebug 00000180
    Nov 13 08:15:12 wsheetz kernel[0]: DGDebug 00000010
    Nov 13 08:15:12 wsheetz kernel[0]: QCDebug 00000000
    Nov 13 08:15:12 wsheetz kernel[0]: FTDebug 00000000
    Nov 13 08:15:12 wsheetz kernel[0]: DMDebug 00000010
    Nov 13 08:15:12 wsheetz kernel[0]: SCDebug 003c0400
    Nov 13 08:15:12 wsheetz kernel[0]: FLDebug 3c100040
    Nov 13 08:15:12 wsheetz kernel[0]: BYDebug 00055440
    Nov 13 08:15:12 wsheetz kernel[0]: PSDebug 00240000
    Nov 13 08:15:12 wsheetz kernel[0]: CCDebug 8cac1000
    Nov 13 08:15:12 wsheetz kernel[0]: statusISR: 00000000
    Nov 13 08:15:12 wsheetz kernel[0]: statusPRB0_HEAD: 00000000
    Nov 13 08:15:12 wsheetz kernel[0]: statusSRB0_HEAD: 00000000
    Nov 13 08:15:12 wsheetz kernel[0]: statusSRB1_HEAD: 00000000
    Nov 13 08:15:12 wsheetz kernel[0]: statusHWB_HEAD: 00000000
    Nov 13 08:15:12 wsheetz kernel[0]: statusSTAMP: 00000000
    Nov 13 08:15:12 wsheetz kernel[0]: display: Not usable
    Nov 13 08:15:12 wsheetz kernel[0]: IOHIDSystem: Seize of AppleHIDKeyboardEventDriver failed.
    Nov 13 08:15:12 wsheetz com.apple.KerberosAutoConfig78: Couldn't find KerberosClient config record
    Nov 13 08:15:15 wsheetz kextd10: writing kernel link data to /var/run/mach.sym
    Nov 13 08:15:15 wsheetz com.apple.KerberosAutoConfig80: Kerberos configuration is up to date
    Nov 13 08:30:12 wsheetz DirectoryService11: GSSAPI Error: Unspecified GSS failure. Minor code may provide more information (Server not found in Kerberos database)
    Nov 13 08:45:12 wsheetz DirectoryService11: GSSAPI Error: Unspecified GSS failure. Minor code may provide more information (Server not found in Kerberos database)
    Nov 13 08:46:03 wsheetz authorizationhost75: MechanismInvoke 0x11a320 retainCount 2
    Nov 13 08:46:03 wsheetz SecurityAgent77: MechanismInvoke 0x101620 retainCount 1π
    It looks like maybe a kernel panic with all the register info, but I'm hardly an expert with this stuff.
    No, I have not applied iLife 8.3.1 update it wasn't out last week. I did post this to the Leopard Install and Config area, no response, so since iPhoto appears to be a contributing factor, I thought I'd ask here
    Any suggestions?

    Hi Andrew!
    Sign out of  Discussions.
    Delete the Apple Cookies.
    Clear the Cache in the browser.
    Quit the browser.
    Try to sign in with the old account.
    If that doesn't work, try this procedure.
    Delete the browser's Apple Cookies, and clear the browser Cache.
    Go to the Sign In Page.
    Do not enter an Apple ID or Password.
    Click on the Click Here link.
    On the page that opens, do not enter an Apple ID, but click on the "Forget your Apple ID link.
    Enter the required information, and click Continue.
    ali b

  • Can I delete files on Macbook after using TM?

    I just used TM for first time. I need to free up HD space on Macbook before I run out. Do I need to move files to external or can I delete them after using TM? Do not want to loose the data that I have.

    Apple says that the Time Machine volume can share space with other files but recommends that Time Machine have its own volume. If you put the files on the same volume as Time Machine you could not use Time Machine to back them up. Also, 160GB is on the smallish side for a Time Machine volume so taking up space for extra files will mean that you will run out of space for backups more quickly.
    External drives can be bought for less than what Leopard costs and extra storage is always a worthwhile investment.

  • After use AffineTransform change also width of stroke

    Hi, may be you can help me. After use AffineTransform change also width of stroke. I want to paint a function graph and calculate that values but tje width of pen is also changed. May be, do I something incorrectly.
    import javax.swing.*;
    import java.awt.*;
    import java.awt.geom.Rectangle2D;
    import java.awt.geom.AffineTransform;
    import java.awt.geom.Point2D;
    import java.awt.event.ActionListener;
    import java.awt.event.ActionEvent;
    import java.awt.print.*;
    public class MyFrame extends JFrame {
         public static final double MM_TO_PAPER_UNITS = 1 / 25.4 * 72;
         public static double widthA4 = 210 * MM_TO_PAPER_UNITS;
         public static double heightA4 = 297 * MM_TO_PAPER_UNITS;
         public static double leftMargin = 4.0 * MM_TO_PAPER_UNITS;
         public static double topMargin = 4.0 * MM_TO_PAPER_UNITS;
         JButton button;
         MyPanel panel;
         GridBagConstraints gridBagConstraints;
         public void init() {
              panel = new MyPanel();
              button = new JButton("Print");
              getContentPane().setLayout(new GridBagLayout());
              setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
              gridBagConstraints = new GridBagConstraints();
              gridBagConstraints.fill = GridBagConstraints.BOTH;
              gridBagConstraints.weightx = 1.0;
              gridBagConstraints.weighty = 1.0;
              add(panel, gridBagConstraints);
              gridBagConstraints = new GridBagConstraints();
              gridBagConstraints.gridx = 0;
              gridBagConstraints.gridy = 1;
              add(button, gridBagConstraints);
              setSize(500, 500);
              button.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e) {
                        PrinterJob printJob = PrinterJob.getPrinterJob();
                        PageFormat pf = printJob.defaultPage();
                        pf.setOrientation(PageFormat.LANDSCAPE);
                        Paper paper = pf.getPaper();
                        paper.setSize(widthA4, heightA4);
                        paper.setImageableArea(leftMargin, topMargin, widthA4 - 2
                                  * leftMargin, heightA4 - 2 * topMargin);
                        pf.setPaper(paper);
                        printJob.setCopies(1);
                        Book book = new Book();
                        book.append(panel, pf, 1);
                        printJob.setPageable(book);
                        if (printJob.printDialog()) {
                             try {
                                  printJob.print();
                             } catch (Exception PrinterExeption) {
                                  PrinterExeption.printStackTrace();
              setVisible(true);
         public static void main(String[] args) {
              MyFrame myFrame = new MyFrame();
              myFrame.init();
         class MyPanel extends JPanel implements Printable {
              final int leftPadding = 20;
         final int rightPadding = 10;
         final int topPadding = 10;
         final int bottomPadding = 20;
              protected void paintComponent(Graphics g) {
                   super.paintComponent(g);
                   Graphics2D g2 = (Graphics2D) g;
                   paingMyGrafik(g2);
              public int print(Graphics graphics, PageFormat pageFormat, int pageIndex) {
                   Graphics2D g2 = (Graphics2D) graphics;
                   // affine transformation for grip of the panel`s content to the size
                   // A4
                   double W = pageFormat.getImageableWidth();
                   double H = pageFormat.getImageableHeight();
                   double minX = pageFormat.getImageableX();
                   double minY = pageFormat.getImageableY();
                   g2.transform(new AffineTransform((W) / this.getWidth(), 0, 0, (H)
                             / this.getHeight(), minX, minY));
                   paingMyGrafik(g2);
                   return 0;
              private void paingMyGrafik(Graphics2D g2) {
                   // here paint i my grafik
                   AffineTransform old = g2.getTransform();
                   g2.transform(toEndCoordinate());
                   BasicStroke stroke = new BasicStroke(0.2f, BasicStroke.CAP_BUTT,BasicStroke.JOIN_MITER);
         g2.setStroke(stroke);
                   g2.drawLine(1899, 20, 1901, 20);
         g2.drawLine(1901, 20, 1901, 25);
         g2.drawLine(1901, 25, 1905, 26);
                   g2.setTransform(old);
              private AffineTransform toUsualyCoordinate(){
    AffineTransform at = new AffineTransform();
    //mirror reflection relative to ox
    at.concatenate(new AffineTransform(1,0,0,-1,0,0));
    //parallel shift (x,y) -> (x, y-h)
    at.concatenate(AffineTransform.getTranslateInstance(0,-this.getHeight()));
    return at;
    private AffineTransform toEndCoordinate(){
    AffineTransform at = new AffineTransform();
    at.concatenate(toUsualyCoordinate());
    at.concatenate((new AffineTransform((double)(this.getWidth()-leftPadding-rightPadding)/this.getWidth(),0,0,(double)(this.getHeight()-topPadding-bottomPadding )/this.getHeight(),leftPadding,bottomPadding)));
    at.concatenate(new AffineTransform(-this.getWidth()/(getMinX()-getMaxX()-2),0,0,this.getHeight()/(getMaxY()-getMinY()+10),this.getWidth()*(getMinX()-1)/(getMinX()-getMaxX()-2),-this.getHeight()*(getMinY()-5)/(getMaxY()-getMinY()+10)));
    return at;
              private int min(int a, int b) {
                   return (a < b) ? a : b;
              private double getMinX(){
                   return 1900;
              private double getMaxX(){
                   return 2000;
              private double getMinY(){
                   return 20;
              private double getMaxY(){
                   return 30;
    }

    The right answer is here ( http://www.javable.com/forum/thread.jspa?messageID=100080&#100080)
    It is necessary to apply BasicStroke before use AffineTransform.
    GeneralPath gp = new GeneralPath();
    g2.setStroke(stroke);
    gp.lineTo((float) xval, (float) yval);
    g2.draw(gp.createTransformedShape(transform));--------

Maybe you are looking for

  • Restrict SQL output by User

    In the sample sql below, I figured out how to be able to restrict output to terms that end with a 5 for a specific user and would like to know if there is a more compact way to write this or is this the best way. This sql will only list out terms tha

  • How to insert multi language data to oracle database

    Hi , Can any one suggest the steps involved in implementing storage/retrieval of data in the language otherthan english on the database?. I am using Oracle 9i database. I want to write sql scripts to insert data to the database.How can i insert the d

  • Payment Cards - Orders with Billing Plan - Authorization Logic

    Hello Experts, Generally, payment card authorization requests are triggered when an order is saved.  How does authorization work for orders with Billing Plans?  Thanks. Regards, Jess A.

  • Why don't some of my iPhoto events import to Aperture projects?

    In importing my iPhoto 9.1.3 events to Aperture 3.1.2 projects many are missing or garbled or plain do not transfer. Am I doing something wrong? Any advice as to how to correct the problem? I'd appreciate your help.  Sincerely, Gregory T.P.

  • I need all drivers for r007txlaptop running Windows 7 64-bit OS.

    For some reasons i have to use windows 7 64 bit os on my r007tx ,and i am not able to turn on wifi or bluetooth on it or anything for that matter. I have searched for the drivers over the internet, i found some files but it says the file is not compa