Need some advise

Hi All,
I need some advise from you JAVA gurus. Here is the situation:
Our Java development team developed an application running on Weblogic 8.1 SP3. The application is contained in the ear file....which is perfect. They now wanted to go live in about 3 months from now. We were discussing plans how to it live but running into a major show stopper.
Our Linux/Unix weblogic support group do not support/ allow running any singleton java processes except whatever is running as weblogic instances.
Application development has a requirement to run these 5-7 singleton small little java program (currently i do not know exactly what these small little java processes does).
We have proposed that the application team should own these processes and they have to run it outside of the BEA weblogic servers (i.e these singleton processes are not allowed to run on our common Unix machines running WLS8.1 sp3).
We have only ONE option:
1) Run these small little singleton java processes somewhere else that will be owned by application team.
Questions:
1) What are the problems that may arise if these singleton processes do not co-exist with where the application server runs (hosting the application ear file)?
2) Is there any other ways of circumventing this problem (any other ways based on your expertise) ?
3) Also, iam trying to understand these singleton processes, so what questions should i ask before i have a head to head discussions with the application team ?
[any watch list??]
Thanks for all your help.
Take care.

duffymo/others,
I was initially confused with the term "singleton" ...what i meant to say was "stand along java processes". So, there is nothing singleton but this application has few stand alone java processes that the Linux/Unix team do NOT want to run where the weblogic managed instances are running.
So, say my weblogic servers are running on Host A and Host B each having 3-3 each BEA weblogic managed instances CLUSTERED...then these stand alone java processes IS NOT ALLOWED to run there.
I hope this time i am much clearer .... :)
Iam sorry .... i was totally confused with this term called "singleton" as i incorrectly misinterpreted as stand alone java processes ....sorry about that again.

