Why doesn't my custom ItemRenderer accept Application font size?

I have a CSS file:
s|Application {
          fontFamily: Verdana;
          fontSize: 9;
Why doesn't my custom mx:AdvancedDataGrid  ItemRenterer accept the font size defined in the stylesheet?

What is the value of fontSize?  Could it be set in some other selector?

Similar Messages

  • Why doesn't the line break change w/font size??

    Hello,
    I am trying to print out a simple paragraph (String object) to the printer. I am trying to get the text to wrap properly based on font size. I've search on the posts and can't find the answer.
    It looks like the LineBreakMeasurer is only working with default font size? No matter what font I use in the graphics, the string always seems to break in the same column? Any ideas?
    Here is a sample of the code I'm using.
    Note - the actual printing (draw) is commented out.)
    Thanks,
    Jim
    import java.awt.*;
    import java.awt.print.*;
    import java.text.*; //for AttributedCharacter
    import java.awt.font.*; //for FontRenderContext
    public class TestPrint implements Printable {
         String textToPrint;
         AttributedString as;
         AttributedCharacterIterator aci;
         //Font font = new Font("TimesRoman", Font.PLAIN, 16);
         Font font = new Font("TimesRoman", Font.PLAIN, 8);
         public TestPrint(String text) {
              //text represents one paragraph of text
              textToPrint = text;
              as = new AttributedString(textToPrint);
              aci = as.getIterator();
              PrinterJob job = PrinterJob.getPrinterJob();
              job.setPrintable(this);
              if (job.printDialog() ) {
                   try {
                        job.print();
                   catch(Exception e) {
                        e.printStackTrace();
         public static void main(String args[]) {
              String testMsg = new String("TEST TEST TEST - The quick brown fox jumped over the lazy dogs back. " +
                             "How now brown cow? This will be a fairly long line so I can see how the text will wrap " +
    "around on the printer when it prints. This is the end of the test string.\n");
              TestPrint tp = new TestPrint(testMsg);
              System.exit(0);
         public int print(Graphics g, PageFormat pf, int idx) {
              if (idx > 0)
                   return Printable.NO_SUCH_PAGE;
              Graphics2D g2d = (Graphics2D)g;
    Font fonta = g2d.getFont();
    System.out.println("orig graphics font = " + fonta.getName() + " - " + fonta.getSize() );
              g2d.setFont(font);
    Font fontb = g2d.getFont();
    System.out.println("new graphics font = " + fontb.getName() + " - " + fontb.getSize() );
              float xo = (float)pf.getImageableX();
              float yo = (float)pf.getImageableY();
              int y = font.getSize();
              FontRenderContext frc = g2d.getFontRenderContext();
              //aci is the AttributedCharacterIterator
              LineBreakMeasurer measurer = new LineBreakMeasurer(aci, frc);
              float wrappingWidth = (float)pf.getImageableWidth();
    System.out.println("wrappingWidth = " + wrappingWidth);
              while (measurer.getPosition() < aci.getEndIndex() ) {
    System.out.println("measurer position = " + measurer.getPosition() + " next offset = " +
                                       measurer.nextOffset(wrappingWidth) );               
                   String printLine = textToPrint.substring(measurer.getPosition(), measurer.nextOffset(wrappingWidth) );
                   measurer.setPosition(measurer.nextOffset(wrappingWidth));
    System.out.println("printLine = " + printLine);               
                   //g2d.drawString(printLine, xo, y + yo);
                   y += font.getSize();
              //return Printable.PAGE_EXISTS;
              return Printable.NO_SUCH_PAGE;
    }

    Just for everyone elses reference, below is the modified code that works for me.
    <pre>
    import java.awt.*;
    import java.awt.print.*;
    import java.text.*; //for AttributedCharacter
    import java.awt.font.*; //for FontRenderContext
    import java.util.*;
    import javax.swing.*;
    public class PrintTest3 implements Printable {
    String textToPrint;
    AttributedString as;
    AttributedCharacterIterator aci;
    Font font = new Font("Arial", Font.PLAIN, 18);
    //Font font = new Font("TimesRoman", Font.PLAIN, 8);
    public PrintTest3(String text) {
    //text represents one paragraph of text
    textToPrint = text;
    as = new AttributedString(textToPrint);
    aci = as.getIterator();
    PrinterJob job = PrinterJob.getPrinterJob();
    job.setPrintable(this);
    if (job.printDialog() ) {
    try {
    job.print();
    catch(Exception e) {
    e.printStackTrace();
    public static void main(String args[]) {
    String testMsg = new String("TEST TEST TEST - The quick brown fox jumped over the lazy dogs back. " +
    "How now brown cow? This will be a fairly long line so I can see how the text will wrap " +
    "around on the printer when it prints. This is the end of the test string.\n");
    PrintTest3 tp = new PrintTest3(testMsg);
    System.exit(0);
    public int print(Graphics g, PageFormat pf, int idx) {
    if (idx > 0){
    return Printable.NO_SUCH_PAGE;
    Graphics2D g2d = (Graphics2D)g;
    g2d.setFont(font);
    as.addAttribute(TextAttribute.FONT, font);
    float xo = (float)pf.getImageableX();
    float yo = (float)pf.getImageableY();
    int y = font.getSize();
    //aci is the AttributedCharacterIterator
    LineBreakMeasurer measurer = new LineBreakMeasurer(aci, g2d.getFontRenderContext());
    float wrappingWidth = (float)pf.getImageableWidth();
    while (measurer.getPosition() < aci.getEndIndex() ) {
    String printLine = textToPrint.substring(measurer.getPosition(), measurer.nextOffset(wrappingWidth) );
    measurer.setPosition(measurer.nextOffset(wrappingWidth));
    g2d.drawString(printLine, xo, y + yo);
    y += font.getSize();
    return Printable.PAGE_EXISTS;
    </pre>

  • Why doesn't my iMac G5 accept my password?

    Why doesn't my iMac G5 accept my password?

    When you are doing what?
    BTW, what version of OS X are you running?

  • Change application font size in Thunderbird 3.

    How can I change the font size in Thunderbird 3? The bold fonts are to bold and the general font size is to big I think.
    I have tested with creating a chrome folder in the default profile. The userChrome.css looks like this. But it didn't work.
    * Edit this file and copy it as userChrome.css into your
    * profile-directory/chrome/
    * This file can be used to customize the look of Mozilla's user interface
    * You should consider using !important on rules which you want to
    * override default settings.
    * Do not remove the @namespace line -- it's required for correct functioning
    @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* set default namespace to XUL */
    * Some possible accessibility enhancements:
    * Make all the default font sizes 20 pt:
    * font-size: 20pt !important
    /* Global UI font */
    font-size: 6pt !important;
    EDIT: Seems like the bold font is a more global problem. This is from Firefox
    I have installed the ubuntu patched fonts. My ~/.fonts.conf looks like this.
    <?xml version="1.0"?>
    <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
    <fontconfig>
    <match target="font" >
    <test compare="more" name="weight">
    <const>medium</const>
    </test>
    <edit mode="assign" name="autohint">
    <bool>true</bool>
    </edit>
    </match>
    <match target="font">
    <test name="weight" compare="more">
    <const>medium</const>
    </test>
    <edit name="autohint" mode="assign">
    <bool>false</bool>
    </edit>
    </match>
    </fontconfig>
    Last edited by orjanp (2009-12-17 09:52:12)

    Yes of course. My bad.
    Here it is. Some of the entries don't have a corresponding entry in conf.avail. I accidentally deleted 10-autohint.conf from conf.avail when I meant to delete it in conf.d. Ho do I get it back?
    Have tested lxappearance to change the font in GTK applications. Works, but the boldness is not looking very good yet.
    [root@ArchT400 orjanp]# ls /etc/fonts/conf.d/
    10-antialias.conf 45-latin.conf
    10-autohint.conf 49-sansserif.conf
    10-hinting.conf 50-user.conf
    10-hinting-slight.conf 51-local.conf
    10-lcd-filter.conf 53-monospace-lcd-filter.conf
    11-lcd-filter-lcddefault.conf 60-latin.conf
    20-fix-globaladvance.conf 64-ttf-arphic-uming.conf
    20-unhint-small-vera.conf 64-ttf-thai-tlwg.conf
    25-ttf-arphic-uming-render.conf 65-fonts-persian.conf
    29-replace-bitmap-fonts.conf 65-nonlatin.conf
    30-cjk-aliases.conf 69-unifont.conf
    30-defoma.conf 80-delicious.conf
    30-metric-aliases.conf 90-synthetic.conf
    30-urw-aliases.conf 90-ttf-arphic-uming-embolden.conf
    35-ttf-arphic-uming-aliases.conf 90-ttf-thai-tlwg-synthetic.conf
    40-nonlatin.conf README
    41-ttf-arphic-uming.conf

  • Why does Dynamic Type change to a fixed font size when copied from one Note to another Note in the Apple Notes App?

    If I copy and paste text from one note to another, it pastes in at the current Dynamic Type size but is no longer adjustable. I have tons of notes with various fixed size text. Is there a way to reset all the text in the Apple Notes App to Dynamic Type so they can be adjusted using the font size slider in settings?

    When you use IMAP, as opposed to "On my Mac," Notes will create a folder called "Notes" on the mail server.  It will then store notes in there.  If you create subfolders in Notes (which you can do), those will be stored as subfolders of Notes on the server.
    So in the case of Gmail, you should be able to log onto your Gmail web account and the notes should probably show up in "All my Mail" with a label of Notes (this is because Gmail's IMAP implementation is VERY nonstandard and it doesn't actually support folders; it uses labels instead).  If you view the Notes label in Gmail's web interface you should see all your notes.
    Because of Gmail's IMAP implementation you should be very careful not to remove the "Notes" label from any of your notes if you're in the web interface, or they will disappear from the Notes app on OS X itself.

  • CSS doesn't work at the report data font size.

    Greetings,
    I'd like to adjust the font size of the data in a report because it has lots of columns. I used the alternating row color template with little modification. Since the CSS put everything by default size = 12px: <br>
    * (line 2)
    font-size: 12px;
    <p>
    I had to add the snippet in the header part:
    <style type="text/css">
    td.t12data {
    font-size: 10px;
    </style> "
    <p>
    Then the font size of all data was changed but the data with font descriptor like:
    '<font color="#FF3522"> </font>'. The font size would NOT be changed to 10px, and stayed as 12px as the default. If I remove the color stuff, the size would be changed. Furthermore, the CSS class applied on those colored data are NOT as same as those regular data, say t10data. If I clicked them (CTRL_SHIFT_Y) in Firefox, it showed the default part, i.e. line 2 of CSS; but they are supposed to belong to the same CSS class, t10data.
    <p>
    My question is:
    1) If I still want to keep those colors, how may I solve the problem?
    2) Is there a way to change the color of a whole column? I tried to play with the column attribute but didn't succeed.
    Thanks.
    Message was edited by:
    Luc

    Hmm, I still could not find the reason why some rows in the table do not use the td.t10data style, instead the default style, the '*', ( from the FF WDE with CTRL+SHIFT+Y). So the font sizes are always 12px as:
    * (line 2)
    font-size: 12px;
    Also, since I use the javascript to change the color of some columns, the font size of everything of those columns are also the default style, no matter how I changes font size in the script like:
    td1.style.fontfamily='Arial';
    td1.style.fontsize='10px';
    Can somebody shed some light? Thanks in advance.

  • Why doesn't my custom download manager get launched by Safari?

    Hi all,
    I'm working on a download manager for Leopard, Snow Leopard and possibly Tiger. It's a single window app that should get launched when the browser downloads a file with a custom extension, similar to the way the Amazon MP3 Downloader works with *.amz files.
    My test app is set up to handle ".mytype" files and gets launched as expected when you double-click a ".mytype" file in the Finder or download one with Firefox.
    Unfortunately, Safari just downloads the file and never launches my app. I can double-click on the file in Safari's Downloads window and it launches my app, but I need it to launch automatically.
    Any hints or advice would be greatly appreciated.
    Thanks,
    Tom
    Code below built with Xcode 3.1.2, target 10.5|Release|i386
    Document type section of Info.plist:
    <key>CFBundleDocumentTypes</key>
    <array>
    <dict>
    <key>CFBundleTypeExtensions</key>
    <array>
    <string>mytype</string>
    </array>
    <key>CFBundleTypeIconFile</key>
    <string>Icon</string>
    <key>CFBundleTypeMIMETypes</key>
    <array>
    <string>application/x-mytype</string>
    </array>
    <key>CFBundleTypeName</key>
    <string>mytype Doc</string>
    <key>CFBundleTypeRole</key>
    <string>Editor</string>
    </dict>
    </array>
    Application delegate functions:
    // this one gets called when downloading in FF, no luck in Safari
    - (void)application:(NSApplication *)sender openFiles:(NSArray *)filenames
    NSLog(@"in application:openFiles");
    [sender replyToOpenOrPrint: NSApplicationDelegateReplySuccess];
    // this one works in FF if I remove application:openFiles above
    // I tried both methods in case it made a difference
    - (BOOL)application:(NSApplication *)theApplication openFile:(NSString *)filename
    NSLog(@"in application:openFile: %@", filename);
    return YES;
    testfile.mytype (served as PHP by apache):
    <?
    header('Content-Disposition: filename="testfile.mytype"');
    header("Content-Type: application/x-mytype");
    $body = "
    sample file contents
    header("Content-Length: " . strlen($body));
    echo $body;
    ?>

    Ray,
    Thanks for the folder monitoring idea. I'd still like to get the original problem solved, but that might be an acceptable workaround.
    The download manager is for a commercial product. All the examples of folder actions that I found involved the user selecting the folder and the script that gets executed. Is this process scriptable by my install program, even if the user has folder actions disabled?
    Another option might be using the WatchPaths option in LaunchAgents and have it launch my program when a new ".mytype" file is detected.
    I'm pretty new to Mac programming (unix background) - what would be the pros and cons of LaunchAgents vs. Folder Actions?
    Also, I know that "~/Downloads" is the standard location to save downloaded files, but what if the user changes it to a different folder in Safari Preferences?
    Regarding the original problem...
    "Open safe files after downloading" is checked in my Safari preferences.
    Since I will be distributing the program I don't want to go mucking about with overriding the built-in list of safe file types.
    Would it make sense to write a Safari plugin to handle the custom file types? The sample plugins that I looked at all deal with the custom types in the context of the browser page (like a movie viewer), but I want to launch an external application to handle the file. Is that possible? Or is watching the Downloads folder for new files a better approach?
    Thanks,
    Tom

  • Why doesn't LV7 app builder accept VIs without diagrams

    When attempting to build an application in LV7, I get error 1073 with a reason given that the sourve VI must have its diagram in order to be included in an application. This has never happened before in LV6.1.

    While trying to find something else I found this in my in-box
    Ah, I see. So now using strict-typedefs is an advanced feature that would cause application building to croak eh? I'm not sure why LV would not know about a typdef that is physically placed on the diagram. Hmm, I wasn't doing anything different than what I was doing in lv6.1 (I naively think). Once again, NI decides to change certain default behaviors and some of us have to pay for it with late nights at the office.
    One more thing. I understand the need to add, change, remove certain behaviors in LabVIEW as the new releases evolve. When doing so however can you guys (LV product developers) just do us a favor and add a few checkboxes or radio buttons so we can switch these things on and off? Enough with this *.ini cat and mouse. Good example: Why couldn't the above setting be a checkbox on the appbuilder screen? At the very least it would have made me look and say "hmm, I wonder if this does it?". It would also make me call up the help to cross-reference. You can call it a feature all you want, in my books a hidden ini setting is not a feature, it's a scapegoat.
    I would love to rant some more but I'm too tired...
    Michael Aivaliotis
    > As far as I can see, you have problem similar to one I met during beta
    > testing. I reported it to NI staff and got rather good clarification.
    > By default, LV7 AppBuilder does not include type definitions and
    > unused instances of polymorphic VIs into executable in order to
    > decrease size of application. If some VI in your exe calls a VI
    > outside (that was not planned by AppBuilder) and uses a type
    > definition in order to pass parameters, you will meet such kind of
    > problem for sure. I was offered a few ways to solve the problem but I
    > really like only one. There is undocumented ini setting that disables
    > this new feature. Put the following line to your labview.ini file:
    > BldApp.RemovePolyVIsandTypedefs=False
    > Then restart LV and rebuild your application.
    THe original topic was
    RE: lv7 app builder problem
    The correct spelling of Mike's name is,
    = Michael Aivaliotis =
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Why doesn't my custom tag work?

    First, my backend database is MS Access. Nothing I can do about that, unfortunately.
    I have defined three custom tags (no body, no attributes) to display report information from my project tracking/metrics Access database:
    <prefix:showProjectInfo />
    <prefix:showProjectTeam />
    <prefix:showProjectHistory />
    In my JSP, the first tag I use, <prefix:showProjectInfo />, works perfectly. However, <prefix:showProjectTeam /> gives no output.
    First, here is the tld file that defines the tags (report.tld):
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE taglib
            PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
            "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
    <taglib>
        <tlib-version>1.0</tlib-version>
        <jsp-version>1.2</jsp-version>
        <short-name>report</short-name>
        <uri>/report</uri>   
        <!-- Forte4J_TLDX:  This comment contains code generation information. Do not delete.
        <tldx>
            <tagHandlerGenerationRoot>classes</tagHandlerGenerationRoot>
        </tldx>
        -->
        <!-- A validator verifies that the tags are used correctly at JSP
             translation time. Validator entries look like this:
          <validator>
              <validator-class>com.mycompany.TagLibValidator</validator-class>
              <init-param>
                 <param-name>parameter</param-name>
                 <param-value>value</param-value>
           </init-param>
          </validator>
       -->
       <!-- A tag library can register Servlet Context event listeners in
            case it needs to react to such events. Listener entries look
            like this:
         <listener>
             <listener-class>com.mycompany.TagLibListener</listener-class>
         </listener>
       -->
       <tag>
            <name>showProjectInfo</name>
            <tag-class>mil.usaf.rad.metrics.report.showProjectInfoTag</tag-class>
            <body-content>empty</body-content>
            <description>Shows the basic project information</description>       
       </tag>
       <tag>
            <name>showProjectTeam</name>
            <tag-class>mil.usaf.rad.metrics.report.showProjectTeamTag</tag-class>
            <body-content>empty</body-content>
       </tag>
       <tag>
            <name>showProjectHistory</name>
            <tag-class>mil.usaf.rad.metrics.report.showProjectHistoryTag</tag-class>
            <body-content>empty</body-content>
       </tag>
    </taglib>Next, here is the relevant section of web.xml that defines this taglib:
      <taglib>
            <taglib-uri>/WEB-INF/report.tld</taglib-uri>
            <taglib-location>/WEB-INF/report.tld</taglib-location>
      </taglib>Next, the code for showProjectTeamTag.java:
    * showProjectTeam.java
    * Created on March 9, 2005, 10:46 AM
    package mil.usaf.rad.metrics.report;
    import java.io.*;
    import java.sql.*;
    import java.lang.Integer;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import javax.servlet.jsp.*;
    import javax.servlet.jsp.tagext.*;
    * @author  jason.ferguson
    public class showProjectTeamTag extends TagSupport
        public showProjectTeamTag()
            super();
        public int doAfterBody() throws JspException
            HttpServletRequest req = (HttpServletRequest) pageContext.getRequest();
            int pr_id = Integer.parseInt(req.getParameter("pr_id"));
            JspWriter out = pageContext.getOut();
            Connection conn = null;
            Statement stmt = null;
            ResultSet rs = null;
            try
               out.print("test");
               Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
               conn = DriverManager.getConnection("jdbc:odbc:Metrics");
            catch (Exception e)
                throw new JspException(e.getMessage());
            String queryGetTeam = "SELECT Projects.pr_id, Accounts.name AS Name, Sum(Schedule.hours) AS SumOfhours FROM tblTAAccounts AS Accounts INNER JOIN ((tblTAScheduleEntries AS Schedule INNER JOIN tblProjectRelease AS ProjectRelease ON Schedule.projectID = ProjectRelease.tblFKTimeAccntProject) INNER JOIN tblPMProjects AS Projects ON ProjectRelease.Release_ID = Projects.pr_id) ON Accounts.accountID = Schedule.accountID WHERE Projects.pr_id=" + pr_id + " GROUP BY Projects.pr_id, Accounts.name, ProjectRelease.Release_number, Projects.Project_name";
            try
                out.print(queryGetTeam);
                stmt = conn.createStatement();
                rs = stmt.executeQuery(queryGetTeam);
                if (rs == null)
                    out.print("No Results!");
                out.print("<table>\n");
                out.print("<tr>\n");
                out.print("<th>Name</th>\n");
                out.print("<th>Total Hours</th>\n");
                out.print("</tr>\n");
                while(rs.next())
                    out.print("<tr>\n");
                    out.print("<td>" + rs.getString("Name") + "</td>\n");
                    out.print("<td>" + rs.getInt("SumOfhours") + "</td>\n");
                    out.print("</tr>\n");
                out.print("</table>\n");
                rs.close();
                stmt.close();
                conn.close();
            catch (Exception e)
                throw new JspException(e.getMessage());
            return SKIP_BODY;
    }Finally, projectdetail.jsp, where the tag is called:
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@page import="java.sql.*" %>
    <%@page import="java.lang.Integer" %>
    <%@taglib uri="/WEB-INF/report.tld" prefix="report" %>
    <html>
    <head><title>Project Detail</title></head>
    <body>
    <h1 align="center">Project Status</h1>
    <h3>Project Description</h3>
    <report:showProjectInfo />
    <h3>Team Members</h3>
    <report:showProjectTeam />
    </body>
    </html>The first tag, <report:showProjectInfo />, works fine. However, I get no output whatsoever when the system encounters <report:showProjectTeam />. I am a relative newbie at this, so any help is appreciated.
    Jason

    It doesnt seem to matter if the code is in doStartTag(), doEndTag(), orr any of the other functions.
    I also put, as the first item in the function:
    System.out.println("TEST");Nothing.
    Just as an aside, here is the code for the <prefix:showProjectInfo />. Maybe I made a mistake in it? I closed the resultset and connection...
    import java.io.*;
    import java.sql.*;
    import java.lang.Integer;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import javax.servlet.jsp.*;
    import javax.servlet.jsp.tagext.*;
    * @author  jason.ferguson
    public class showProjectInfoTag extends BodyTagSupport
        public int doEndTag() throws JspException
            HttpServletRequest req = (HttpServletRequest) pageContext.getRequest();
            int pr_id = Integer.parseInt(req.getParameter("pr_id"));
            JspWriter out = pageContext.getOut();
            Connection conn = null;
            Statement stmt = null;
            ResultSet rs = null;
            try
               Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                conn = DriverManager.getConnection("jdbc:odbc:Metrics");
            catch (Exception e)
                throw new JspException(e.getMessage());
            String queryProjectInfo = "SELECT * FROM tblPMProjects WHERE pr_id=" + pr_id;
            try
                stmt = conn.createStatement();
                rs = stmt.executeQuery(queryProjectInfo);
                while (rs.next())
                    out.print("<table border=\"1\" style=\"border-collapse:collapse\">\n");
                    out.print("<tr>\n");
                    out.print("<td><b>Project Name:</b>" + rs.getString("Project_name") + "</td>\n");
                    out.print("<td align=\"right\"><b>RAD Number:</b>" + rs.getString("tblProjectNumber") + "</td>\n");
                    out.print("</tr>\n");
                    out.print("<tr>\n");
                    out.print("<td>Project description: " + rs.getString("Project_description") + "</td>\n");
                    out.print("</tr>\n");
                    out.print("<tr>\n");
                    out.print("<td>Customer: " + rs.getString("Customer_POC") + "</td>");
                    out.print("<tr>\n");
                    out.print("<tr>\n");
                    out.print("<td>Customer Unit: " + rs.getString("Customer_OFC") + "</td>\n");
                    out.print("</tr>\n");
                    out.print("<tr>\n");
                    out.print("<td>Customer Phone: " + rs.getString("Customer_phone") + "</td>\n");
                    out.print("</tr>\n");
                    out.print("</table>\n");
                    rs.close();
                    stmt.close();
                    conn.close();
            catch (Exception e)
                throw new JspException(e.getMessage());
            finally
                //conn.close();
            return SKIP_BODY;

  • Why doesn't the iTunes store accept my charge card number?

    iTunes store will not accept charge card number.

    The number itself may be fine, check all of the other details that you've entered match those on your statement.
    tt2

  • Why "DOESN'T" Firefox open a new Application in a "NEW TAB" Like it used to?

    I want a new tab ope for each app. I am using so I can just click on the tab, and continue to work on that app. I "Don't" want to use the "History" and then wait for it to "Reload" that tab!! I want my tabs all open until I close them. Also, why isn't there an"X" in the current tba to be able to close it??

    The setting in Tools > Options > Tabs: "New pages should be opened in": "a new tab/window" is for links that specify a target window to open the link.<br />
    That option allows you to divert such links to a new tab or to the current tab.<br />
    For other links use a middle-click or hold down Ctrl and left-click the link or use the right-click context menu.<br />
    Left-click a JavaScript link to avoid getting a blank tab.
    Some extensions that you can look at:
    * Tab Utilities Lite: https://addons.mozilla.org/firefox/addon/62581
    * Tabberwocky: https://addons.mozilla.org/firefox/addon/14439
    * Tab Mix Plus: https://addons.mozilla.org/firefox/addon/1122

  • Why doesn't my Macbook recognize/accept Snow Leopard 10.6.3?

    I am trying to load Snow Leopard 10.6.3 on my Macbook but it is not compatible.  Why?  When I purchased it there was
    no mention of system compatiblity issues that I recall, other than what was reasonably obvious.  I thought I did my homework.
    Am I hopefully just missing something?  Thank you in advance if anyone might know!

    No. it is my sister in law's Macbook. I installed OSX 10.6.3, then updated software but when completed it shut down and I have not been able to restart. i have reset the pram but that's about it. I will get the install disc and try that next. Thanks. BTW .. when I try to restart it goes thru the motions, gets to a blue screen but before the desk top sets up ... it goes to black with the curser in the upper left corner ... and frozen.
    Thanks again for your reply.

  • Why doesn't Premier Pro CS6 accept m2P videos?

    I have an m2P video that I can import directly into Premier Pro CS4 with no problem and work on but when I import it into Premier Pro CS6 I get the error:
                                 "There was an error decompressing audio or video"
    I've tried changing the extension  to mp2 and mpg but the result is the same.  I've tried converting the file to mpg with TMPGE, excluding the audio, and the result is still the same.  There seems to be something is some header that stops Premier Pro CS6 from accepting this file. Another m2P video I have behaves the same way.
    Does anyone know what this might be or how I can find it? 
    Thanks
    Steve

    Report back with the codec details of your file, use the programs below... a screen shot works well to SHOW people what you are doing
    http://forums.adobe.com/thread/592070?tstart=30
    For PC http://mediainfo.sourceforge.net/en or http://www.headbands.com/gspot/
    For Mac http://mediainspector.massanti.com/

  • Why doesn't the customer support menu-driven system offer an "opt-out" option for cases where none of the available options meets the customer's need?

    I have called customer support several times to get problems with my service plan corrected. None of the menu-driven options meets my needs, but the system does not offer a way to connect to a live rep. The only way to get to a live rep is to hit the "invalid selection" O key several times. Good customer service would include an "opt-out" choice.

        I'm sorry to learn that our phone system does not include an option for your specific concerns Windy1040! I can address all Verizon Wireless issues! How can I help you?
    AntonioC_VZW
    Follow us on Twitter at www.twitter.com/VZWSupport

  • Why doesn't this dialog box accept the input?

    This is probably very simple, but I am stumped. See the attached vi's - This is a work in progress, but I have two dialog boxes that appear to the user in a certain order. the first dialog asks for the number of sequences. Then the second dialog should appear the amount of times the user has selected so they can define each sequence. i.e - the first iteration should display a 1, the second iteration display a 2, and so on...
    Everything works fine except I want the current iteration to show up as a display to the user so they know which sequence they are currently working on - the control will only display a zero for some reason - even though I can place a probe in the main program that shows the correct sequence number.  
    Can anybody help me see what is going on?
    Thanks - Paul
    Attachments:
    MAIN PROGRAM.vi ‏16 KB
    Enter Number of Sequences popup.vi ‏32 KB
    Define Sequence popup.vi ‏51 KB

    Do not use the method to reinitialize all values to default in the subVI since it sets the control value to zero 
    LV 2011, Win7

Maybe you are looking for