JavaFX2.0: Change Fontsize  in TextBox not working ?

TextBox textBox = new TextBox ();               
               textBox.setFont( new Font(Font.getDefault().getFamily(), 53));No Effect, the characters still appear very small. Is this a bug?

CSS works because it uses one of the static methods from Font ([url http://download.oracle.com/javafx/2.0/api/javafx/scene/text/Font.html#font(java.lang.String,%20double)]see here). You would be better off using one of these rather than the Font constructor. I believe the difference is that the constructor will try to create the Font whereas the static methods find the closest matching font. If the font can't be created, then some default is returned. I think this is the case. Don't quote me on it.
Edited by: dgrieve on Jun 30, 2011 7:36 AM

Similar Messages

  • My newly changed apple password is not working on my MacBook to help me change my password to log on?

    I just need help changing my password on my MacBook to log in. But my log in password and newly changed apple password are not working. Can I reset it or change the password another way or get a list of past password to try if those might be what the Mac thinks is my password still?

    You can reset it.
    For Snow Leopard and previous.
    http://support.apple.com/kb/ht1274
    For Lion and later.
    https://discussions.apple.com/docs/DOC-4101

  • Input textbox not working in Fullscreen view

    Hi,
    I've created one form application in flash, i have fillup the form(inputbox) in normal view, its working fine. but it's not work in fullscreen view,
    Please let me know how do enter the text in input textbox in fullscreen mode.
    Note: input textbox not work in fullscreen mode.
    Thanks
    Suresh

    Hello,
    I think your problem is very similiar to a problem that I had been suffering from a few days ago.
    I think that the below code should solve your problem:
    stage.scaleMode = StageScaleMode.NO_BORDER;
    Chinmaya

  • How to save bloger password in firefox 3.6.6 ? common ways at internet such as changing nsLoginManager.js is not working because the notepad cant save the new file.

    how to save bloger password in firefox 3.6.6 ?
    common ways at internet such as changing nsLoginManager.js is not working because the notepad cant save the new file.
    == URL of affected sites ==
    http://blogger.com

    Some sites like PayPal, Yahoo, Windows Live and bank sites use ''autocomplete="off"'' to prevent Firefox from saving the name and the password.
    If a site uses ''autocomplete="off"'' then look at this article for a bookmarklet to remove that autocomplete attribute.
    http://kb.mozillazine.org/User_name_and_password_not_remembered (bookmarklet)
    http://kb.mozillazine.org/Password_Manager
    See also http://en.wikipedia.org/wiki/Bookmarklet

  • HT201303 Someone uses my apple ID to purchase, I have changed my password but not work . How can I disassociate my bank account with my APPLE ID?

    Someone uses my apple ID to purchase, I have changed my password but not work . How can I disassociate my bank account with my APPLE ID?

    Using FaceTime http://support.apple.com/kb/ht4319
    Troubleshooting FaceTime http://support.apple.com/kb/TS3367
    The Complete Guide to FaceTime + iMessage: Setup, Use, and Troubleshooting
    http://tinyurl.com/a7odey8
    Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/TS4268
    Using FaceTime and iMessage behind a firewall
    http://support.apple.com/kb/HT4245
    iOS: About Messages
    http://support.apple.com/kb/HT3529
    Set up iMessage
    http://www.apple.com/ca/ios/messages/
    Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    Setting Up Multiple iOS Devices for iMessage and Facetime
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
    FaceTime and iMessage not accepting Apple ID password
    http://www.ilounge.com/index.php/articles/comments/facetime-and-imessage-not-acc epting-apple-id-password/
    Unable to use FaceTime and iMessage with my apple ID
    https://discussions.apple.com/thread/4649373?tstart=90
    For non-Apple devices, check out the TextFree app https://itunes.apple.com/us/app/text-free-textfree-sms-real/id399355755?mt=8
     Cheers, Tom

  • Hyperlinked textbox not working on 1 device.

    I am creating a series of pdfs that contain hyperlinks to relevant documentation for use on a tablet PC (windows 7) at our construction sites. Everything works great until I access the files on the tablet itself. Then the links simply will not open. The tablet is recognising the hyperlink is present (it highlights when you click it).
    I created these pdfs in Word with a series textbox objects hyperlinked to important documentation (also pdfs) and so far it has worked wonderfully on all desktops I've tested it on but it does not work on our tablet PCs that they will primarily be referenced.
    I have disabled all security options and allowed trusting of all links. My testing has revealed that if I attach the hyperlink to the text itself rather than the testbox, it opens the documentation fine. However, I have around 200-300 of these documents each with between 4-20 hyperlinks that would need to be redone so that would be very time consuming and tedious.
    In my testing I also established that the textbox hyperlinks do not work with web addresses either. I doubt that changes anything but additional information can't hurt...

    I ensured that the links are relative links (as the files will be accessed off our company network) when I created them. Whenever any other computer in my ofice accesses them they work as intended.
    In addition, whenever I manipulated a file to hyperlink off the text in the textbox rather than the box itself, move them onto the hard drive, and disconnect from the network, the links work as they would be intended (except this fix would require changing thousands of hyperlinks).
    Whenever I do the same on a desktop on our company network (except use the original files that link off of the textbox), the files also work as intended.
    In short, I have made sure the problem is not the relative links converting to hyperlinks (which I have dealt with before). I have identified that it is difference between what the hyperlink is attached to and whether or not it is a desktop or tablet. It does not work only when its a textbox link on the tablet. I am very confused...

  • Change of Status is not working in WebUI

    Hello All,
    Iam facing a problem in changing the status of the item in web UI requirement as follows.
    We need to set the item status from the To be Closed to Close.The status To be closed is set by an contract processor and schedules the Action .i.e Close item Once the contract approver execuets the action.It need to be change to Closed and the item end date need to be set to the date when the Action is execueted
    I have done my coding in the Execute method for the action Close item by using the FM CRM_ORDER_MAINTAIN
    to change the item enddate and CRM_STATUS_CHANGE_EXTERN to change the Status to Closed and the Commit Work .My code is working fine in GUI but this is not working in WebUI . I can only see it when i execute the action go to the edit mode.
    Can any one help me out in this regards.
    Thanks in Advance.
    Regards,
    Kiran Posanapalli.
    Edited by: posanapalli kiran on Feb 15, 2010 7:16 PM

    Hi Kiran,
    we're having the same issue that an opportunity is updated in the normal Gui but not in the WebUI when using FM CRM_ORDER_MAINTAIN.
    What coding did you use for fixing this?
    Kind regards,
    Roy Willems

  • Auto-Submit On Change in DropDown List not working properly!

    Hi all,
    I�ve got a problem with a drop down list an a table with some rows on my page. The property "Auto-Submit on Change" is set for the drop down because the valueChange-method has to do some work when the user selects another value from the drop down.
    The problem is that after selecting another item from the drop down, the table fields don�t keep their values, which I had entered before I selected another item in the drop down. But: When I select an item again, suddenly exactly these values are set.
    Here my code:
    <?xml version="1.0" encoding="UTF-8"?>
    <jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
    <ui:page binding="#{Page1.page1}" id="page1">
    <ui:html binding="#{Page1.html1}" id="html1">
    <ui:head binding="#{Page1.head1}" id="head1">
    <ui:link binding="#{Page1.link1}" id="link1" url="/resources/stylesheet.css"/>
    </ui:head>
    <ui:body binding="#{Page1.body1}" id="body1" style="-rave-layout: grid">
    <ui:form binding="#{Page1.form1}" id="form1">
    <ui:table binding="#{Page1.table1}" id="table1" style="height: 488px; left: 24px; top: 120px; position: absolute; width: 1376px"
    title="Table" width="1376">
    <ui:tableRowGroup binding="#{Page1.tableRowGroup1}" id="tableRowGroup1" rows="10" sourceData="#{SessionBean1.columnProvider}" sourceVar="currentRow">
    <ui:tableColumn binding="#{Page1.tableColumn1}" headerText="field1" id="tableColumn1" sort="field1">
    <ui:textField binding="#{Page1.textField1}" id="textField1" text="#{currentRow.value['field1']}"/>
    </ui:tableColumn>
    <ui:tableColumn binding="#{Page1.tableColumn2}" headerText="field2" id="tableColumn2" sort="field2">
    <ui:textField binding="#{Page1.textField2}" id="textField2" text="#{currentRow.value['field2']}"/>
    </ui:tableColumn>
    <ui:tableColumn binding="#{Page1.tableColumn3}" headerText="field3" id="tableColumn3" sort="field3">
    <ui:textField binding="#{Page1.textField3}" id="textField3" text="#{currentRow.value['field3']}"/>
    </ui:tableColumn>
    <ui:tableColumn binding="#{Page1.tableColumn4}" headerText="field4" id="tableColumn4" sort="field4">
    <ui:textField binding="#{Page1.textField4}" id="textField4" text="#{currentRow.value['field4']}"/>
    </ui:tableColumn>
    <ui:tableColumn binding="#{Page1.tableColumn5}" headerText="field5" id="tableColumn5" sort="field5">
    <ui:textField binding="#{Page1.textField5}" id="textField5" text="#{currentRow.value['field5']}"/>
    </ui:tableColumn>
    <ui:tableColumn binding="#{Page1.tableColumn6}" headerText="field6" id="tableColumn6" sort="field6">
    <ui:textField binding="#{Page1.textField6}" id="textField6" text="#{currentRow.value['field6']}"/>
    </ui:tableColumn>
    </ui:tableRowGroup>
    </ui:table>
    <ui:dropDown binding="#{Page1.dropDown1}" id="dropDown1" items="#{Page1.dropDown1DefaultOptions.options}"
    onChange="common_timeoutSubmitForm(this.form, 'dropDown1');"
    style="position: absolute; left: 48px; top: 24px; width: 240px; height: 24px" valueChangeListener="#{Page1.dropDown1_processValueChange}"/>
    </ui:form>
    </ui:body>
    </ui:html>
    </ui:page>
    </f:view>
    </jsp:root>
    and the code of the valueChange-Method:
    public void dropDown1_processValueChange(ValueChangeEvent event) {
    getSessionBean1().getColumnProvider().commitChanges();
    List positions = getSessionBean1().getColumnProvider().getColumnList();
    Is there some explanation for this behavior or it�s really a bug in the way how the drop down is submitting the form? I would understand it when commitChanges is not working here because of auto submit on change (==immediate?). but once it works und once it doesn�t work!

    Hi There,
    Not sure what you mean. Have you tried Netbeans 6 yet. Do you see same behaviour in it as well?
    This might be of help to you
    http://www.netbeans.org/kb/55/dropdowncomp.html
    Thanks
    K

  • Illustrator CC Type "Change Case" keyboard shortcut not working

    In Illustrator CS6 I established a keyboard shortcut of Alt+Shift+Ctrl+= to the command Type-->Change Case-->UPPERCASE (and Alt+Shift+Ctrl+- to Type-->Change Case-->Title Case). In Illustrator CC, these two keyboard shortcuts are not working. They are displaying in the Type menu correctly, and the menu commands themselves work correctly, but the shortcuts do not work. Any ideas?

    Well, as I stated, the = worked fine in CS6 on Windows. I just tried to changing it to Alt+Shift+Ctrl+U and that one does work correctly. I would prefer that Adobe minimizes functionality regressions in new releases, even if there are conceivably workarounds that I could employ.
    Would somebody be willing to try Alt+Shift+Ctrl+= on a PC and see if they can get it to work on their system?

  • Equipmen dismantle, change plant, install does not work

    Hello experts,
    I have developed a function module which should execute the following steps:
    - dismantle an equipment from a functional location
    - change the plant of the equipment
    - install the equipment into a new functional location
    I therefor tried to use these three existing function modules:
    - Dismantle -> EQUIPMENT_DISMANTLE
    - Change Plant -> BAPI_EQUI_CHANGE
    - Install -> EQUIPMENT_INSTALL
    Now the problem occurs that the call of the BAPI_EQUI_CHANGE does not execute a commit so the changes are not directly written to the database and the following call of EQUIPMENT_INSTALL is not able to install the equipment into the new functional location.
    I tried to execute a BAPI_TRANSACTION_COMMIT after the BAPI_EQUI_CHANGE but still it does not work. In my dev system I can insert a "WAIT UP TO 1 SECONDS." call which work but this does not work in the testing env. Also this is a very bad approach.
    The curious thing is that everytime I debug my FM everything is working fine. So I bet there is a problem in the direct following call after the BAPI_EQUI_CHANGE and EQIPMENT_INSTALL.
    Here are the relevant calls:
    CALL FUNCTION 'EQUIPMENT_DISMANTLE'
        EXPORTING
    *     READ_SOBJ             = 'X'
    *     READ_ROBJ             = 'X'
    *     LOCK_SOBJ             = 'X'
    *     I_DATE                = SY-DATUM
    *     I_TIME                = SY-UZEIT
          i_inherit_flags       = p_i_inheritance_flags
          old_sequi             = p_i_ls_equi
    *     EXEC_MEAS             = ' '
          transmit_new          = 'X'
          direct_new            = 'X'
          commit_new            = 'S'
        CHANGING
          s_equi                = p_i_ls_equi
    *     R_EQUI                =
    *     R_IFLO                =
        EXCEPTIONS
          err_dismantle         = 1
          OTHERS                = 2
      p_rc = sy-subrc.
      IF sy-subrc NE 0.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
          EXPORTING
            wait   = 'X'
          IMPORTING
            return = bapiret2.
      ENDIF.
      itob-maintplant   = p_target_swerk.
      itob-planplant    = p_target_iwerk.
      itobx-maintplant  = 'X'.
      itobx-planplant   = 'X'.
      CALL FUNCTION 'BAPI_EQUI_CHANGE'
        EXPORTING
          equipment               = p_ls_equi-equnr
          data_general            = itob
          data_generalx           = itobx
          data_specific           = itob_eq
          data_specificx          = itob_eqx
    *     VALID_DATE              = SY-DATUM
    *     VALID_TIME              = SY-UZEIT
        IMPORTING
    *     DATA_GENERAL_EXP        =
    *     DATA_SPECIFIC_EXP       =
          return                  = bapiret2
      IF bapiret2 IS INITIAL.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
          EXPORTING
            wait   = 'X'
          IMPORTING
            return = bapiret2.
      ENDIF.
      CALL FUNCTION 'EQUIPMENT_INSTALL'
        EXPORTING
          read_sobj             = 'X'
    *     READ_ROBJ             = 'X'
    *     LOCK_SOBJ             = 'X'
    *     POSEQUI               =
    *     I_DATE                = SY-DATUM
    *     I_TIME                = SY-UZEIT
          i_inherit_flags       = p_i_inheritance_flags
    *     OLD_SEQUI             =
    *     EXEC_MEAS             = ' '
    *     CALL_EXIT             = ' '
    *     CHECK_NEW             = 'X'
          transmit_new          = 'X'
          direct_new            = ' '
          commit_new            = 'X'
        CHANGING
          s_equi                = p_ls_equi
          r_equi                = p_ls_equi_target
          r_iflo                = s_iflo
        EXCEPTIONS
          err_install           = 1
          OTHERS                = 2
    How can I enable this inside one function module?
    Please, any hints are welcome!
    Regards,
    Andreas

    So, what I have done now is the following:
    IF bapiret2-type EQ 'S'.
        COMMIT WORK AND WAIT.
    *   now check if changes are written to db
        DO.
          l_iwerk = 0.
          " get the latest item entry
          SELECT SINGLE iwerk FROM equz
            INTO l_iwerk
            WHERE equnr EQ p_ls_equi-equnr AND
                  datbi EQ '99991231'.
          IF l_iwerk EQ equitime-planplant.
            p_rc = 0.
            EXIT.                 " data written to db -> exit
          ELSE.
            WAIT UP TO 2 SECONDS. " wait and check in next loop
          ENDIF.
          IF sy-index EQ 10.
            p_rc = 1.             " set returncode to 1
            EXIT.                 " after 10 times -> exit
          ENDIF.
        ENDDO.
      ENDIF.
    This code checks if the respective entry in the db is already written and if not retry to read it with a delay of 2 seconds.
    Looks a little bit ugly but does the job.
    If anyone could get me to a "better" solution I would be happy to hear!

  • Powershell Name Change with If else not working as expected

    The script we've written below executes the if statement correctly and changes the name properly though the else condition is not working properly.  The example data file we  use for input is shown below and it's name is namechanges.csv
    Test,User,User1,1111,2222,[email protected]
    Test,Smith,User2,2222,3333,[email protected]
    Test,Jones,User3,3333,4444,[email protected]
    Test,Doe,User4,4444,5555,[email protected]
    Test,Example,User5,5555,7777,[email protected]
    The script shown below changes the name in Active Directory, home directory, and Exchange to a unique username and new last name (eg. maiden name needs changed to married name)
    $ADRoot = [ADSI]''
    $ADSearch = New-Object System.DirectoryServices.DirectorySearcher($ADRoot)
    add-PSSnapIn -name Microsoft.Exchange.Management.PowerShell.Admin
    Import-module ActiveDirectory
    Get-Content C:\New_Account\namechanges.csv |
    ForEach {
        $Fname = ($_ -split ',')[0]
        $nLname = ($_ -split ',')[1]
        $lname = ($_ -split ',')[2]
        $NUM = ($_ -split ',')[3]
        $ID = ($_ -split ',')[4]
        $requestor = ($_ -split ',')[5]
     $Counter = 0
    $Emp = Get-aduser -Filter {(employeeID -eq $ID)-and (EmployeeNumber -eq $NUM)}
    $SamAccount = (get-aduser -Filter {employeeID -eq $ID }).SamAccountName
    $SamAccount
    $FNAME = (get-aduser -Filter {employeeID -eq $ID }).GivenName
    $FNAME
    $LNAME = (get-aduser -Filter {employeeID -eq $ID }).Surname
    $LNAME
    $UserPrincipalName = (get-aduser -Filter {employeeID -eq $ID }).UserPrincipalName
    $UserPrincipalName
    Start-Sleep 2
    Set-ADUser $SamAccount -surname $nlname -DisplayName $FNAME" "$nlname
    Start-Sleep 2
    if ($Emp -ne $null)
          $Counter = 1
       $Counter
          Do
         $F = $Fname.remove($Counter)
         $newusername = $F + $nLname
         $ADSearch.Filter = "(&(objectClass=user)(sAMAccountName=$newusername))"
         $Result = $ADSearch.FindAll()
         $t = $result.Count          
                   if ($t -lt 1)
          $FoundUniqueUserName = $True
             Else
          $Counter = $Counter + 1
          $FoundUniqueUserName = $False
       While ($FoundUniqueUserName -eq $False)  
       $newusername 
    Start-Sleep 2
    rename-adobject -identity ((get-aduser $Emp).ObjectGUID) -NewName "$Fname $nLname"
    Start-Sleep 2
    Rename-Item \\secret.com\share\home\$SamAccount $newusername
    Start-Sleep 2
    Set-ADUser $SamAccount -surname $nlname -DisplayName $Fname" "$nlname
    Start-Sleep 2
    $newUPN = $newusername + "@secret.com"
    Start-Sleep 2
    Set-ADUser $SamAccount -SamAccountName $newusername -UserPrincipalName $newUPN
    Start-Sleep 5
    $Mailbox = Get-Mailbox -Identity $SamAccount
    $SMTPAddress = $Mailbox.PrimarySmtpAddress
    $Domain = $SMTPAddress.Domain
    Start-Sleep 5
    $emailaddress = "$newusername@$Domain"
    Start-Sleep 5
    Set-Mailbox $SamAccount -EmailAddressPolicyEnabled:$False -PrimarySmtpAddress $emailaddress -Alias $newusername
    Start-Sleep 5
    Set-Mailbox $emailaddress -EmailAddressPolicyEnabled:$true
    Start-Sleep 5
         $smtpServer = "mail.secret.com"
         $msg = new-object Net.Mail.MailMessage
         $smtp = new-object Net.Mail.SmtpClient($smtpServer)
         $msg.From = "[email protected]"
         $msg.To.Add($requestor)
         $msg.subject = "A name change request for $FNAME $LNAME was succesfull"
         $msg.body = "A name change request for $FNAME $LNAME was succesfull"
         $smtp.Send($msg)  
    Start-Sleep 8
    Else
         $smtpServer = "mail.secret.com"
         $msg = new-object Net.Mail.MailMessage
         $smtp = new-object Net.Mail.SmtpClient($smtpServer)
         $msg.From = "[email protected]"
         $msg.To.Add($requestor)
         $msg.subject = "A Name change request was received but the script failed to make the change."
         $msg.body = "A name change request for $FNAME $LNAME was requested with the employee id and number of $ID and $NUM. The request was not succesfull"
         $smtp.Send($msg)   
    Out-File C:\New_Account\name_change_log.txt -InputObject "At $([datetime]::now) there was a name change request for $Fname $lname-$nLname with ID of $ID and number of $NUM." -Append
    Start-Sleep 5
    #Remove-Item C:\New_Account\namechanges.csv
    Else {
    "Something went wrong"
    Can someone take a look at the code and see where I went wrong with the else statement?  Let's say hypothetically Test Smith is a common name and already exists in Active Directory in the same OU we attempt to make the username unique however if that
    fails I would like to receive the email and  update the name change in some other way.

    Well the code you presented has two issues that I can see
    You have the following
    While ($FoundUniqueUserName -eq $False)
    $newusername
    Start-Sleep 2
    rename-adobject -identity ((get-aduser $Emp).ObjectGUID) -NewName "$Fname $nLname"
    Start-Sleep 2
    Rename-Item \\secret.com\share\home\$SamAccount $newusername
    Start-Sleep 2
    Set-ADUser $SamAccount -surname $nlname -DisplayName $Fname" "$nlname
    Start-Sleep 2
    $newUPN = $newusername + "@secret.com"
    Start-Sleep 2
    Set-ADUser $SamAccount -SamAccountName $newusername -UserPrincipalName $newUPN
    Start-Sleep 5
    $Mailbox = Get-Mailbox -Identity $SamAccount
    $SMTPAddress = $Mailbox.PrimarySmtpAddress
    $Domain = $SMTPAddress.Domain
    Start-Sleep 5
    $emailaddress = "$newusername@$Domain"
    Start-Sleep 5
    Set-Mailbox $SamAccount -EmailAddressPolicyEnabled:$False -PrimarySmtpAddress $emailaddress -Alias $newusername
    Start-Sleep 5
    Set-Mailbox $emailaddress -EmailAddressPolicyEnabled:$true
    Start-Sleep 5
    $smtpServer = "mail.secret.com"
    $msg = new-object Net.Mail.MailMessage
    $smtp = new-object Net.Mail.SmtpClient($smtpServer)
    $msg.From = "[email protected]"
    $msg.To.Add($requestor)
    $msg.subject = "A name change request for $FNAME $LNAME was succesfull"
    $msg.body = "A name change request for $FNAME $LNAME was succesfull"
    $smtp.Send($msg)
    Start-Sleep 8
    Which has no open and closing brackets for the while loop, then at the end of the script you have
    #Remove-Item C:\New_Account\namechanges.csv
    Else
    "Something went wrong"
    That else has no opening If statement.....I would fix these issues first, straighten your code out a bit and see if it works then, as the no opening and closing brackets on the While loop and the extra else statement, may be giving you some issues.
    If you find that my post has answered your question, please mark it as the answer. If you find my post to be helpful in anyway, please click vote as helpful.
    Don't Retire Technet

  • Battery changed,but click wheel not working again

    i was changed the new battery for my ipod mini 4G 1 st gen, however the click wheel not working again. the ipod is chargeble, and can lock and unlock, but when the switch turn back to unlock, the ipod is restarting. does anyone who knows what problem i have, and how to fix it? thank you so much
    dell   Windows XP  

    very likely it is a hardware issue, if after restore to factory setting does not solve.
    it could be caused by poor contact or the faulty click wheel of the iPod, just like mine

  • Code to change JTable cell color not working

    My code below is supposed to change the color
    of a single JTable cell however its not working.
    Could anyone please tell me why?
    Here's the code:
    import java.awt.*;
    import javax.swing.table.*;
    import javax.swing.*;
    import java.awt.event.*;
    public class ColorTable extends JTable {
    public ColorTable() {
    AbstractTableModel tableModel = new AbstractTableModel() {
    public Class getColumnClass(int column) { return Integer.class; }
    public int getColumnCount() { return 6; }
    public int getRowCount() { return 10;}
    public Object getValueAt(int row,int col) { return new Integer(row * col); }
    setModel(tableModel);
    setDefaultRenderer(Integer.class,new ColorRenderer(Color.cyan));
    this.setRowSelectionAllowed(false);
    this.setCellSelectionEnabled(true);
    addMouseListener(new MouseAdapter() {
    private ColorRenderer renderer;
    private JColorChooser chooser = new JColorChooser();
    public void mousePressed(MouseEvent e) {
    if(e.getModifiers() == MouseEvent.BUTTON3_MASK) {
    System.out.print("rowAtPoint(e.getPoint())=" +rowAtPoint(e.getPoint()));
    System.out.print( "columnAtPoint(e.getPoint()))=" + columnAtPoint(e.getPoint()));
    renderer = (ColorRenderer)getCellRenderer(rowAtPoint(e.getPoint()), columnAtPoint(e.getPoint()));
    // chooser.setColor(renderer.getColor());
    renderer.setColor(chooser.showDialog((Component)e.getSource(),"Choose Cell Color",chooser.getColor()));
    class ColorRenderer extends DefaultTableCellRenderer {
    private Color cellColor;
    public ColorRenderer(Color color) { cellColor = color; }
    public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
    System.out.print("row= " + row + "\n");
    System.out.print("column= " + column + "\n");
    System.out.print("OBJECT VALUE=" + value.toString());
    //Component comp = super.getTableCellRendererComponent(table,value,isSelected,hasFocus,row,column);
    super.getTableCellRendererComponent(table,value,isSelected,hasFocus,row,column);
    if (isSelected) {
    setOpaque(true);
    setBackground(cellColor);
    else {
    setBackground(Color.white);
    setForeground(Color.black);
    return this;
    public void setColor(Color color)
    cellColor = color;
    ColorTable.this.repaint();
    public Color getColor() { return cellColor; }
    public static void main(String[] args) {
    JFrame frame = new JFrame();
    JPanel panel = new JPanel();
    ColorTable table = new ColorTable();
    panel.add(table);
    frame.getContentPane().add(panel);
    frame.setSize(500,250);
    frame.setVisible(true);

    My code below is supposed to change the color
    of a single JTable cell however its not working.
    Could anyone please tell me why?
    Here's the code:
    import java.awt.*;
    import javax.swing.table.*;
    import javax.swing.*;
    import java.awt.event.*;
    public class ColorTable extends JTable {
    public ColorTable() {
    AbstractTableModel tableModel = new AbstractTableModel() {
    public Class getColumnClass(int column) { return Integer.class; }
    public int getColumnCount() { return 6; }
    public int getRowCount() { return 10;}
    public Object getValueAt(int row,int col) { return new Integer(row * col); }
    setModel(tableModel);
    setDefaultRenderer(Integer.class,new ColorRenderer(Color.cyan));
    this.setRowSelectionAllowed(false);
    this.setCellSelectionEnabled(true);
    addMouseListener(new MouseAdapter() {
    private ColorRenderer renderer;
    private JColorChooser chooser = new JColorChooser();
    public void mousePressed(MouseEvent e) {
    if(e.getModifiers() == MouseEvent.BUTTON3_MASK) {
    System.out.print("rowAtPoint(e.getPoint())=" +rowAtPoint(e.getPoint()));
    System.out.print( "columnAtPoint(e.getPoint()))=" + columnAtPoint(e.getPoint()));
    renderer = (ColorRenderer)getCellRenderer(rowAtPoint(e.getPoint()), columnAtPoint(e.getPoint()));
    // chooser.setColor(renderer.getColor());
    renderer.setColor(chooser.showDialog((Component)e.getSource(),"Choose Cell Color",chooser.getColor()));
    class ColorRenderer extends DefaultTableCellRenderer {
    private Color cellColor;
    public ColorRenderer(Color color) { cellColor = color; }
    public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
    System.out.print("row= " + row + "\n");
    System.out.print("column= " + column + "\n");
    System.out.print("OBJECT VALUE=" + value.toString());
    //Component comp = super.getTableCellRendererComponent(table,value,isSelected,hasFocus,row,column);
    super.getTableCellRendererComponent(table,value,isSelected,hasFocus,row,column);
    if (isSelected) {
    setOpaque(true);
    setBackground(cellColor);
    else {
    setBackground(Color.white);
    setForeground(Color.black);
    return this;
    public void setColor(Color color)
    cellColor = color;
    ColorTable.this.repaint();
    public Color getColor() { return cellColor; }
    public static void main(String[] args) {
    JFrame frame = new JFrame();
    JPanel panel = new JPanel();
    ColorTable table = new ColorTable();
    panel.add(table);
    frame.getContentPane().add(panel);
    frame.setSize(500,250);
    frame.setVisible(true);

  • PSE 8: "Auto-analysis" and change of tag icon not working

    Hi, in the organizer of PSE8/Win i have two problems:
    I select some thumbnails and use "auto analyze" (for quality level etc.). Then i get a status bar "auto analyzing starts" - and it never gets beyond that stage. I have to click "cancel" to get out. That's also true with one single image selected.
    The icons for tags like "Mary" automatically get a small picture. It is possible to change this tag picture after right-clicking. But then, the button "Edit symbol" is greyed out.
    The menu for sorting by date in ascending/descending order doesn't change anything (i always see oldest pictures first).
    There's lot of available hard disk in Elements' drive, but only 800 MB on the C: drive. I changed NONE of Elements preferences.  When i change preference to "auto analyze on organizer's start-up", it still doesn't work. In the task manager, i do NOT see a task like "PhotoshopElementsAutoAnalyzer.exe" or so. I believe i saw this task in a slightly earlier version where everything worked fine. The problem exists with old catalogs as well as with newly created catalogs. Re-starts and re-booting didn't help either. I have perfectly normal camera JPEGS - and the face recognition works fine. It seems that the sub-application "PhotoshopElementsAutoAnalyzer.exe (?)" misses - could you advise me which file to look for?
    Btw, i have Win XP SP2 with 4 GB memory on a non-English system with appropriate non-English PSE8 retail version. Premiere Elements 8 is installed too.
    I would like to try "auto analyzing" and i would like to change tag icon pictures. Of course i could re-install, but that's just so tedious and i don't know if it helps. Would you have any other ideas? Thanks a lot!

    Barbara, John,
    thanks again for your considerations! After some more testing and input from the PrE 8 forum, i can say the following:
    - Ascending/descending order: Now i know: If you have only pictures of one single day, there is no change in thumbnail order when you switch from "ascending" to "descending" and back. Of course pics from morning and evening should change position, but they don't. BUT: If you add one pic from another day, switching from "ascending" to "descending" suddenly fully works - including pics taken on one same day changing position. (To test Organizer, auto analysis and face recognition under fast clear conditions, i had originally only 20 pics in the catalog, all from one family day trip. And there, i couldn't change the order.)
    - I checked "auto analyze" again. Now i can say: When i start "auto analyze" manually, i see "ElementsAutoAnalyzer.exe" for half a second in the task manager. Then it disappears, and on the Organizer screens, the status bar keeps claiming "Starting analysis" until i click "Cancel". I ONLY tried it on regular JPEGs so far. There is no way to get a "smart tag". If i try a second time, no more "ElementsAutoAnalyzer.exe" appears in the task manager. I also switched users on my PC to a user which has no utilities whatsoever running, less than 10 processes in the task manager, turned off anti-virus - still the same problem with "auto analyze".
    - The face recognition tags btw are not written into the image file as IPTC, that has to be done with the "File" menu command. Also if i drag "smart tags" like "low quality" manually over a thumbnail, they get assigned only via catalog, not written as IPTC straight into the image file.
    I don't think it's worth wasting more of one's time before there is a bugfix delivered that expressively acknowledges the issues mentioned. I am not a computer geek, just like to play with pictures and videos; i thought Elements was made for people like that.
    Thanks again for your input!

  • Changed Apple ID  is not working with the appstore

    I have 2 iPads. Upon updating to iOS 6 I've been experiencing the following problems:
    On iPad number 1: My Apple ID works from the settings menu, however when loading into the appstore, it keeps on asking me for a password of an old apple ID that I do not use anymore and I've got no idea how to change this.
    On iPad number 2: I moved over all of my apps from first iPad to my second one via the iCloud backup. However any apps purchased on my first iPad, i cannot make in-purchases for on the iPad number 2 as it says the Apple ID I purchased the app on is different from the one currently in use.
    Please could anyone help me?
    Many thanks!

    I have the exact same problem as "Jan Olsen 1"
    I sent them feedback:
    "I was given a $25 iTunes gift card. 
    When trying to log on to my account, my password didn't work (though I entered the correct password THREE TIMES). 
    I requested help changing the password through an e-mail. Went through the process, changed the password.
    I successfully logged on to my account and entered the gift card information and was given a $25 credit.
    When I tried to buy mp3s, I was asked to enter my password - AGAIN. 
    I got one of the following messages each time I tried to enter my NEW password:
    'We could not complete your iTunes Store request. An unknown error occurred (5002).
    There was an error in the iTunes Store. Please try again later.'
    or
    'Verification is required.
    You must enter your AppleID and password, click Billing Info, and verify your payment information in order to make purchases.
    The Apple ID you entered couldn't be found or your password was incorrect. Please try again.'
    Don't know where to go from here."
    And then, just to log on to this forum, I had to enter my AppleID TWICE! Once, then again to verify my AppleID!
    Ridiculous! Frustrating!

Maybe you are looking for