I need some help setting up my server

Hi, i am very new to this and i need someone with alot of patience (hehe) To help me, i got given a cobalt raq as a present from my friend, they said it is very easy to set up, but knowing my luck i will struggle with it untill i can understand it better, so please could someone help me i will explain in more detail when you get in touch as i do not want to bore everyone one with my "Noobiness" on this situation, Thank's in advance,
Joe

Same answer as for these earlier two postings:
[From April 2007|http://forum.java.sun.com/thread.jspa?forumID=830&threadID=5163397]
[and from March 2008|http://forum.java.sun.com/thread.jspa?forumID=829&threadID=5277621]

Similar Messages

  • Need some help on JAVA CHAT SERVER

    i need some info about java chat server. Please any one who have developed give me the details about the logic and process flow.

    Have you read any of these?
    http://search.java.sun.com/search/java/index.jsp?qp=&nh=10&qt=%2B%22chat+server%22&col=javaforums

  • Need some help with a file server!

    Hi,
    I'm wanting to get a mac mini or the mac mini server (whichever is needed) and connect all of my random external drives i have lying about to it. Basically, i'm wanting to set up a mini file server that i can access from anywhere in the world. I have enough space with the external drives to store my music library, other general storage and maintain a backup of my OS drive and portable external that i carry around with me, but i don't know how i'd set it up so that i could access my hard drives and use them normally from anywhere.
    Also, with Mail Server, i'd like it if i could store all of my emails on the server computer and be able to access them on my Macbook. I don't know what i need though. For my needs, do i even need the server program or can i just use Lion (or even Snow Leopard if i choose) by itself? And if i did need the server, would i need it on just the server computer or both the server and my Macbook?
    Sorry if i haven't explained this very well, if you didn't fully understand just ask me and i'll try to rephrase it.
    Thanks in advance
    mr meister

    Be careful what you wish for.
    Either Mac OS X, or Mac OS X Server can act as a simple file server for your LAN.
    Granting access to external/remote users is largely a facet of setting access controls in your router to allow external clients to access your machine, but you have to consider the security implications of doing so - how do you make sure that you, and only you, access your data and not your local script kiddie down the street - or evem some hacker in China?
    HOWEVER, as simple as that may be, performance is going to be your issue.
    Local disks in your machine are typically connected on a bus that runs as several gigabits per second.
    Even the server on your LAN is connected to your client over, typically, a gigabit connection.
    However, your internet connection is likely to be measured in megabits per second... or two orders of magnitude lower than a local connection. You're really not going to want to use this for normal usage - e.g. accessing files - it's probably only practical for copying files to/from your machine.
    As for mail, there are a myriad of issues in running your own mail server, especially if you don't have your own domain and static IP addresses. I'd seriously defer that question until you're more settled in your server plans.

  • I need some help setting up a WiFi printer please

    Firstly, apologies for the long post but I’m really struggling with this one.
    I live in France and am trying to get wifi printing working on a friend’s Intel iMac (OSX Tiger 10.4.11) connected to a Lexmark X4875 printer. She’s connecting to the internet via Airport using a Livebox router, no problems. I’ve set up the printer to work wifi and that all 'appears' to be successful with the wifi light going to green as it should. I’ve also ‘associated’ the printer with the router by pressing the association button on the Livebox at the time of set-up and the printer is registered with the Livebox with correct MAC id.
    So far everything looks like it should work until I go ‘Add Printer’ and the wifi printer is never seen (no problems if connected via USB). I’ve reset the printer erasing all print settings and starting again, done numerous restarts of all devices and still no go.
    I should add that I have set up many wifi printers previously and even had this one working previously for over a year - it’s just that she had to get a new Livebox recently and now I can’t get it to work.
    I realise that not everybody will be familiar with the Livebox although they are common anywhere Orange operates as an ISP but I’m hoping that someone will have some nugget of information that will help me get this sorted.
    Thanks in advance for any advice, Paul.

    Bump! Anyone?

  • Need some help setting up my iphone 4

    im new to world ov iphones/ipods, iv never had anything to do with itunes or apple up until 2days ago, i got my new iphone 4 acouple of days ago, i went to set up my phone using my laptop until i discovered my lapto had broken n was unable to use it,
    i took my i phone to my GF's house to try and set up my i phone thru her laptop, which already had itunes on it( but a much older versio than the 1 i neeeded) iv never had an itune account befor (jst to let u kno)
    so i updated her itunes to version 9, which to seemed to do the trick, i got the basic apps on my phone when it had sync'd, but i didnt relise that this was all done undr the GF's old account details (which i never had the slightest clue about) so when ever i go on to app store and try t get some games/apps it ask for her password to her account, problem is she doesnt kno it and i do not want MY new iphone to b under her details which will renderr it useless, pls tell me i can fix this problem and how!!!!

    Go to Settings then to Store then log out and sign in with your iTunes account

  • Need some help setting up a windows wireless print

    HI:
    I am trying to print on a pc server. I go to print in the preferences, add a new printer, choose windows, then log in with my given username and password. Everything to this point works fine and the printer is fpound, recognized, and ready to print. But when I try to print to it, it just says on hold (authentication required).
    Any advice or suggestions?

    I am trying to add a windows printer too. Where exactly did you "login with your username and password" ?
    Thanks

  • Need some help setting up Starcraft 2

    First off I have read the wiki, https://wiki.archlinux.org/index.php/Starcraft2 ,
    My problem is that when I run
    wine Installer.exe
    I get the following error in a popup window :
    "Sorry, the installer was unable to start up. You may be out of hard drive space."
    I have 24.6GB of free space in /home.
    Also I tried running the install with a new .wine folder in combination with
    WINEPREFIX=/media/second_partition
    Where I have around 100GB free space. And I still get the same error
    Does anyone know what the problem could be ?
    Please help if you can...

    Seems this is a common issue also with WoW, but I couldn't get any clear solutions from my google searches other than is most likely has nothing to do w/ wine, because all the folks who run into this problem were using Windows e.g. http://us.battle.net/sc2/en/forum/topic/2267602124
    Last edited by karol (2011-04-12 01:02:12)

  • We have a set of oracle clients running on T5220 zones that need some help

    Greetings all -
    We have a set of oracle clients running on T5220 zones that need some help.
    If, for example, I execute the query "select (all) from dba_objects", trace output reports 90% of the elapsed time spent under "SQLNet message from client".
    Here are OS details for the clients: Solaris 10 5/08 s10s_u5wos_10 SPARC
    Running "uname -a" from the client gives:
    (SunOS bmc-ste-app 5.10 Generic_127127-11 sun4v sparc SUNW,SPARC-Enterprise-T5220)
    Here are OS details for the dataserver: Enterprise Linux Enterprise Linux Server release 5.2
    Running "uname -a" from the dataserver gives:
    (2.6.18-92.1.6.0.2.el5 #1 SMP Thu Jun 26 17:44:55 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux)
    The RDBMS is 10.2.0.4
    Again, please note, there is no application in the picture here. We are just running a simple catalog query (select * from dba_objects) from sqlplus. Why the wait on something like this? The wait also occurs when a different query is used (select (all) from SYS.COL$ where rownum < 50000). And it doesn't matter if I used the full client or the instant client. I still get the same high-wait.
    We had thought - maybe this is a network thing - so we put a test client on the same subnet as the dataserver. This helped - but not enough. The wait is still way too high even with firewalls taken out of the equation.
    We've also looked at arraysize, SDU, kernel settings. And we've spent time going over tkprof, truss and sqlnet-tracing.
    Has anyone ever had to solve this HIGH WAIT ON CLIENT issue? Is there a work around or some tweak I'm missing.
    Is anyone configured like we are (linux dataserver, solaris clients)? If so - did you see anything like this?
    tia -
    Jim
    Edited by: jim1768 on Mar 31, 2010 1:47 PM
    Edited by: jim1768 on Mar 31, 2010 2:12 PM
    Edited by: jim1768 on Mar 31, 2010 2:13 PM

    Hello,
    We have the exact same issue. Did you ever solve this issue? We have a t5220 and have just upgraded our 11.5.10.2 11i system on it from 9.2.0.8 32-bit sparc to 11.2.0.1 64-bit sparc. Things should be faster but arent, and our consultant has tracked it down to high wait times when the apps tier using forms connects to the database tier on the same box. So even though the t5220 is both server and client, there is something about the client sql connection.through TNS that his having trouble. Thanks for any information. We've also created an S/R with Oracle.
    Note: I am well aware of the other issues with the CMT server series but this particular issue seems independent of the regular / known issues and remains a mystery to us. Other known issues with the CMT servers for SPARC:
    Metalink Note 781763.1 (Migration from fast single threaded CPU machine to CMT UltraSPARC T1 & T2)
    http://blogs.sun.com/glennf/resource/Optimizing_Oracle_CMT_v1.pdf
    http://blogs.sun.com/glennf/tags/throughput
    http://blogs.sun.com/glennf/entry/getting_past_go_with_sparc
    http://www.oracle.com/apps_benchmark/doc/E-Bus-11i-PAY_ORA_SUN-T5220.pdf (this paper has some oracle init settings at the end. The kernel settings have been included in the OS upgrade)
    http://blogs.sun.com/mandalika/entry/siebel_on_sun_cmt_hardware

  • Ok i have indesign CS6 and all files are stored on a 10.7.5 MAC server.  This just started happening.  When I open a file indesigns is creating a textfile in the same folder?  I need some help on this.

    Ok i have indesign CS6 and all files are stored on a 10.7.5 MAC server.  This just started happening.  When I open a file indesigns is creating a textfile in the same folder?  I need some help on this.

    Ask in the ID forum and be much more specific about your configuration. there could be any number of reasons why manifests, temp files or restore files are created.
    Mylenium

  • Cannot get slide show in full screen mode to come up on secondary monitor regardless of how I set up show it always opens on primary screen.  Need some help here.

    Slide show in PowerPosint for mac 2011 on iMac will not open full screen mode on secondary monitor.  Regardless of how I set the slide show preferences it always opens on primary monior with secondardy monitor having totally balck screen.  Need some help if anyone else has run into this problem.

    You should contact Microsoft for Mac Support  and/or post in their forums.

  • HT1937 hello all....i need some help 2 can activate my 4s,i paid 4 unlock code and cant actvaite my phone ,the server support told me thats phone unlocked done.but apple server not say that..my imei 990001021636113

    hello all....i need some help 2 can activate my 4s,i paid 4 unlock code and cant actvaite my phone ,the server support told me thats phone unlocked done.but apple server not say that..my imei 990001021636113

    There is no such thing as an "unlock code" for an iPhone. It's done through iTunes after being approved by the carrier it is locked to.
    Go back to the carrier it is locked to and find out what the status is. If you paid someone else to unlock it, you got ripped off.

  • Need some help with Mail settings

    I need some help on what mail settings to use. Basically I want my Mac's Mail.app synced with my iPhone's mail.app and everything on the gmail server to be archived and have it so that i do not need to download all the archived emails that are on gmail to either mail.app, if anyone could help it would be appreciated.

    You are not alone. I can't get mail to work with our exchange server no matter what I do. I set Entourage up in less than 2 minutes by entering some simple information. I am using the latest versions of Leopard and Mail and it just refuses to connect.
    For instance, in Entourage I entered my user name, password and the exchange server name and that was it. Got my mail and it works great. Mail wants to know the SMTP server name? What SMTP server? No matter what information I put in that field it gives me an error saying it can'tr connect to the SMTP server. That is because it is an exchange server not an SMTP server I guess. Also, even when I enter the exact same information as I did with Entourage, mail refuses to connect with it saying to "check the connection". The connection works fine, as Entourage is having no problems sending or receiving mail. With Entourage there is a LDAP setting but no where in Mail can you enter what the LDAP server is. At least is doesn't use that terminology anywhere.
    What do you have to do to get Mail to work with an exchange server?

  • 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.

  • Need some help in creating Search Help for standard screen/field

    I need some help in adding a search-help to a standard screen-field.
    Transaction Code - PP01,
    Plan Version - Current Plan (PLVAR = '01'),
    Object Type - Position ( OTYPE = 'S'),
    Click on Infotype Name - Object ( Infotype 1000) and Create.
    I need to add search help to fields Object Abbr (P1000-SHORT) / Object Name (P1000-STEXT).
    I want to create one custom table with fields, Position Abb, Position Name, Job. Position Abb should be Primary Key. And when object type is Position (S), I should be able to press F4 for Object Abb/Object Name fields and should return Position Abbr and Position Name.
    I specify again, I have to add a new search help to standard screen/field and not to enhance it.
    This is HR specific transaction. If someone has done similar thing with some other transation, please let me know.
    There is no existing search help for these fields. If sm1 ever tried or has an idea how to add new search help to a standard screen/field.
    It's urgent.
    Thanks in advace. Suitable answers will be rewarded

    Hi Pradeep,
    Please have a look into the below site which might be useful
    Enhancing a Standard Search Help
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/daeda0d7-0701-0010-8caa-
    edc983384237
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee93446011d189700000e8322d00/frameset.htm
    A search help exit is a function module for making the input help process described by the search help more flexible than possible with the standard version.
    This function module must have the same interface as function module F4IF_SHLP_EXIT_EXAMPLE. The search help exit may also have further optional parameters (in particular any EXPORTING parameters).
    A search help exit is called at certain timepoints in the input help process.
    Note: The source text and long documentation of the above-specified function module (including the long documentation about the parameters) contain information about using search help exits.
    Function modules are provided in the function library for operations that are frequently executed in search help exits. The names of these function modules begin with the prefix F4UT_. These function modules can either be used directly as search help exits or used within other search help exits. You can find precise instructions for use in the long documentation for the corresponding function module.
    During the input help process, a number of timepoints are defined that each define the beginning of an important operation of the input help process.
    If the input help process is defined with a search help having a search help exit, this search help exit is called at each of these timepoints. If required, the search help exit can also influence the process and even determine that the process should be continued at a different timepoint.
    timepoints
    The following timepoints are defined:
    1. SELONE
    Call before selecting an elementary search help. The possible elementary search helps are already in SHLP_TAB. This timepoint can be used in a search help exit of a collective search help to restrict the selection possibilities for the elementary search helps.
    Entries that are deleted from SHLP_TAB in this step are not offered in the elementary search help selection. If there is only one entry remaining in SHLP_TAB, the dialog box for selecting elementary search helps is skipped. You may not change the next timepoint.
    The timepoint is not accessed again if another elementary search help is to be selected during the dialog.
    2. PRESEL1
    After selecting an elementary search help. Table INTERFACE has not yet been copied to table SELOPT at this timepoint in the definition of the search help (type SHLP_DESCR_T). This means that you can still influence the attachment of the search help to the screen here. (Table INTERFACE contains the information about how the search help parameters are related to the screen fields).
    3. PRESEL
    Before sending the dialog box for restricting values. This timepoint is suitable for predefining the value restriction or for completely suppressing or copying the dialog.
    4. SELECT
    Before selecting the values. If you do not want the default selection, you should copy this timepoint with a search help exit. DISP should be set as the next timepoint.
    5. DISP
    Before displaying the hit list. This timepoint is suitable for restricting the values to be displayed, e.g. depending on authorizations.
    6. RETURN (usually as return value for the next timepoint)
    The RETURN timepoint should be returned as the next step if a single hit was selected in a search help exit.
    It can make sense to change the F4 flow at this timepoint if control of the process sequence of the Transaction should depend on the selected value (typical example: setting SET/GET parameters). However, you should note that the process will then depend on whether a value was entered manually or with an input help.
    7. RETTOP
    You only go to this timepoint if the input help is controlled by a collective search help. It directly follows the timepoint RETURN. The search help exit of the collective search help, however, is called at timepoint RETTOP.
    8. EXIT (only for return as next timepoint)
    The EXIT timepoint should be returned as the next step if the user had the opportunity to terminate the dialog within the search help exit.
    9. CREATE
    The CREATE timepoint is only accessed if the user selects the function "Create new values". This function is only available if field CUSTTAB of the control string CALLCONTROL was given a value not equal to SPACE earlier on.
    The name of the (customizing) table to be maintained is normally entered there. The next step returned after CREATE should be SELECT so that the newly entered value can be selected and then displayed.
    10. APP1, APP2, APP3
    If further pushbuttons are introduced in the hit list with function module F4UT_LIST_EXIT, these timepoints are introduced. They are accessed when the user presses the corresponding pushbutton.
    Note: If the F4 help is controlled by a collective search help, the search help exit of the collective search help is called at timepoints SELONE and RETTOP. (RETTOP only if the user selects a value.) At all other timepoints the search help exit of the selected elementary search help is called.
    If the F4 help is controlled by an elementary search help, timepoint RETTOP is not executed. The search help exit of the elementary search help is called at timepoint SELONE (at the
    F4IF_SHLP_EXIT_EXAMPLE
    This module has been created as an example for the interface and design of Search help exits in Search help.
    All the interface parameters defined here are mandatory for a function module to be used as a search help exit, because the calling program does not know which parameters are actually used internally.
    A search help exit is called repeatedly in connection with several
    events during the F4 process. The relevant step of the process is passed on in the CALLCONTROL step. If the module is intended to perform only a few modifications before the step, CALLCONTROL-STEP should remain unchanged.
    However, if the step is performed completely by the module, the following step must be returned in CALLCONTROL-STEP.
    The module must react with an immediate EXIT to all steps that it does not know or does not want to handle.
    Hope this info will help you.
    ***Reward points if found useful
    Regards,
    Naresh

  • 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

  • DpSysAdmExtCreate: VMC (JAVA VM in WP) is not active

    Hi ABAP instant of ECC6 System is started but Java instant isn’t started please find below of dev_w0 And i found error in dev_w0 is “DpSysAdmExtCreate: VMC (JAVA VM in WP) is not active” and in dev_disp is “DpSysAdmExtInit: VMC (JAVA VM in WP) is not

  • Why won't my music sync to my iPhone from iTunes?!?

    I have been having such a hard problem with syncing my music from iTunes (which is up to date) to my iPhone 4S (which is also up to date). I have tried restoring my phone three times. It's recently backed up. All my music was wiped from my phone, on

  • Checking a functional index on a table and its metadata

    Hi, I have a functional based normal index (unique) defined on a table which uses a decode function and a combination of the columns of a table. Eg : decode (status, 'A', column1 || column 2, column1 || column2 || column3) Now my question is, how do

  • IPad Won't Stay Connected to Networks without Internet Access

    We use iPads for onsite demos with customers where we bring our own network using an ASUS WL-330N mobile router. iPads on iOS6 will connect to the router but then anything that touches the internet, it bumps it off the WiFi network. Upon reading some

  • Passing argument to main

    If i pass hi java as an argument to main then it is taken as two seperate argument with hi as first and java as second because of space between hi and java. How do i pass hi java as one argument itself