Need some help/advice please

Hi,
I am trying to fix a friends computer. She has a MS-6385 m/b but the keyboard does not work. When trying to boot to ME. you just hear clicks when pressing a key.
If I boot from a W98 disk, I get a beep on each keypress. The CPU seems fine as it will load the W98 boot disk OS.
I was going to try a PS2 to USB converter, but the manual implies that the USB keyboard is disabled by default and I cannot get into the the BIOS to change it.
So I am asking for any advice as to how and try to fix this, or should I just bin the m/b and try and get another socket 423 m/b with rambus slots.
TIA

Using my keyboard though a KVM switch, which works fine on my network, so its not the kbd. I reckon the ps2 connection has gone belly up, so I'm stuffed for a fix.
Looks like I will need to get another board, I have found a 6339 board, which I might use or get the Asus P4t board.

Similar Messages

  • Array to grid works but need some help. Please help the beginner...

    Hi,
    I'm very green at this...
    I've been trying to display a two-dimmensional array on a dataGrid and finally found some code that I was able to modify to my needs.
    However couple things I don't understand.
    1. Do I need the <s:itemRenderer>...</s:itemRenderer> section to display the data? Can this be simplified?
       I don't need to change the default look of the columns etc. However it looks like the grid will not populate without that prepare() function.
       Why isn't this sufficient to populate the grid? -> dataGrid.dataProvider = new ArrayCollection(dataArray);
    2. The number of columns is hardcoded (3) and their headings are as well (N1, N2, N3).
       Can I show/hide columns at runtime based on number of columns in my array?
       Can I rename the column's headings at runtime?
    Thanks,
    Tom
    here's the code:
    <?xml version="1.0" encoding="utf-8"?>
    <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:mx="library://ns.adobe.com/flex/mx"
      xmlns:s="library://ns.adobe.com/flex/spark" title="HomeView">
        <fx:Script>
            <![CDATA[
                import mx.collections.ArrayCollection;
                import spark.components.gridClasses.CellPosition;
                import spark.components.gridClasses.CellRegion;
                // Create a dataProvider whose items are arrays of 6 random numbers. 
                // The DataGrid's item renderer will display item[columnIndex].
                private function initializeDataProvider():void
                    const nRows:int = 10;
                    const nCols:int = 3;
                    const dataArray:Array = new Array(nRows);
                    for (var row:int = 0; row < dataArray.length; row++)
                        var values:Array = new Array(nCols);
                        for (var col:int = 0; col < values.length; col++)
                            values[col] = Math.round(Math.random() * 10);
                        dataArray[row] = values;
                    dataGrid.dataProvider = new ArrayCollection(dataArray);
            ]]>
        </fx:Script>
        <s:DataGrid id="dataGrid" selectionMode="singleRow" initialize="initializeDataProvider()">
            <s:itemRenderer>
                <fx:Component>
                    <s:DefaultGridItemRenderer>
                        <fx:Script>
                            <![CDATA[
                                   override public function prepare(hasBeenRecycled:Boolean):void
                                   label = data[columnIndex];
                            ]]>
                        </fx:Script>
                    </s:DefaultGridItemRenderer>
                </fx:Component>
            </s:itemRenderer>
            <s:columns>
                <s:ArrayList>
                    <s:GridColumn headerText="N1" width="50"/>
                    <s:GridColumn headerText="N2" width="50"/>   
                    <s:GridColumn headerText="N3" width="50"/>   
                </s:ArrayList>
            </s:columns>
        </s:DataGrid>
        <s:Button id="cmd" x="128" y="502" width="122" label="Button" click="initializeDataProvider()"/>
    </s:View>

    Hi fouriron,
    Does this help?
    Formula in E2 (and Fill Down)
    =IF(D2<10,10, D2)
    If a value in column D is less than 10, then insert 10, else insert the value from column D
    The "correct" value (SUM) is in  column D
    The "required" Answer is in column E
    Regards,
    Ian.

  • Need some help quickly, please!

    I'm not exactly sure where to post the following, so I'm sorry if it's in the wrong place!
    So I helped my sister order an iBook and an iPod nano thinking the nano qualified for the Free iPod promotion. Anyways, it's not qualified so I want to cancel it.
    So here's where I'm unsure about some stuff:
    After I realized it wasn't part of the promotion, I went to my order status (my sister's actually, I made her an account) to try to cancel the nano. There was no button to review or change it.
    I noticed the status of the iBook said 'shipped' and the nano was 'processing order'. I'm guessing there was no change/review button because the iBook was shipped already? The Apple Customer Service closed and the order status on the nano changed to 'preparing shipment'.
    Ok, so, I'm gonna need to call Apple Customer Service in the morning and would like to know:
    What are my chances of being able to cancel it? By the way, the nano needs to be custom engraved so I'm hoping I can get it canceled before it does. Also, do you think I will be able to change the nano to the mini and still qualify for the promotion?
    Oh, one more thing: I am calling on behalf of my sister, so am I still able to cancel it for her? I do have all of the neccessary information.
    Any replies would help! the anxiety is getting to me!

    I ordered an iBook with extra 20Gb and an engraved iPod on 4th September. From the second after I ordered it until it was "shipped" the tracking system said it was "processing order". It was "shipped" 4 days later on 8th September. There was no in between such as "sent to manufacturing" or anything like that and believe me I was checking every hour of every day almost!! The tracking showed that my iBook was ready before my iPod and was shipped on its own to Europe without the iPod. The iPod significantly held the order up (I'm assuming it was cos it was engraved) so chances are you can still cancel it. Only thing is, even if you can cancel it, you may not qualify for the £100 rebate unless you can get them to actually change it to an iPod mini as you have to have them both appear on the same invoice in order to qualify. So if they say you can cancel it and then suggest you place another order for the mini separately that will be no good.
    My book and pod eventually arrives on 19 Sep, 15 days after I placed the order in case you're interested.

  • Pl/sql parameter portlet - need some help/advice - how to create

    I want to create a pl/sql portlet that accepts a parameter and on submit passes the parameter to other portlets (sql reports) these are then automatically run to display the new data.
    E.g.
    parameter portlet = deptno
    On submit
    Sql reports then refreshed using the parameter
    I am aware, and have tried the mycompnay demo, which works exactly as I want but the parameter portlet cannot be amended and is written in Java.
    I need a pl/sql equivalent so I can tailor the code.
    Any advice examples or guidance would be really appreciated.
    Thanks in anticipation.
    SD

    Hi,
    You can use a form portlet to accept parameters and then call a report in the success procedure of the form. In this example it calls a report with the value in the flightno field.
    declare
    flightno number;
    blk varchar2(10) := 'DEFAULT';
    begin
    flightno := p_session.get_value_as_varchar2(
    p_block_name => blk,
    p_attribute_name => 'A_FLIGHT_NO');
    call('SJDEMO30.report1.show?p_arg_names=flightno&p_arg_values='||
    flightno);
    end;
    Thanks,
    Sharmila

  • I need some help here please!

    i am working on a website thats going to be a friend loop
    such as facebook myspace classmate etc. im in the proccess of
    making the site now and i was wondering what i need to to to enable
    useres to be able to login and create a profile page on my site?
    how can i do this using DW2004 what am i looking at here? also
    anyone who would be interested in helping e-mail
    [email protected] we have the site up on a server but we are
    far from done

    > such as facebook
    > myspace classmate etc. im in the proccess of making the
    site now and i was
    > wondering what i need to to to enable useres to be able
    to login and create a
    > profile page on my site?
    hire a team of skilled programmers, put them in a cage and
    toss money at
    them.
    or spend a lot of time learning how to do it yourself.
    or try a free or commercial pre-written application
    http://www.hotscripts.com/search/?q=myspace&cat=All&page=1&sort=&license_typ
    e=free
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

  • ITunes Match is driving me nuts! I need some help here please!

    iTunes Match hast been stuck in the Step 2 forever, 17286 out of 17287 Songs Checked, it will always get stuck there, and this is everything I've tried so far to solve the issue:
    1) Stopping the process, and turning it back on again.
    2) Updating iTunes Match in the Store Menu.
    3) Signing out of the iTunes Store and signing back in.
    4) Quiting iTunes and restaring the application.
    5) Restarting the Mac.
    6) Converting all the "Waiting" iCloud Status songs to ACC 256 VRB kbps Version, deleting the originals, keeping just the converted ones.
    But nothing seems to work, it will just stay there and do nothing.
    I've managed to Match 13193 songs and Upload another 2964 songs, but once it has stopped uploading and here I am.
    Guys, if something similar has happened to you, and you've figured it out by doing something I haven't tried yet, please let me know, it will be much appreciated.

    Try the dedicated iTunes Match forum: https://discussions.apple.com/community/itunes/itunes_match

  • Powerbook G4 just Died. Need some help & advice!!

    Hope there's someone out there that can help me. I was working on my titanium Powerbook G4 and it just shut itself down (no warning sounds etc at all) and won't re-start. There's no sound from it at all. Even the green power cable light has stopped working. But the little glowing white light at the front (on the lid release) is still glowing. I've tried removing the battery and re-starting but to no avail (although with the battery removed the lid release light still works!). It's just dead. No sound at all. Has anybody any ideas what caused this?
    Is it a hard drive issue? - I've had hard drives fail before but the machine usually tries to boot up but this PBook is dead. Deceased.
    Can someone point me in the right direction?

    Hi, Andy. If the sleep light on your Powerbook is in the display latch, the PB is Aluminum, not Titanium. There's another set of forums for the Aluminum models here.
    Have you tried resetting the Power Manager?

  • I need some help/advice about a CS5 invalid Serial Number

    I recently purchased a CS5 Master Collection on ebay. Excited to get playing with it, I started to load it right away. When the window popped up asking for the serial number I punched it in and it showed as invalid! I retyped it and again invalid! So I checked the disc and in the notetab text file the serial number there was different than the one I had typed in off of the instruction paper. I typed that number in and the CS5 loaded! HOWEVER, once the CS5 was finished installing and I started up any program the window popped again asking for the serial number! Also on the same window it says on the bottom to (click here) for trial version and the days count down!!!
    The seller claims that I'm not installing it right and says when not installed correctly it acts like a trial version!
    I have uninstalled and reinstalled it 4 times and I get the same results!
    Can anyone offer any comments, suggestions?
    I would greatly appreciate it!
    Rich

    Welcome to our community
    You might try re-posting your issue in a forum where CS5 is discussed. This forum is used to discuss Adobe Captivate Installation issues.
    Click here to visit the Creative Suites forum
    Cheers... Rick

  • Need some help publishing please!

    Does anyone know how to fix this error?
    iweb/site/welcomefiles/navbar-separator1.png
    It pops up when trying to publish.
    I understand that it has something to do with my welcome page nav bar but I have no idea the details.
    Thanks!!
    belizegal

    If your error message is always the same, and always listing the same file as the problem, this is what I would try:
    Create a new page using the same template as the problem page.
    Use copy and paste to move all your personalized items (Pictures, text frames, etc) to the new page. Don't copy anything on the navbar.
    Once you have done this, delete the problem page.
    Try publishing.
    I would wait to change the new page's name to that of the old page until you have published once.
    I can't guarantee that it will work, but that is how I fixed a similar publishing error many months ago.
    Kabing

  • Need some help here please

    My computer was sent away for repairs and among other things (it was a very sick computer) it was reformatted. When I got my computer back I downloaded iTunes and plugged my iphone in. It recognised that i had a iphone and an account but I cannot do anything with it on itunes - I cant move the apps around, I cant put music on - nothing. If anyone knows how to fix this little it would be greatly appreciated.
    P.S I am about as far from computer savvy as you can get so step by step instructions would be a bonus lol

    By design, the iphone will sync itunes content with one computer at a time. Any attempt to sync such content with a second computer will result in ALL itunes content being first erased from your phone & then replaced with the content from the second computer. This is a design feature and cannot be overridden. The itunes content sync is one way: computer to phone. If you have photos that were synced to your phone or music ripped on your own that were not backed up, you will first have to extract them from your phone using third party software:
    http://www.wideanglesoftware.com/touchcopy/index.php
    Once you've done that, do the following in the order specified:
    1. Disable auto sync when an ipod/iphone is connected under preferences in itunes, which in windows is under the edit menu.
    2. Make sure you have one contact & one event in whatever programs you use for that purpose on your computer. The entries can be fake, doesn't matter, the important point is that these programs not be empty.
    3. Connect your phone, itunes running, do not sync at this point.
    4. Store>Authorize this computer.
    5. File>Transfer Purchases(To make sure all purchased content on your phone will be in your itunes library).
    6. Right click in the device pane & select reset warnings.
    7. Right click again and select backup.
    8. Right click again & select restore from backup, select the backup you just made. When prompted to create another backup, decline.
    9. This MUST be followed by a sync to restore your itunes content, which you select from the various tabs, You'll get a popup regarding your contacts & calendars asking to merge or replace, select merge.
    That's as good as it gets without a backup of your itunes library.

  • Need some help and guidance please!

    Hi everyone,
    I desperately need some help because I am at my wits end.   In September I purchased a Compaq Presario CQ60-450US.  Shortly after purchasing, I fresh installed Windows 7 Professional.  Recently I decided to tried to dual boot ubuntu on the machine only to find that the installation failed because of CD read error.  I know for a fact that the CD is not the issue because I have used this CD three other times to install ubuntu thus I came to the conclusion that the CD/DVD drive was bad.  
    I called HP support to get a new CD/DVD drive replaced only to spend 2 hours on the phone with a individual that decided to troubleshoot first trying to install ubuntu remotely (I informed the indiviual that the remote session would end), then by playing a DVD and "skipping throughout" the movie.  He/she said that she could see no issue.  (no diagnostic was run)I informed the individual that I had issues with buring as well.  He/she proceeded to go online and install software asking me to demonstrate the issue after which the call got dropped mysteriously.
    I called HP support back and told them that I am having an issue now burning.  They proceed to connect remotely and look at the software the previous support individual downloaded and said that the software was not supported by HP.  I informed the individual that I give permission to install any software needed to troubleshoot but the individual said that I could not be suppoted because I wasn't using the OS installed by HP.  I was instructed to recover my machine to the OS that was installed with the machine if I was to continue to get support.
    I informed the individual that the drivers and software are the same for either OS considering the CD/DVD rom is a plug and play device.  The individual refused to help and told me I had lost my warranty because of my decision to install an OS directly from Microsoft or a third paper vendor. 
    That is where I stand.  HP is refusing to give me support because I am not running their Vista Home edition even though my issue is hardware.  I cannot find any warrent information stating that I need to have the original operating system installed on the machine to receive support.   Can anyone point me to a reputable division that can help me with my issue?  I feel I was just thrown aside so that they don't have to initiate a repair.  If not has anyone filed a compalint against this outrageous support requirement?   

    Dear ndjumpball,
    I would like to say that I have some good -- or at least encouraging -- advice.  Regretfully, I do not.  I had issues with my dv7 practically since purchasing it a year ago specifically so I would have a reliable computer for school.  My first problem: I bought my laptop a mere 7 weeks before HP started offering their free upgrade to Windows 7.  Consequently, I was forced to purchase the full installation retail or continue to deal with the wonton freezes and system failures that inevitably occurred while I was working on homework -- courtesy of HP's installation of Vista Home Premium 64-bit.  Thankfully, I was able to purchase a copy of Windows 7 Professional 64-bit through a significant student discount offer from Microsoft, and I had my new OS downloaded the evening of October 23, 2009; I had to give their servers time to free up, since it seemed like everyone and their dogs were also downloading what the reviews posted on CNET and PC World touted as being more reliable.  I recall (I can't remember exactly which site this appeared) the statement, "Windows 7 is what Vista should have been from the beginning."
    I was all excited and happy now that I had a laptop for school that had everything I was looking for:  decent size hard drive, a fair amount of RAM, great 17.3" display with awesome colors, and a CDRW/DVDRW/Blu-Ray disk drive in the bay.  Not only was I very satisfied with the hardware; it also came with a decent host of software that are thought was pretty cool, too.  It came with CyberLink's DVD Suite 6 that I could activate simply by touching a soft button above the keyboard.  Aside from Vista Home Premium crashing on me at the most inopportune times, I was exceedingly happy with my $1000 purchase and investment.  Then came the "upgrade" to Windows 7 Professional 64-bit...Because I didn't have a "compatible" version of Vista, I had to do a full ("custom") install.  In other words, I lost all of the cool features I originally bought the machine for in the first place...no more cool one-finger's brush software activation (still don't have that working), and HP Chat Support told me the same thing they told you.  The following is a direct copy/paste quote from an email response I received from HP Total Care:  "In order to help you relevantly I would like to request you to please revert back to Vista operating system and check whether the issue is persisting or not.  If the issue is still persisting after reverting the operating system back to vista then we need to perform system recovery."
    After pursuing my case for 6 months -- finally getting my case escalated to two HP Customer Care Case Managers in Texas/Oklahoma -- the best "customer support" I received was what I'm sure was a truly heartfelt and sincere apology...  Oh, neither case manager was "able" to send me either the true upgrade disks that would have preserved the features purchased, nor were they willing to send me a stand-alone installation of the CyberLink’s DVD Suite 6 that is currently offered with the HP Pavilion dv6t Quad Edition series.  (In massive frustration and anger, I bought the CyberLink’s DVD software - $100 I didn't have to spend on something I had already bought...)
    A month later (late March), MY CD-RW/DVD-RW/Blu-Ray drive stopped working.  After an hour online with Customer Care, I had finally convinced the rep that the drive was working fine after my ditching Vista Home Premium, and that its failure had absolutely nothing to do with Windows 7 Pro.  After giving the guy my credit card number as security, I had a replacement drive shipped to me.
    My personal recommendation:  clearly state that the hardware failure had nothing to do with whatever software or OS you chose to install.  Bottom line:  your computer is only 8 months old and is still covered under warranty, they can replace the defective part, or you can return the entire machine.  You probably want to be the "Nice Guy" but you need to remind them that you have other brands available to purchase.
    I don't know if that helps or not, but thank you for giving me the opportunity to vent!  :-)

  • Remote App on iPad connects but drops after about  20 mins. Need to turn  off wait about 1 minute then turn on wifi on iMac before it can reconnect. Need some help please.

    Remote App on iPad connects but drops after about  20 mins. Need to turn  off wait about 1 minute, then turn on wifi on iMac before it can reconnect. Need some help please.
    Already gone through troubleshooting guide a zillion times. Thanks.

    This worked for me... A little time consuming but once you get rolling it goes GREAT... Thanks....
    I got my artwork and saved it to my Desktop
    Opened up Microsoft Paint and clicked on "File" and "Open" and found it to get it on the screen to resize it
    Clicked "resize" and a box for changing it opened up
    Checked the box "Pixels" and "Unchecked maintain aspect ratio"
    Set Horizontal for 640 and Vertical for 480
    Clicked on "OK" and went back to "File" and did a "Save As" and chose JPEG Picture
    It came up "File Already Existed" and clicked "OK" (really did not care about the original artwork I found because wrong size)
    Went to iTunes and on the movie right clicked on "Get Info", clicked on "Details", then "Artwork"
    Go to the little box on the top left that shows your old artwork and click on it to get the little blue border to appear around it and hit "Delete" to make it gone
    Click on "Add Artwork" and find it where you put the one from above on your Desktop and hit "Open" and OK and your new artwork is now there and all good.
    Sounds like a lot of steps to follow but after around 5 or so you will fly through it. This worked perfect on my iPhone 6 Plus and I have artwork on my Home Videos now.

  • Hi! I got movies on my external hard drive that are AVI kind and won't play on my macbook pro? need some help please!!

    Hi! I got Movies on my external hard drive that are AVI kind and won't play on my macbook pro? When I start playing the movie a message pops up and says "a required codec is not available". I tried flip4mac, xvid, divx already and still not playing my video. need some help please!! thanks.

    Although vlc mentioned above is a much more powerful and better player you could try installing Perian if you insist on using the quicktime player.  It may supply the codec it needs.
    Not sure why you wouldn't be able to play straight avi files though in quicktime.

  • Please I need some help with a table

    Hi All
    I need some help with a table.
    My table needs to hold prices that the user can update.
    Also has a total of the column.
    my question is if the user adds in a new price how can i pick up the value they have just entered and then add it to the total which will be the last row in the table?
    I have a loop that gets all the values of the column, so I can get the total but it is when the user adds in a new value that I need some help with.
    I have tried using but as I need to set the toal with something like total
        totalTable.setValueAt(total, totalTable.getRowCount()-1,1); I end up with an infinite loop.
    Can any one please advise on some way I can get this to work ?
    Thanks for reading
    Craig

    Hi there camickr
    thanks for the help the other day
    this is my full code....
    package printing;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.print.*;
    import javax.swing.*;
    import javax.swing.table.*;
    import java.text.DecimalFormat;
    public class tablePanel
        extends JDialog  implements Printable {
      BorderLayout borderLayout1 = new BorderLayout();
      private boolean printing = false;
      private Dialog1 dialog;
      JPanel jPanel = new JPanel();
      JTable table;
      JScrollPane scrollPane1 = new JScrollPane();
      DefaultTableModel model;
      private String[] columnNames = {
      private Object[][] data;
      private String selectTotal;
      private double total;
      public tablePanel(Dialog1 dp) {
        dp = dialog;
        try {
          jbInit();
        catch (Exception exception) {
          exception.printStackTrace();
      public tablePanel() {
        try {
          jbInit();
        catch (Exception exception) {
          exception.printStackTrace();
      private void jbInit() throws Exception {
        jPanel.setLayout(borderLayout1);
        scrollPane1.setBounds(new Rectangle(260, 168, 0, 0));
        this.add(jPanel);
        jPanel.add(scrollPane1, java.awt.BorderLayout.CENTER);
        scrollPane1.getViewport().add(table);
        jPanel.setOpaque(true);
        newTable();
        addToModel();
        addRows();
        setTotal();
    public static void main(String[] args) {
      tablePanel tablePanel = new  tablePanel();
      tablePanel.pack();
      tablePanel.setVisible(true);
    public void setTotal() {
      total = 0;
      int i = table.getRowCount();
      for (i = 0; i < table.getRowCount(); i++) {
        String name = (String) table.getValueAt(i, 1);
        if (!"".equals(name)) {
          if (i != table.getRowCount() - 1) {
            double dt = Double.parseDouble(name);
            total = total + dt;
      String str = Double.toString(total);
      table.setValueAt(str, table.getRowCount() - 1, 1);
      super.repaint();
      public void newTable() {
        model = new DefaultTableModel(data, columnNames) {
        table = new JTable() {
          public Component prepareRenderer(TableCellRenderer renderer,
                                           int row, int col) {
            Component c = super.prepareRenderer(renderer, row, col);
            if (printing) {
              c.setBackground(getBackground());
            else {
              if (row % 2 == 1 && !isCellSelected(row, col)) {
                c.setBackground(getBackground());
              else {
                c.setBackground(new Color(227, 239, 250));
              if (isCellSelected(row, col)) {
                c.setBackground(new Color(190, 220, 250));
            return c;
        table.addMouseListener(new MouseAdapter() {
          public void mouseClicked(MouseEvent e) {
            if (e.getClickCount() == 2) {
            if (e.getClickCount() == 1) {
              if (table.getSelectedColumn() == 1) {
       table.setTableHeader(null);
        table.setModel(model);
        scrollPane1.getViewport().add(table);
        table.getColumnModel().getColumn(1).setCellRenderer(new TableRenderDollar());
      public void addToModel() {
        Object[] data = {
            "Price", "5800"};
        model.addRow(data);
      public void addRows() {
        int rows = 20;
        for (int i = 0; i < rows; i++) {
          Object[] data = {
          model.addRow(data);
      public void printOut() {
        PrinterJob pj = PrinterJob.getPrinterJob();
        pj.setPrintable(tablePanel.this);
        pj.printDialog();
        try {
          pj.print();
        catch (Exception PrintException) {}
      public int print(Graphics g, PageFormat pageFormat, int pageIndex) throws PrinterException {
        Graphics2D g2 = (Graphics2D) g;
        g2.setColor(Color.black);
        int fontHeight = g2.getFontMetrics().getHeight();
        int fontDesent = g2.getFontMetrics().getDescent();
        //leave room for page number
        double pageHeight = pageFormat.getImageableHeight() - fontHeight;
        double pageWidth =  pageFormat.getImageableWidth();
        double tableWidth = (double) table.getColumnModel().getTotalColumnWidth();
        double scale = 1;
        if (tableWidth >= pageWidth) {
          scale = pageWidth / tableWidth;
        double headerHeightOnPage = 16.0;
        //double headerHeightOnPage = table.getTableHeader().getHeight() * scale;
        //System.out.println("this is the hedder heigth   " + headerHeightOnPage);
        double tableWidthOnPage = tableWidth * scale;
        double oneRowHeight = (table.getRowHeight() +  table.getRowMargin()) * scale;
        int numRowsOnAPage = (int) ( (pageHeight - headerHeightOnPage) / oneRowHeight);
        double pageHeightForTable = oneRowHeight *numRowsOnAPage;
        int totalNumPages = (int) Math.ceil( ( (double) table.getRowCount()) / numRowsOnAPage);
        if (pageIndex >= totalNumPages) {
          return NO_SUCH_PAGE;
        g2.translate(pageFormat.getImageableX(), pageFormat.getImageableY());
    //bottom center
        g2.drawString("Page: " + (pageIndex + 1 + " of " + totalNumPages),  (int) pageWidth / 2 - 35, (int) (pageHeight + fontHeight - fontDesent));
        g2.translate(0f, headerHeightOnPage);
        g2.translate(0f, -pageIndex * pageHeightForTable);
        //If this piece of the table is smaller
        //than the size available,
        //clip to the appropriate bounds.
        if (pageIndex + 1 == totalNumPages) {
          int lastRowPrinted =
              numRowsOnAPage * pageIndex;
          int numRowsLeft =
              table.getRowCount()
              - lastRowPrinted;
          g2.setClip(0,
                     (int) (pageHeightForTable * pageIndex),
                     (int) Math.ceil(tableWidthOnPage),
                     (int) Math.ceil(oneRowHeight *
                                     numRowsLeft));
        //else clip to the entire area available.
        else {
          g2.setClip(0,
                     (int) (pageHeightForTable * pageIndex),
                     (int) Math.ceil(tableWidthOnPage),
                     (int) Math.ceil(pageHeightForTable));
        g2.scale(scale, scale);
        printing = true;
        try {
        table.paint(g2);
        finally {
          printing = false;
        //tableView.paint(g2);
        g2.scale(1 / scale, 1 / scale);
        g2.translate(0f, pageIndex * pageHeightForTable);
        g2.translate(0f, -headerHeightOnPage);
        g2.setClip(0, 0,
                   (int) Math.ceil(tableWidthOnPage),
                   (int) Math.ceil(headerHeightOnPage));
        g2.scale(scale, scale);
        //table.getTableHeader().paint(g2);
        //paint header at top
        return Printable.PAGE_EXISTS;
    class TableRenderDollar extends DefaultTableCellRenderer{
        public Component getTableCellRendererComponent(
          JTable table,
          Object value,
          boolean isSelected,
          boolean isFocused,
          int row, int column) {
            setHorizontalAlignment(SwingConstants.RIGHT);
          Component component = super.getTableCellRendererComponent(
            table,
            value,
            isSelected,
            isFocused,
            row,
            column);
            if( value == null || value .equals("")){
              ( (JLabel) component).setText("");
            }else{
              double number = 0.0;
              number = new Double(value.toString()).doubleValue();
              DecimalFormat df = new DecimalFormat(",##0.00");
              ( (JLabel) component).setText(df.format(number));
          return component;
    }

  • TS2634 Please People I need some help.My iPod is disabled and when I connect it to iTunes it says: Itunes could not connect to the ipod because it is locked with a passcode...

    Please People I need some help.My iPod is disabled and when I connect it to iTunes it says: Itunes could not connect to the ipod because it is locked with a passcode...how can I do it?

    Place the iPod in Recovery mode and then restore.

Maybe you are looking for