Similar Messages

  • Need some advise for import video in Flash

    Hi guys, i got a problem with importing video in Flash.
    Actually I know how to import video in swf 
    There are 3 ways;
    1. loading external video with playback component
    2. embed FLV in SWF
    3. URL
    Ye i know second way is easy and fast but it needs to control everytime when the contents are changed or fixed.
    So best way for me and my work is first way
    Problem is when i use first way then move full swf file to another pc, just video (in the swf) doesn't play at all.(i'm sure it's from wrong file path)
    How to change the content path? I tried so many times but failed.. (just doesnt work and some error message appears on output)
    Should I install flash program in another pc then replace all the file?
    Please I need your advise
    Thanks

    I was able to tether my original Verizon Droid using EasyTether without needing to root the phone. The free version wont work with https sites, but its not expensive to buy the full version after you figure out if it will work. Its not fast but seems to work ok.
    Scott

  • Need some advise on a AEBS set up and LAN

    Ok.
    Signed up on DSL2+. I have a DSL modem i can bridge... i have 1x Airport Extreme (n + Giga LAN) and 1x Airport Express (n).
    My apartment is cabled with Cat 5e. Im looking to get the fastest experience both for WAN and LAN possible and am wanting to have a G and an N capable network (for legacy devices and mobiles)
    My thoughts, and where im looking to be challenged, is the best way to have the Thompson DSL modem set to bridge, and shoot the WAN to the Airport Extreme which would then distribute the IPs via DHCP. It would serve up N class wireless as well..
    now the part i need some direction on.. the airport express, I cant shoot an N signal to it if i want it to share via G... so can I use a giga lan port on the Extreme and then plug it into the express and get it to share the same lan via G?
    Message was edited by: Jono Haysom

    Hello Jono Haysom. Welcome to the Apple Discussions!
    now the part i need some direction on.. the airport express, I cant shoot an N signal to it if i want it to share via G... so can I use a giga lan port on the Extreme and then plug it into the express and get it to share the same lan via G?
    Yes. With the 802.11n AirPort Express Base Station (AXn) connected to the 802.11n AirPort Extreme Base Station (AEBSn) by Ethernet, AND with the AXn reconfigured as a bridge, wireless clients connected to the AXn will be on the same LAN subnet as those clients connected to the AEBSn.

  • Upgrade from DW8 to CS4. need some advise/info

    Since 1 year I`m using DW8 (Studio 8) as I started making websites with this program. (it is far much interesting as the progam I had before).
    This year I learned about PHP and databases and dynamic websites.
    I`m thinking of getting CS4.
    Now I have some questions for which I hope you can give me some info or advise :
    1) Can I only upgrade the DW8 out of Studio 8 upto CS4?
    2) Is there much difference between them.   Are the buttons or option to be found somewhere else or are they still in the same place?
    3) Can I still use my old page of DW8 in CS4?   Or do I need to convert or rebuild them?
    4) Any common bugs in CS4.  I do ask this one as I`m not that technical to overcome some bugs that seems easy to pro`s.
    Thanks in advance
    Kind regards
    martine

    No, that's not correct. "Upgrade" refers only to the price you pay. Regardless of which version you buy, the Studio 8 software remains on your computer, and can still be used.
    However, as I said before, you cannot run Dreamweaver 8 and Dreamweaver CS4 at the same time on a Windows computer. If, for some reason, you want to use Dreamweaver 8, you must close Dreamweaver CS4. After you have finished working with Dreamweaver 8, close it, and then you can relaunch Dreamweaver CS4.
    David,
    You are confusing me.
    With `full` version I mean : the higher price.
    With `upgrade` I mean the cheaper price.
    From the earlier messages I understood that an `upgrade` (thus the cheaper price) of 1 piece of Studio 8 is not possbile.
    So to have DW8  (out of Studio 8) changed into DW CS4 I have the following option :
    - I purchase the full (thus higher price) version of Dreamweaver CS4.   Then I can install CS4 and still all programs of Studio 8 can be used.
    or
    - I purchase an `upgrade` (thus the cheaper price) from Studio 8 to CS4 Web Standard.  Here we go from one suite to another and all programs are updated/upgraded.
    Hope I`m out of the confusion now.
    Martine    

  • Need some advise on JOB IN SAP BASIS.

    Hello SCN,
    My name is Pravin. I live in US and a citizen. Some of my friend's in IT convinced me to go into IT as it holds promising future. I recently completed a SAP BASIS training via IT consultant company. I found this company from SULEKHA.com My background is in BIOLOGY, so i'm switching gears here. I enjoy working with technologies. I am an END user for SAP ERP system in my current manufacturing job. Now I have learned the theory of SAP basis, not that i have mastered it, but i'm working toward it. i feel confident that i can find a solution or at least know where to look for answers for basis related job. however, can someone please advise me on how to approach or dive into the job market with no prior experience in SAP basis? are there companies willing to hire newbies? what else can i do to make myself visible? if you were in my shoes at some point in your career, what did you do? any thoughts, feedback is appreciated. I want to thank you in advance.

    Hi Pravin,
    Work hard in Basis concepts and try to get hands on as much as posible..
    And also try to learn some basics of atleast one database administration concepts..
    Or try to attend some interviews in some company in which they hire freshers and train them in SAP...
    Give your best..then sure you will be selected..There is nothing like impossible..
    Mark as helpfull Answer if it is :-D
    All the best for your career..

  • Need some advise - MSI K9N2 Sli Platinum

    Hello. I have some strange behavior of the system since the last week. Processor´s fan speeds up and down. Usualy is 3400-3600rpm; now speeds up to 5400-5600rpm and stay accelerate for a good while. I thought it could be some dust; yesterday I made a general cleaning of the hardware and also replaced the Thermaltake fan with another one which I have for replacement. The heatsink is firm, deos not have movements. The thermal grase is OCZ Freeze etc, something good,  seems to be hardened because heatsink stay firm. This was assembled some 16 month ago.
    I started again the PC, slow down the processor´s speed from OC 3.2Ghz to the basic 2.8 Ghz and the problem still go on. I thought this could be come system drivers problem, some sensor related. Then, I download the sys driver 15.49_nforce_winvista_win7_64bit_intern ational_whql from nVidia site and install it. Nothing, the problem is the same.
    also: http://i44.tinypic.com/120pix4.jpg
    The readings of Temperatures the TMPIN0 and TMPIN1, north and south bridge are ok. The TMPIN2 127°C is a dead sensor, it allways was like that from the beginning. Don´t pay attention to it.
    I´m really worried that thomething bad could happen and I have not a replacement for this mobo now.
    Could be some bad or crazy sensor which send some erroneous signal and that´s could be the origin of this situation?
    Does it exist the possibility the mobo get fried?
    I hope you´ll have the best advise for me.
    My best regards,
    Florin
    OS Windows 7 Ultimate x64
    MSI K9N2 Sli Platinum
    Phenom II x3 720 BE with Thermaltake Venus 12 cooler, 2.8Ghz
    4Gb (2x2Gb) Patriot (PVS24G6400LLKN) Extreme Performance Viper Series PC2-6400 CL4 DDR2-800 Dual Channel
    MSI nVidia GForce 9600GT / 512 Mb
    x2 WDigital Caviar Black bulk / sata 300 / 32Mb cache / 750Gb each
    DVD-RW Plextor px-810SA
    PS Xion Power Real 2.2 / 600W
    Aluminium case Viper XG with x3 120mm Ever Cool Spider fans (front, back, up)
    1 monitor LG Fantasy 19" / 4:3
    1 monitor Siragon 22" / 19:10
    Logitech 2.1 sound system (subwoffer + x2 three way speakers)
    Microsoft curve keyboard
    Microsoft IE mouse
    --I made you image clickable and
      fixed your link.  To see how, click the
      quote button, or edit if it's within an hour
      of your posting.
      Mike

    I'm confused.  You say to ignore the 127° reading, but then state you are concerned and talk about a false reading.  What reading and what exactly are you concerned with, the CPU temps?  If your system were getting that hot(127°C), you'd shut down or blow something.  I'm sure it's a false reading. 
    If you wish to remove the heatsink,  get something like Artic Silver 5 so you have a different paste to use.   Then, boot to the bios and leave it there for 15 minutes and shut down(you can simply hit the power off button this way).  Immediately, after shutdown, removing the power cord and pushing the power on button several times to drain the capacitors, try and remove the Heatsink carefully with some slight wiggle back and forth motion.  Hopefully, the heating of the TIM will make it pliable enough for easier removal.  DO NOT USE FORCE.

  • I'm in the process of creating a WiFi network from my IMac to my LG HDTV.  I am incorporating a LG WiFi capable Blu-ray player and will purchase an Apple Express or Apple Extreme router. I need some advise on using this aquipment.

    I need help in determining the best way to create a WiFi network from my IMAC to a WiFi capable LG Blu-Ray player that will connect to my LG HDTV.  Since I will only need one network I need to know which is the best Apple Airport router to use (Express or Extreme).  What is the correct way to connect these units?  It seem self explanitory,but I'm checking my thinking.  My HDTV is about 20' from where the airport router will be installed with a wall between them.  Has anyone created this network?  Is this the best way to create a WiFi network?

    I need help in determining the best way to create a WiFi network from my IMAC to a WiFi capable LG Blu-Ray player that will connect to my LG HDTV.  Since I will only need one network I need to know which is the best Apple Airport router to use (Express or Extreme).  What is the correct way to connect these units?  It seem self explanitory,but I'm checking my thinking.  My HDTV is about 20' from where the airport router will be installed with a wall between them.  Has anyone created this network?  Is this the best way to create a WiFi network?

  • My MacBook just shuts down! Need some advises...

    Hey guys,
    how are ya? I have a big time bad issue. Since yesterday my white MacBook (1,83 GHz, 1GB RAM) just shuts down, without any anouncements. When I tried to start it again, it stucks for some secs and then all of a sudden it shuts down again. Today I had some buddies here over. They saw my new Apple Macbook. I thought I show them some Apple style thangs. What happened after I showed them something on the internet??? It shuts down! Just like that! I felt like a piece of shoot. My buddies were laughing! And I thought: Oh no! Not again.
    What in gods name is that issue? Am I the only one? What shall I do? I just want a MacBook that works. Why did I switch? It's just like windows...

    I've used Macs for almost 20 years, and I've had to use PCs in recent years for work stuff. I thought the MacBook was the answer to my prayers. I sold a perfectly reliable iBook and Dell Inspiron to purchase the MacBook.
    Once they get the shutdown issues fixed, I think it'll be worth what I paid for it, but it's definitely frustrating. Don't lose faith in Apple. This kind of thing happens to everyone, but I sure do wish I had put off my MacBook purchase.
    I was supposed to have my logic board replaced on Monday, but guess what? The replacement logic board was defective.
    Ahhhhhhhhhhhhhhhhhhhhhhhhhrrrrrrrgggghhhhh!
    I swear, all I want is a public admission by Apple that they screwed up with some of the first MacBooks. Seriously. Everyone makes mistakes, and electronics can't always be perfect out of the box. I know that. I just the psychological satisfaction that will come with an admission on their part.
    It happened with the discoloration. I went into an Apple store with my "PinkBook" in early June, and they said it was obviously my fault. I can't wait to go back there and ask them how many stained MacBooks they've seen.
    CrapBook...I mean MacBook (1 gig RAM; 120 gig HD); 20" iMac Core Duo (1 gig RAM; 250 gig HD) Mac OS X (10.4.7)

  • PM8M3 Start-Up need some advise

    OK, it’s been a while sense I brought up a new mother board so bear with me.  Got a new PM8M3 and have the board powered up.
    Have memory plugged in and monitor, mouse and kbd’.  CPU fan runs OK but no video.  Shouldn’t the system boot up at this point so that I can enter setup?  Can’t find where to plug in the chassis speaker.  Shouldn’t the system beep once on boot?  There is a “Chassis Intrusion” switch jack, should this be jumpered out?  Are there any other jumper settings that must be in place to boot?
    Thanks

    Yup, read the manual. All questions will be answered there. No need to jumper out anything you do not have.

  • Need some advise and help Transferring files one mac to other

    I have created quite a problem for my self and can not seem to get out of it.
    I transferred my system from the G4 to the new Intel IMAC. Ended up with two accounts on the new Intel IMac. Was told to go to user/ and transfer files from one account to the other. Lost all of my files. Can not get the netscape back on with my bookmarks, Safari does not have any of my stored bookmarks, Quicken, Family Reunion are locked. Have done the permission repair. Still messed up.
    To add to this, I than decided to retransfer from G4 to Intel IMAC, but can not establish a target disk using Firewire. Follow the instructions holding T down and the screen comes up saying to reboot or shut down, it will not go to the target mode. And it does not appear that the G4 has a firewire extension now, it did two days ago. Can any one help?

    The Windows drive is probably formatted NTFS which is not natively writable
    by the Mac. It should be formatted as FAT32 to be usable on both.
    Dave

  • Need some advise on Multi-role server as a backup

    Hi,
    I am very new to Exchange 2013 deployment. So please excuse me if my terminology is not correct.
    My scenario is as such, I want to Split the CAS and the MBX roles for exchange into 2 separate servers. Let's call them MBX1 and CAS1
    Then, I want to have a 3rd, high-end server which would be part of the DAG and hold a copy of the MBX1 server's database. Also, I want this server to act as a CAS as well, but only if the original is down.
    So I read in the forums about how DAG works so my question is can a Multi-Role server be part of the DAG for MBX1? Can the same server also take over the CAS role only if CAS1 is down? How can I configure it to behave in this fashion?
    The deployment will also have a new AD server, currently there is no AD. So i am thinking of my overall architecture how it will function.
    I appreciate your comments and feedback!

    Hi 
    Here are the answers
    So I read in the forums about how DAG works so my question is can a Multi-Role server be
    part of the DAG for MBX1?
    Yes multirole servers can be a part of DAG 
    Can the same server also take over the CAS role only if CAS1 is down? How can I configure
    it to behave in this fashion
    Yes they also can function as CAS servers 
    The deployment will also have a new AD server, currently there is no AD. So i am thinking
    of my overall architecture how it will function.
    Its always recommended to have a DC installed separately
    For CAS high availability you can have 
    2 or more individual CAS servers together in a hardware or software LB
    for mailbox High availability you can have 
    3 or more mailbox servers combined together in a DAG in a same data-center or different data-center 
    Remember to mark as helpful if you find my contribution useful or as an answer if it does answer your question.That will encourage me - and others - to take time out to help you Check out my latest blog posts on http://exchangequery.com Thanks Sathish
    (MVP)

  • I don't know what i need. I'am a mac user but i need to run quick books premier. This is the only software i need in windows 7. Could i have some advise in  what is better for me, Bootcamp or parallels

    I don't know what i need. I'am a mac user but i need to run quick books premier. This is the only software i need in windows . Could i have some advise in  what is better for me, Bootcamp or Parallels

    The Intuit rep said they don't "support" QuickbooksPremier on a "virtual machine." Do you know what I risk by using it, anyway? thanks for the advice about Boot Camp vs Parallels, BTW!
    I use QuickBooks Pro for Mac, so I haven't had need to try any of the Windows versions in a VM. But I can't think why it wouldn't work. From within the VM, QuickBooks Premier would believe it is operating on PC hardware within Windows.
    I would guess they mean that the multiple user support wouldn't work from within the VM. But I would think that would also work. Windows can see the Internet from within the VM, which means it can see your network. So if Windows can see the network, then QB Premier should be able to, too.
    I know you can get Parallels as a demo, and maybe you could get QB Premier as trial software. So if you already have a retail copy of Windows to load into a VM, it would only cost you time to test what's possible.

  • TS3694 my i pad is showing connect to i tunes picture when i connect to i tunes it tells me i need to restore, but when i do it keeps coming up with error code!! which is a different one each time can anyone offer some advise to solve this frustrating pro

    my i pad is showing connect to i tunes picture when i connect to i tunes it tells me i need to restore to factory settings, but when i do it keeps coming up with error code!!   which is a different one each time can anyone offer some advise to solve this frustrating problem.

    iPad: Basic troubleshooting
    http://support.apple.com/kb/TS3274
    iTunes: Specific update-and-restore error messages and advanced troubleshooting
    http://support.apple.com/kb/TS3694
     Cheers, Tom

  • I am having trouble uploading am iPhoto book that I created.  It keeps concluding the upload by saying there has been an error and would I like to retry it or cancel.  After four "retrys" , I'm in need of some advise.

    I need some help probem solving as to why my I photo book won't upload to be printed by Apple.  It keeps saying there is an error at the very end of the upload and asks me if I want to retry or cancel.  Considering the hours spent creating the book and the fact that I can't transfer it to a different file, I seem to be stuck.  Ideas? 

    What version of iPhoto and of the OS?   Is the print products country in the advanced iPhoto preferences set correctly ?
    Have you previewed the book?  http://support.apple.com/kb/ph2486
    LN

  • 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;
    }

Maybe you are looking for

  • Safari Issues - Mavericks 10.9.1

    Hi everyone. I have been having major issues with Safari in the last week. Basically, when I first open the App, it doesn't open. It is displayed in the Menu Bar at the top as being open, but it's not. The only way I can actually get the Safari windo

  • Time Our Error while executing a BW reports.

    Hello BW experts , We are getting the 'Time Our Error while executing some  BW reports.' Could anyone help us to solve the above issue. regards, Amol.

  • Distorted images when printing

    I've been trying to get illustrator (13.0.2) to accurately print a black and white pattern. I've printed to a Lexmark color laser printer, an HP deskjet (both by tiling) and even taken the files to a local KinkoFedex store and had them printed out on

  • Video latency on mobile device

    I am working on an application that connects two peers in audio/video using rtmfp. When a peer wants to talk with another, first it exchanges peer-id and stream-name with the other and then publishes its microphone/camera (in “live” mode) and plays t

  • Lenovo G530 - problem with certain keys on keyboard

    hi everyone. I have a Lenovo G530 and I am having an odd problem with the keyboard.  If i press the spacebar when I type anything, i get the system date and time.  If I press the H button, I get a hn and i get nh when I press the N key.  Also get gb