Display problem in JAVA

Hi
I am displaying a page with large set of records say 100-150 and when i dispay the records in the form of table only after all the records are retreived i get the full table. for example
out.println("<table>");
while(rs.next())
out.println("<tr><td>"+rs.getString("aa")+"</td></tr>");
out.println("</table>");
I get the full table display only after all the records are retreived.I would like to display the rows of table as soon as that particlular record is retreived so that user need not wait till all the records are processed.

Well, you can always write to Microsoft and Mozilla and ask them to change their browser code to not have to wait til it gets the end table tag before laying out the page. But I don't think you'll get much out of that route.
Of course, if you have fixed column sizes, then you can start a new table after every X rows or so to fake it.

Similar Messages

  • I have a problem with Java and an e-procurement system integrating

    I use an e-procurement system at work and yesterday I could not get my parts list from the suppliers web site to display in our in-house eprocurment finance package.
    There is not a problem with the finance package. There is not a problem with the suppliers web site. I have verified both of these by other colleagues being able to complete what I am trying to do.
    The difference between my version of Firefox and my colleagues' is that I am on version 6.0.1 and they are on 6.0.
    I have had problems with Java not displaying certain animations on the suppliers web site but, my colleague does not and I am suspicious that this is the problem. Can anyone verify this please and what can I do about it. My Java updates are up-to-date as of yesterday and are automatic.
    Thanks.

    I was quite amazed I never got a reply to this, in the past people here have been helpful. In any case I was finally able to enter this website on the exceptions list in the Java panel, and I believe it is okay  now.

  • Display problem in JRE1.5 same works with 1.4.2

    I have a complex swing GUI code with JTree that has display problem. The code works well with JRE1.4.2. When opened with JRE1.5_<> the display is not working. Resizing with a mouse displays though. Programmatic resize doesn't work.

    I suggest you compile with 1.5 using the appropriate values of the -source and -target options to the javac command that cause it to emit 1.4 code - and see what happens.
    And also review the changes and bug fixes made between the two Java versions that you're comparing, looking for changes that account for the difference you're seeing.

  • Problem installing Java Applications

    Hi there, i have problems installing Java Applications (from Ovi and from another source). The Apps from stores quit with just "there was a error", the other App is more detailed:
    Interner Fehler: Jsr plugin com.nokia.mj.impl.chapi.core.utils.
    ServiceProviderInstaller cancelled installation
    Is it possible that the Java-Handler is missing or faulty? Can this handler be manually installed? Thanks Gerd (E7-00 Anna, clean installation after hardreset)
    Solved!
    Go to Solution.

    Sorry about my previous answer, as it's not really an efficient solution.
    Skyee put the solution for this issue in another thread
    FA136376 I am unable to install any Java apps after the Symbian Anna upgrade, how to fix this?
    After upgrading Symbian Anna and starting the Java installation file on the Nokia Symbian^3 device, the following error message may be displayed: Installation failed – internal error: Jsr plugin com.nokia.mj.jmpl.chapi.core.utils.ServiceProviderInstaller cancelled installation. To fix this, install the following java_symbian_anna_fix.sis file: http://dl.nokia.com/ns/java_symbian_anna_fix.sis .
    Note: During the installation the file will give the warning message: Application not compatible with phone. Continue anyway. Select yes to proceed.

  • Problem with java print

    Hi, I'm have problems with java print (g2d). For example i want to print a String "ABC**************************DEF" on paper size 80mm width (invoice paper). I can print all that string with paper A4 size, but with paper size 80mm i have problem with that String, the result is "C*****************D" lost AB and EF. I think i had problem with paper size, pls help me. Thank you so much.
    My code is below:
    package app.util;
    To change this template, choose Tools | Templates
    and open the template in the editor.
    @author HUU NGHIA
    // Printing Sample code
    // This code demonstrates the Java 2 print mechanism
    import com.connection.Product;
    import java.awt.;
    import java.awt.print.;
    import java.text.SimpleDateFormat;
    import java.util.Date;
    import java.util.Vector;
    // Define a class that is called per page that needs printing. It implements
    // the one and only method in the Printable interface : print. Note that
    // this is quite separate from the PrinterJob class print() method.
    // This method does not actually do any printing. All it does is write text
    // and/or graphics onto the passed page (graphics context). The calling
    // printer job object will then pass this page to the printer.
    public class PrinterController {
    public static void print(Vector<Product> products) {
    // Create an object that will hold all print parameters, such as
    // page size, printer resolution. In addition, it manages the print
    // process (job).
    PrinterJob job = PrinterJob.getPrinterJob();
    // It is first called to tell it what object will print each page.
    job.setPrintable(new PrintObject(products));
    // Then it is called to display the standard print options dialog.
    if (job.printDialog()) {
    // If the user has pressed OK (printDialog returns true), then go
    // ahead with the printing. This is started by the simple call to
    // the job print() method. When it runs, it calls the page print
    // object for page index 0. Then page index 1, 2, and so on
    // until NO_SUCH_PAGE is returned.
    try {
    job.print();
    } catch (PrinterException e) {
    e.printStackTrace();
    class PrintObject implements Printable {
    Vector<Product> products;
    public PrintObject(Vector<Product> products) {
    this.products = products;
    public int print(Graphics g, PageFormat f, int pageIndex) {
    Graphics2D g2 = (Graphics2D) g; // Allow use of Java 2 graphics on
    // the print pages :
    System.out.println("f.getImageableX(): " f.getImageableX());
    // A simple circle to go on the second page (index = 1).
    switch (pageIndex) {
    case 0:
    printInvoiceTemplate(g2, products);
    return PAGE_EXISTS;
    // case 1 : g2.setColor(Color.red); // Page 2 : print a circle
    // g2.draw(circle);
    // return PAGE_EXISTS;
    default:
    return NO_SUCH_PAGE; // No other pages
    public String getDate(){
    Date d = new Date();
    SimpleDateFormat sp = new SimpleDateFormat("dd/MM/yyyy hh:mm:ss");
    return sp.format(d);
    private void printInvoiceTemplate(Graphics2D g2, Vector<Product> products) {
    //System.out.println("#######" cardInfo.getTranType());
    int alignY = 40;
    int alignXCenter = 60;
    int enterSpace = 15;
    int xProductName = 10;
    int xUnit = 85;
    int xAmt = 110;
    int xTotal = 155;
    int yEndData = 0;
    int totalAll = 0;
    g2.setColor(Color.black); // Page 1 : print a rectangle
    g2.setFont(new Font("Verdana", 0, 8));
    g2.drawString("ABC", alignXCenter, alignY);
    g2.drawString("123WWW", alignXCenter, alignY enterSpace *1);
    g2.drawString("Phone: (08)62891633", alignXCenter, alignY enterSpace*2);
    g2.setFont(new Font("Verdana", 1, 12));
    g2.drawString("Invoice", alignXCenter - 10, alignY enterSpace*4);
    products = new Vector<Product>();
    for (int i = 0; i < 10; i+) {
    Product product = new Product();
    product.setProductName("ZESTORETIC TAB 20MG B/28" i);
    product.setUnit("v"+i);
    product.setAmt(5+i);
    product.setPrice(50000+i);
    products.add(product);
    for (int i = 0; i < products.size(); i+) {
    System.err.println(i);
    int total = products.get(i).getAmt()*products.get(i).getPrice();
    g2.drawString(i+1+"."products.get(i).getProductName(), xProductName+2, alignY enterSpace(8+(i*2)));
    g2.drawString(products.get(i).getUnit(), xUnit+5, alignY enterSpace*(9(i*2)));
    g2.drawString(products.get(i).getAmt()"x"+AppUtils.formatPrice(products.get(i).getPrice())"", xAmt+5, alignY enterSpace*(9(i*2)));
    g2.drawString(AppUtils.formatPrice(total), xTotal+15, alignY enterSpace*(9(i*2)));
    yEndData = 9+(i*2);
    totalAll = totalAll total;
    System.out.println(yEndData);
    g2.drawLine(xProductName, alignY enterSpace*(yEndData 1), 210, alignY enterSpace*(yEndData 1));
    g2.drawString(AppUtils.formatPrice(totalAll)" VND", xAmt, alignY enterSpace*(yEndData 2));
    g2.drawString("Thank you", alignXCenter, alignY enterSpace*(yEndData 4));
    g2.drawString("***", alignXCenter 30, alignY enterSpace*(yEndData + 5));
    public static void main(String[] args) {
    PrinterController.print(null);
    }

    When you posted you didn't use code tags, as a result the forum software has interpreted some of your characters in your program as screen formatting codes and has corrupted your post--the most easily observable change is the bolded characters in you post. Please repost your code using code tags so people will be helping with uncorrupted code.

  • Discussion Forum Portlet - Problems with JAVA and UTF8?

    Hi
    I installed the Discussion Forum Portlet successfully. It also seems that almost everything works fine. There's only a problem if I have new posts that include special German characters (Umlaute) like ä, ö, ü or special French characters like é, è or ç. They are saved correctly in the table but if you view the post the characters are not displayed correctly.
    Example
    input: ça va?
    result: ça va?
    I know that there are problems with Java and UTF8 Database. Is there a possibility to change this (bug)?
    Regards
    Mark

    Here's what I got. I don't see anything that helps but I'm kinda new to using SQL and java together.
    D:\javatemp\viddb>java videodb
    Problem with SQL java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver
    ] Syntax error in CREATE TABLE statement.
    Driver Error Number-3551
    java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Syntax error in
    CREATE TABLE statement.
    at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source)
    at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source)
    at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(Unknown Source)
    at sun.jdbc.odbc.JdbcOdbcStatement.execute(Unknown Source)
    at sun.jdbc.odbc.JdbcOdbcStatement.executeUpdate(Unknown Source)
    at videodb.main(videodb.java:31)
    D:\javatemp\viddb>

  • Display Problems with CellRenderer for JList and JRE 1.2.2

    I'm using a CellRenderer to handle a JList as below. The problem is that with the JRE 1.2.2, I'm getting bizarre artifacts like choosing an item in the list and having every item above it go bold, then choosing another item in the list and having all items go unbold. This works fine with the JDK, but when run with the JRE the cell renderer goes amok. Any suggestions? Could it just be my card? (the Matrox G400 Max is documented to have Java display problems) or did I miss something in the class? Thanks.
    class EB_ListCellRenderer extends JLabel implements ListCellRenderer, EditorConstants{
    private final String[] text;
    private Font plain = new Font("Arial",Font.PLAIN,12);
    private Font bold = new Font("Arial",Font.BOLD,12);
    public EB_ListCellRenderer(String[] text) {
         this.text = text;
    public Component getListCellRendererComponent(JList list,Object value, int index,boolean isSelected,boolean cellHasFocus)
         setText(text[index]);
         setEnabled(true);
         setOpaque(true);
         setForeground(FOREGROUND);
         if (isSelected) {
         setFont(bold);
    setBackground(SELECTED);//color
         } else {
         setFont(plain);
         setBackground(UNSELECTED);
         return this;

    I found a solution for Matox Gxx cards. If you lower the hardware accelleration down one notch, it will most likely help you to display java gui's correctly.
    Hope this helps.
    ..ec

  • Wierd lines on my display and frequent lock-ups w/ and w/o display problems

    When booting I sometimes get weird lines and blocks on my display (the GRAY Apple screen) and then it hangs, other times the computer will boot and run fine for 20-30 minutes and then the display goes wonkers with blocks and lines and the computer does not respond. The only way I can get it to boot is to reset the PRAM by letting it CHIME 3x and then occasionally it will boot without issue and run, while other times I still get the blocks and lines on the display.
    When I am able to get it to recover and re-boot after the lock-up and display problems and occasionally the box in the middle asking me to re-boot similar to a kernel panic the OPS gives me the option to REPORT the error and here is the error for others who would know more...
    Thank you in advance,
    Darren
    Interval Since Last Panic Report: 104960 sec
    Panics Since Last Report: 5
    Anonymous UUID: 7D1AEF43-7E19-4F58-A1E0-48FA992A2814
    Wed Nov 18 15:49:50 2009
    panic(cpu 0 caller 0x9cdb10): NVRM[0/1:0:0]: Read Error 0x00009410: CFG 0xffffffff 0xffffffff 0xd2000000, BAR0 0xd2000000 0x5d3e2000 0x084700a2, D0, P1/4
    Backtrace (CPU 0), Frame : Return Address (4 potential args on stack)
    0x5c99b7d8 : 0x21b2bd (0x5cf868 0x5c99b80c 0x223719 0x0)
    0x5c99b828 : 0x9cdb10 (0xbb7fec 0xc209c0 0xbc3660 0x0)
    0x5c99b8c8 : 0x147690d (0x8b5ac04 0x7edf004 0x9410 0xabd962)
    0x5c99b908 : 0x1534e6a (0x7edf004 0x9410 0x5c99b968 0x9)
    0x5c99b948 : 0xb51ca5 (0x7edf004 0x91ed004 0x0 0x0)
    0x5c99b968 : 0xac155b (0x91ed004 0x5c99baa4 0x0 0x0)
    0x5c99b9b8 : 0x145f290 (0x7edf004 0x3d0900 0x5c99baa4 0x0)
    0x5c99bad8 : 0xab2821 (0x7edf004 0x91cf004 0x815200c 0x200)
    0x5c99bb18 : 0xb1f172 (0x7edf004 0x91cf004 0xeb9bcc0 0xeb9bc04)
    0x5c99bbc8 : 0xb202db (0x7edf004 0x91f0404 0x0 0x0)
    0x5c99bc58 : 0x14bb7a3 (0x7edf004 0x91f0404 0x9 0x2)
    0x5c99bd68 : 0x14ed407 (0x7edf004 0x91cf404 0x0 0x0)
    0x5c99be98 : 0xad3934 (0x7edf004 0x91ca404 0x0 0x0)
    0x5c99bec8 : 0x9d61fb (0x7edf004 0x91ca404 0x0 0x0)
    0x5c99bf08 : 0x5491b5 (0x0 0x9499680 0x1 0x29c50a)
    0x5c99bf58 : 0x5481e6 (0x9499680 0x1 0x5c99bf88 0x547d9d)
    0x5c99bf88 : 0x548640 (0x8abaf00 0x7e9ecc0 0xe780850c 0x2a6e5f)
    0x5c99bfc8 : 0x29d68c (0x8abaf00 0x0 0x10 0x88bbfc4)
    Kernel Extensions in backtrace (with dependencies):
    com.apple.nvidia.nv50hal(6.0.6)@0x136b000->0x17f1fff
    dependency: com.apple.NVDAResman(6.0.6)@0x96f000
    com.apple.NVDAResman(6.0.6)@0x96f000->0xc21fff
    dependency: com.apple.iokit.IOPCIFamily(2.6)@0x932000
    dependency: com.apple.iokit.IONDRVSupport(2.0)@0x961000
    dependency: com.apple.iokit.IOGraphicsFamily(2.0)@0x943000
    BSD process name corresponding to current thread: kernel_task
    Mac OS version:
    10C540
    Kernel version:
    Darwin Kernel Version 10.2.0: Tue Nov 3 10:37:10 PST 2009; root:xnu-1486.2.11~1/RELEASE_I386
    System model name: MacBookPro3,1 (Mac-F4238BC8)
    System uptime in nanoseconds: 3788331456483
    unloaded kexts:
    com.apple.driver.AppleFileSystemDriver 2.0 (addr 0xf02000, size 0x12288) - last unloaded 94521475551
    loaded kexts:
    org.virtualbox.kext.VBoxNetAdp 2.2.2
    org.virtualbox.kext.VBoxNetFlt 2.2.2
    org.virtualbox.kext.VBoxUSB 2.2.2
    org.virtualbox.kext.VBoxDrv 2.2.2
    com.bresink.driver.BRESINKx86Monitoring 5.0
    com.pctools.iantivirus.kfs 1.0.1
    com.apple.driver.AppleHWSensor 1.9.2d0 - last loaded 31800108689
    com.apple.filesystems.ntfs 3.1
    com.apple.filesystems.autofs 2.1.0
    com.apple.driver.AppleHDA 1.7.9a4
    com.apple.driver.AirPort.Atheros 412.19.4
    com.apple.kext.AppleSMCLMU 1.4.5d1
    com.apple.driver.SMCMotionSensor 3.0.0d4
    com.apple.DontSteal_Mac_OSX 7.0.0
    com.apple.driver.AudioIPCDriver 1.1.2
    com.apple.driver.AppleIntelMeromProfile 19
    com.apple.driver.ACPISMCPlatformPlugin 4.0.1d0
    com.apple.driver.AppleLPC 1.4.9
    com.apple.driver.AppleBacklight 170.0.14
    com.apple.driver.AppleUpstreamUserClient 3.1.0
    com.apple.GeForce 6.0.6
    com.apple.driver.AppleUSBTrackpad 1.8.0b4
    com.apple.driver.AppleUSBTCKeyEventDriver 1.8.0b4
    com.apple.driver.AppleUSBTCKeyboard 1.8.0b4
    com.apple.iokit.SCSITaskUserClient 2.6.0
    com.apple.BootCache 31
    com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0d1
    com.apple.iokit.IOAHCIBlockStorage 1.6.0
    com.apple.iokit.AppleYukon2 3.1.14b1
    com.apple.driver.AppleAHCIPort 2.0.1
    com.apple.driver.AppleSmartBatteryManager 160.0.0
    com.apple.driver.AppleIntelPIIXATA 2.5.0
    com.apple.driver.AppleUSBHub 3.8.4
    com.apple.driver.AppleFWOHCI 4.4.0
    com.apple.driver.AppleUSBEHCI 3.7.5
    com.apple.driver.AppleUSBUHCI 3.7.5
    com.apple.driver.AppleEFINVRAM 1.3.0
    com.apple.driver.AppleRTC 1.3
    com.apple.driver.AppleHPET 1.4
    com.apple.driver.AppleACPIButtons 1.3
    com.apple.driver.AppleSMBIOS 1.4
    com.apple.driver.AppleACPIEC 1.3
    com.apple.driver.AppleAPIC 1.4
    com.apple.security.sandbox 0
    com.apple.security.quarantine 0
    com.apple.nke.applicationfirewall 2.1.11
    com.apple.driver.AppleIntelCPUPowerManagementClient 96.0.0
    com.apple.driver.AppleIntelCPUPowerManagement 96.0.0
    com.apple.driver.DspFuncLib 1.7.9a4
    com.apple.driver.AppleProfileReadCounterAction 17
    com.apple.driver.AppleProfileTimestampAction 10
    com.apple.driver.AppleProfileThreadInfoAction 14
    com.apple.driver.AppleProfileRegisterStateAction 10
    com.apple.driver.AppleProfileKEventAction 10
    com.apple.driver.AppleProfileCallstackAction 20
    com.apple.iokit.IOFireWireIP 2.0.3
    com.apple.iokit.IO80211Family 310.6
    com.apple.iokit.IOSurface 73.0
    com.apple.iokit.IOBluetoothSerialManager 2.2.4f3
    com.apple.iokit.IOSerialFamily 10.0.3
    com.apple.iokit.IOAudioFamily 1.7.2fc1
    com.apple.kext.OSvKernDSPLib 1.3
    com.apple.driver.AppleHDAController 1.7.9a4
    com.apple.iokit.IOHDAFamily 1.7.9a4
    com.apple.iokit.AppleProfileFamily 41
    com.apple.driver.AppleSMC 3.0.1d2
    com.apple.driver.IOPlatformPluginFamily 4.0.1d0
    com.apple.nvidia.nv50hal 6.0.6
    com.apple.NVDAResman 6.0.6
    com.apple.iokit.IONDRVSupport 2.0
    com.apple.iokit.IOGraphicsFamily 2.0
    com.apple.driver.CSRUSBBluetoothHCIController 2.2.4f3
    com.apple.driver.AppleUSBBluetoothHCIController 2.2.4f3
    com.apple.iokit.IOBluetoothFamily 2.2.4f3
    com.apple.iokit.IOUSBHIDDriver 3.8.4
    com.apple.driver.AppleUSBMergeNub 3.8.5
    com.apple.driver.AppleUSBComposite 3.7.5
    com.apple.iokit.IOSCSIMultimediaCommandsDevice 2.6.0
    com.apple.iokit.IOBDStorageFamily 1.6
    com.apple.iokit.IODVDStorageFamily 1.6
    com.apple.iokit.IOCDStorageFamily 1.6
    com.apple.driver.XsanFilter 402.1
    com.apple.iokit.IONetworkingFamily 1.9
    com.apple.iokit.IOATAPIProtocolTransport 2.5.0
    com.apple.iokit.IOSCSIArchitectureModelFamily 2.6.0
    com.apple.iokit.IOAHCIFamily 2.0.2
    com.apple.iokit.IOATAFamily 2.5.0
    com.apple.iokit.IOUSBUserClient 3.8.5
    com.apple.iokit.IOFireWireFamily 4.1.7
    com.apple.iokit.IOUSBFamily 3.8.5
    com.apple.driver.AppleEFIRuntime 1.3.0
    com.apple.iokit.IOHIDFamily 1.6.1
    com.apple.iokit.IOSMBusFamily 1.1
    com.apple.kext.AppleMatch 1.0.0d1
    com.apple.security.TMSafetyNet 6
    com.apple.driver.DiskImages 281
    com.apple.iokit.IOStorageFamily 1.6
    com.apple.driver.AppleACPIPlatform 1.3
    com.apple.iokit.IOPCIFamily 2.6
    com.apple.iokit.IOACPIFamily 1.3.0
    Model: MacBookPro3,1, BootROM MBP31.0070.B07, 2 processors, Intel Core 2 Duo, 2.2 GHz, 4 GB, SMC 1.16f11
    Graphics: NVIDIA GeForce 8600M GT, GeForce 8600M GT, PCIe, 128 MB
    Memory Module: global_name
    AirPort: spairportwireless_card_type_airportextreme (0x168C, 0x87), Atheros 5416: 2.0.19.4
    Bluetooth: Version 2.2.4f3, 2 service, 0 devices, 1 incoming serial ports
    Network Service: AirPort, AirPort, en1
    PCI Card: pci168c,24, sppci_othernetwork, PCI Slot 5
    Serial ATA Device: ST9320421ASG, 298.09 GB
    Parallel ATA Device: MATSHITADVD-R UJ-857E
    USB Device: Built-in iSight, 0x05ac (Apple Inc.), 0x8502, 0xfd400000
    USB Device: Apple Internal Keyboard / Trackpad, 0x05ac (Apple Inc.), 0x021a, 0x5d200000
    USB Device: Bluetooth USB Host Controller, 0x05ac (Apple Inc.), 0x8205, 0x1a100000
    Anyone know what is causing my problems? I thought it was heat so I downloaded a CPU and FAN temperature monitor and the CPU was getting VERY HOT at first so I then ramped-up the CPU FAN SPEED to maximum - it turns out the CPU FAN was not rotating well at low speed - since then I have cleaned and checked the fans and they all work as they should and blow on high(er) when the CPU temperature is above a certain level.

    S.U.
    Is there a kb article or something that would illuminate what to look for in these logs, or is it a matter of learning by osmosis?
    Both. I am not skilled in reading logs. It is a very technical and time consuming task for the uninitiated (me!) In scanning a log I look for the backtrace and loading dependencies. The first item in the backtrace is usually the roadblock.
    Beyond that you can look at the Technical Note TN2063: Understanding and Debugging Kernel Panics
    Should make for good bedtime reading. Puts you right to sleep.
    c

  • Display image in java.awt.List

    hello guys,
    How i can display image in java.awt.List means listbox. give me sample code. if you have
    Waiting for your favorable reply.
    Regards,
    Bhavesh Kharwa

    java.awt.List you can not.
    javax.swing.JLast you can.

  • Problem with Java and Windows (Mainly Vista and UAC)

    Hi all,
    I am having a problem with a program that I've devoloped. The program itself is packaged as a jar and I plan to deploy it across multiple platforms eventually however right now i am only concerned about windows based systems. I have made an installer for a windows baised systems using NSIS to install the software files. I made the installer as I need several java packages to be installed so the program would work (JAI, J3D, JAI ImageIO) and I also require the program to have fileassociations on windows.
    I know that this is not what java is about, however the majority of the users will be on windows baised systems so I've decided that OS specific installers is the best option.
    During the process I have noticed that there are several key problem with java for this type of application!
    The first issue that I have come across is getting file associations to work on java. As a .jar is not an excutable it is not possible to directly associate a filetype with it in java so to overcome this I currently run the program from a .bat files and also the program requires large memory so this also allows me to run the program with -xmx. The batch file that I use is :
    <code>
    cd PATH TO PROGRAM
    start javaw -Dsun.java2d.noddraw=true -Xmn100M -Xms500M -Xmx1000M -jar "PATH TO PROGRAM\program.jar" %1 -vram 134217728
    pause;
    </code>
    Ok so all this appears to work fine and allows windows to have file associations and start the program and thats all works perfectly but this is a non-ideal solution. Has anyone got any advice on improving this?
    The next problem that I have appears to be a problem with Vista and UAC (user access control). When a user installs the program and installs the program into the program files directory I found that the program did not work and kept saying that I did not have access to the files in the current directory. This is a problem as I read and write settings files during program execution.
    On a Vista system UAC prevents file write operations into the Program Files directory unless the program has requested elevated status even if the user is a full administrator. The probem is that there appears to be no real way to achieve this under java that I'm aware of...
    Has anyone else had this probem and has a suitable solution?
    Any advice on these issues would realy be appricated.
    Regards
    Joey

    Ok so i've kinda found a solution, its not ideal but its very good. I found this program called Elevate
    A link to the site I got it was
    http://www.wintellect.com/cs/blogs/jrobbins/archive/2007/03/27/elevate-a-process-at-the-command-line-in-vista.aspx
    This program allows you start java with a UAC dialog for high access using
    Elevate java -jar myjar.jar
    This then allows you to have full access using java... I guess it could be dangerous but it does the job.

  • Problem with java and pogo games

    i use mozilla and now with the problems with java and hackers cannot play my pogo games,what can i do? i disabled my java i tried java 6 doesnt work or is not safe,what is a safe way to play games on pogo that use java?

    Oracle has released a Java 7 Update 11 to address security vulnerabilities and you should update to that version.
    *https://support.mozilla.org/kb/how-to-use-java-if-its-been-blocked
    See also:
    *http://kb.mozillazine.org/Java#Windows_installation_issues
    You can find the latest Java version on the Oracle website.
    See Java Platform > Java SE 7U11 and Java 6U38 (Download JRE)
    *http://www.oracle.com/technetwork/java/javase/downloads/index.html

  • Problem with java swing button and loop

    Problem with java swing button and loop
    I�m using VAJ 4.0. and I�m doing normal GUI application. I have next problem.
    I have in the same class two jswing buttons named start (ivjGStart) and stop (ivjGStop) and private static int field named Status where initial value is 0. This buttons should work something like this:
    When I click on start button it must do next:
    Start button must set disenabled and Stop button must set enabled and selected. Field status is set to 1, because this is a condition in next procedure in some loop. And then procedure named IzvajajNeprekinjeno() is invoked.
    And when I click on stop button it must do next:
    Start button must set enabled and selected and Stop button must set disenabled.
    Field status is set to 0.
    This works everything fine without loop �do .. while� inside the procedure IzvajajNeprekinjeno(). But when used this loop the start button all the time stay (like) pressed. And this means that a can�t stop my loop.
    There is java code, so you can get better picture:
    /** start button */
    public void gStart_ActionEvents() {
    try {
    ivjGStart.setEnabled(false);
    ivjGStop.setEnabled(true);
    ivjGStop.setSelected(true);
    getJTextPane1().setText("Program is running ...");
    Status = 1;
    } catch (Exception e) {}
    /** stop button */
    public void gStop_ActionEvents() {
    try {
    ivjGStart.setEnabled(true);
    ivjGStart.setSelected(true);
    ivjGStop.setEnabled(false);
    getJTextPane1().setText("Program is NOT running ...");
    Status = 0;
    } catch (Exception e) {
    /** procedure IzvajajNeprekinjeno() */
    public void IzvajajNeprekinjeno() {  //RunLoop
    try {
    int zamik = 2000; //delay
    do {
    Thread.sleep(zamik);
    PreberiDat(); //procedure
    } while (Status == 1);
    } catch (Exception e) {
    So, I'm asking what I have to do, that start button will not all the time stay pressed? Or some other aspect of solving this problem.
    Any help will be appreciated.
    Best regards,
    Tomi

    This is a multi thread problem. When you start the gui, it is running in one thread. Lets call that GUI_Thread so we know what we are talking about.
    Since java is task-based this will happen if you do like this:
    1. Button "Start" is pressed. Thread running: GUI_Thread
    2. Event gStart_ActionEvents() called. Thread running: GUI_Thread
    3. Method IzvajajNeprekinjeno() called. Thread running: GUI_Thread
    4. Sleep in method IzvajajNeprekinjeno() on thread GUI_Thread
    5. Call PreberiDat(). Thread running: GUI_Thread
    6. Check status. If == 1, go tho 4. Thread running: GUI_Thread.
    Since the method IzvajajNeprekinjeno() (what does that mean?) and the GUI is running in the same thread and the event that the Start button has thrown isn't done yet, the program will go on in the IzvajajNeprekinjeno() method forever and never let you press the Stop-button.
    What you have to do is do put either the GUI in a thread of its own or start a new thread that will do the task of the IzvajajNeprekinjeno() method.
    http://java.sun.com/docs/books/tutorial/uiswing/index.html
    This tutorial explains how to build a multi threaded gui.
    /Lime

  • Display Problem with RowHeader of a Scroll Pane

    Hi,
    I am trying to display row headers for a table using another table
    Here is the code
    import javax.swing.*;
    import javax.swing.table.*;
    public class RowNumberHeader extends JTable {
      protected JTable mainTable;
      public RowNumberHeader(JTable table) {
        super();
        mainTable = table;
        setModel(new RowNumberTableModel());
        setRowSelectionAllowed(false);
        JComponent renderer = (JComponent)getDefaultRenderer(Object.class);
      public int getRowHeight(int row) {
        return mainTable.getRowHeight();
      class RowNumberTableModel extends AbstractTableModel {
        public int getRowCount() {
          return mainTable.getModel().getRowCount();
        public int getColumnCount() {
          return 1;
        public Object getValueAt(int row, int column) {
          return new Integer(row + 1);
    }and then
            JTable displayTable = new JTable(...);
            scrollPane = new JScrollPane(displayTable);
            JViewport jvp = new JViewport();
            jvp.setView(new RowNumberHeader(displayTable));
            scrollPane.setRowHeader(jvp);the problem I have is that when a row is selected inside the row header, some rows go blank and you can see the selection is all screwed up. I tried setting the selection mode to ListSelectionModel.SINGLE_SELECTION but that didn't help.
    A refresh of the entire screen (minimize/maximize) seems to resolve the problem. I am using jdk1.4.1 in Windows 2000.
    Any ideas?
    Sylvain

    Again the problem is that when you click on the row headers, some row header rows go blank (completely white) so you can't see what they show.
    ie say I have table
    Row 1 - 1  2  3
    Row 2 - 2  4  5
    Row 3 - 5  7  7
    Row 4 - 5  6  7where Row X is the row header. So for example, if you click on Row 2, you will get something like
    Row 1 - 1  2  3
    Row 2 - 2  4  5
          - 5  7  7
    Row 4 - 5  6  7until the screen is refreshed or you click some other row header.
    hmm ok, I added calling repaint on the table whenever a row is selected and at least the display problem goes away; however, the selected indexes from the event don't always match the index of the row selected. I think actually that may be the source of the display problem.
    Here is the code I added in the constructor:
            getSelectionModel().addListSelectionListener(new ListSelectionListener()
                public void valueChanged(ListSelectionEvent e)
                    System.out.println("Header table selection is: First = " + e.getFirstIndex() +
                                       " Last = " + e.getLastIndex());
                    RowNumberHeader.this.repaint();
            });

  • Macbook and HP 2510i monitor display problem - help

    Hello,
    I am having display problem with my Macbook (Intel) and my 25'' HP 2510i monitor via DVI.. Until last monday I do not have any problems and my monitor was working flawless with my macbook.. Last monday I used the monitor with my HP Notebook to try Windows 8 on large screen. And after that try when I connect the monitor back to Macbook there is no display.. I tried the steps below
    - I connected Macbook to my Phillips Plasma TV and it worked (no error with display card of Macbook or the wire or the adaptor)
    - I connected the monitor back to HP laptop it worked.. (so no error with the monitor)
    - I unplugged monitor to cut electricity and tried.. nope not working
    - I did several tricks with macbook no effect
    - I reinstalled Mountain Lion .. no effect
    - I formatted Macbook, reinstalled Snow Leopard.. Not working.. I installed back Mountain Lion .. not working
    Whatever I tried the HP2510i is not displaying, mirroring my Macbook..
    Any help will be appreciated
    Thanks

    My graphic card details;
    NVIDIA GeForce 9400M:
      Chipset Model:          NVIDIA GeForce 9400M
      Type:          GPU
      Bus:          PCI
      VRAM (Total):          256 MB
      Vendor:          NVIDIA (0x10de)
      Device ID:          0x0863
      Revision ID:          0x00b1
      ROM Revision:          3462

  • My original post, locked by this forum. Display problem related

    Hi G5 Gurus,
    The display problem first, we all know when screen savers display, a click on the mouse will bring you back to the active desktop, this was how it worked., but now, sometimes a click cause the G5 to sleep!
    As for the sleep, I dare not to put it to sleep these days, because I am afriad it may cause a fire by over heating. Sometmes, actually four times in the past few months, my G5 could wake up by itself, followed by a extrem high speed running of the cooling fan, it sounded like a hair dryer running in the same room. Sometimes the sreen could light up, just like real wake up, sometimes, it was black. No clicks the mouse or keyboeard could bring it back to normal, I had to press and hold the power button to turn it off.
    This crazy problem happened for the first time last summer, a dead hard disk was the cost. Apple replaced it, but failed to detect the cooling or power or display problem. I was given one month extended free service, but right after its end, the problem was back and happened even more often.
    Please let me know if any of you had the same problem and please advise what to do.
    100s Gs of thanks.
    Songyan
    iMac G5 Mac OS X (10.4.8)
    la teller
    Posts: 1
    From: Los Angeles
    Registered: Jan 10, 2007
    Re: What's the problem? Display? Power supply? Cooling? My G5's gone mad
    Posted: Jan 10, 2007 2:21 PM in response to: Bad luck G5
    I have the EXACT same problem. In fact, I could not have described it better myself. What gives? I brought it in to the "genius" bar and they repolaced the power supply free of charge but the problem is still there. I noticed they ordered a new logic board but did not end up replacing it after all. Did you have yours replaced and did it work? Is this a known issue?
    imac G5 17 inch Mac OS X (10.3.9)
    Bad luck G5
    Posts: 8
    From: UK
    Registered: Jan 10, 2007
    Re: What's the problem? Display? Power supply? Cooling? My G5's gone mad
    Posted: Jan 11, 2007 1:20 PM in response to: la teller
    Hi La teller,
    Thank you for your reply. The 'genius' here in London only replace the dead hard disk, which I belive was a victim of this problem. I was told they couldn't find anything wrong with the power supply or the cooling system.
    Now at lest I know I am not the only bad luck guy. Let's wait and see if others are having the same problem. I am not sure if this is a known issue to Apple, even if it is, it may take years before they can offer a recall or free repaire. I noticed that some G5s have already been suffering from power problems and a free repaire was offered.
    Thank you again and hope Apple can take our concerns into their consideration soon.
    Songyan
    iMac G5 Mac OS X (10.4.8)
    stopha6
    Posts: 1
    From: US
    Registered: Jan 12, 2007
    Re: What's the problem? Display? Power supply? Cooling? My G5's gone mad
    Posted: Jan 12, 2007 7:43 AM in response to: Bad luck G5
    Hello,
    I'm also having this problem (fan running, won't come out of sleep), just spoke with an apple care rep. He confirmed my suspition that it was software, not hardware as I have just had the logic board and power supply replaced.
    His suggestions were to:
    1. Run disk repair from the startup CD
    try running OS X from a firewire drive and see if the same behavior happens or
    perform and archive and install.
    When the fan starts to run like that it means the OS is not communicating with the hardware properly. The OS could be somewhat corrupt if you were having hardware issues beforehand, hence the need for a reinstall. I will be performing an archive and install after the disk repair, I'll let you know if it fixes the problem!
    iMac G5 Mac OS X (10.4.8)
    Bad luck G5
    Posts: 8
    From: UK
    Registered: Jan 10, 2007
    Re: What's the problem? Display? Power supply? Cooling? My G5's gone mad
    Posted: Jan 14, 2007 12:52 PM in response to: stopha6
    Hi Stopha6,
    Thank you for your message. I never imagined it could be a software issue, cos it looked so hardware.
    Please keep me updated with your progress.
    By the way, as I said in my old posts, a hard disk went dead when this happened for the very first time, how do you read this?
    Thank you.
    Songyan
    iMac G5 Mac OS X (10.4.8)
    Bad luck G5
    Posts: 8
    From: UK
    Registered: Jan 10, 2007
    Re: What's the problem? Display? Power supply? Cooling? My G5's gone mad
    Posted: Jan 15, 2007 6:58 AM in response to: stopha6
    Hi Stopha6,
    After reading your reply again, I realized that the system had already been reinstalled. As I said when it happened for the first time, the hard disk died with it, which was replaced, of course with a new OS X, but the same problem is still happening. May this suggest that it is not just a software problem? Thank you. Songyan
    iMac G5 Mac OS X (10.4.8)
    AG-Nate
    Posts: 5
    From: Pismo Beach,CA
    Registered: Aug 26, 2006
    Re: What's the problem? Display? Power supply? Cooling? My G5's gone mad
    Posted: Jan 14, 2007 3:38 PM in response to: Bad luck G5
    The Fans going at full is only because you have an application that is using a lot of cpu power and therefore causing the imac to heat up so it turns the fans on. The screen-saver and sleep problem you describe sounds like something that may just happen on accident. But this sounds mostly like a software problem. Try making sure to always quit all non-apple products and see if anything changes.
    eMac, iMacG5 Mac OS X (10.4.7) 800mhz 1gig ram, 2ghz 2gigs of ram
    Bad luck G5
    Posts: 8
    From: UK
    Registered: Jan 10, 2007
    Re: What's the problem? Display? Power supply? Cooling? My G5's gone mad
    Posted: Jan 15, 2007 6:50 AM in response to: AG-Nate
    Thank you, Ag-Nate. I will try as you adivised but I con't think the fans were activeted my intensive CPU using. In most of the cases, the problems happened when the Mac was sleeping, when the minimum CPU were being used.
    iMac G5 Mac OS X (10.4.8)
    Timothy Klein
    Posts: 15
    From: Denver, CO, USA
    Registered: Dec 6, 2004
    Re: What's the problem? Display? Power supply? Cooling? My G5's gone mad
    Posted: Jan 31, 2007 1:02 PM in response to: AG-Nate
    "The Fans going at full is only because you have an application that is using a lot of cpu power and therefore causing the imac to heat up so it turns the fans on."
    That's only partly right. A hard-working process will make the fans run at high speed, of course.
    But, the OS is in touch with the firmware of the iMac, telling it how to run the fans, based upon information the OS X kernel is getting about the state of the hardware.
    If the firmware loses touch with the OS for some reason, and is not getting instructions on how to run the fan, it will default to running them at full blast, to be on the safe side (and this "full blast" fan mode is way louder than anything you'll generally experience during normal usage, I know from experience).
    So it may not be so simple as a hard-working cpu process kicking the fans on.
    iMac G5 17" 1.6 GHz Rev. A Mac OS X (10.4.8) 1 GB Ram
    Kensall
    Posts: 2
    From: London, England
    Registered: Feb 2, 2007
    Re: What's the problem? Display? Power supply? Cooling? My G5's gone mad
    Posted: Feb 2, 2007 9:05 AM in response to: Timothy Klein
    Hi I have a 20" G5 imac it's about 18 months old and I am having the same problem, It freezes and the fan runs really loud. It's nothing to do with software as my I.T. guy has done a complete re-install. All of our admin people have imacs of differring ages and the flat panels are all OK but every one of the G5s has had a booting problem. Some fell into the recall for replacement logic boards but the one I have at home is the newest and doesn't. I'm waiting for my apple reseller to get back to me, but it looks like it's the logic board and as none of the serial numbers fall into the recall, I'm expecting a big bill. I'm really disappointed as I've been a professional apple user for over 15 years and have grown to expect a certain amount of honesty and integrity from them. Looking at all of the discussion boards and the amount of people complaining of the same problem the logic boards are defective and apple should be replacing these free of charge.
    i mac G5 Mac OS X (10.4.8)
    a brody
    Posts: 15,170
    From: Silver Spring, Maryland. Don't forget to backup your data!
    Registered: Dec 23, 2000
    Re: What's the problem? Display? Power supply? Cooling? My G5's gone mad
    Posted: Feb 2, 2007 10:27 AM in response to: Kensall
    Kensall,
    Welcome to Apple Discussions!
    As in the other thread I wrote:
    Being from England, you may find the repair program under these pages:
    http://www.apple.com/uk/support/imac/repairextensionprogram/
    http://www.apple.com/uk/support/imac/powersupply/repairextension/
    Check both of them as they refer to different models.
    If neither of yours is under the program, please start a new topic thread so someone can help you.
    http://discussions.apple.com/forum.jspa?forumID=881
    First off, you'll get a wider audience who may be able to solve your problem. Secondly, responses to you won't confuse the original poster with solutions that don't apply to them. And thirdly, you'll know for certain whether or not a response applies to you.
    iMac C2D 2.17/20 inch/iMac G5 1.8 1st gen/iMac G4 800 Mac OS 9 Mac OS X (10.4.8) EyeTV 200, Canon PS A530 , Epson P-R220, iSight, Airport Extreme, 5th Gen iPod

    I am having a very similar problem. My G5 imac has already had the logic board replaced from the leaking capacitor problem. 8 mos. later the power supply was replaced under the second recall program when it failed to start up.
    It had been working now for almost a year, when about 3 mos. ago I started to experience the sudden dimming effect - if the display was untouched the screen would dim about 30% similar to a laptop in energy save mode. I checked and none of these types of options were set in the pref panes. At the same time I would have the iMac go to sleep after a while from non-use, and then when I tried to wake it it would stir for a few seconds and then go right back to sleep. It took 2-3 attempts to wake it up.
    Then last week, as I tried to wake it, it just shut down instead completely. I had to hold the power button down to recycle it to get it to come back to life (3 times).
    Today was it - I found what I thought was a sleeping iMac, but it will not power up at all. I opened the back cover and the power supply is working, but I cannot get the board to energize, I reset the PMU, but the #2 LED won't even blink. It is completely dead.
    Basically every time I used this computer I held my breath that it would not work. After 2 recalls I still only get 9 mos. out of it? Apple is really starting to show it is like the "big" computer makers, the quality is going right down the tubes.
    iMac G5   Mac OS X (10.4.4)  

Maybe you are looking for

  • 00933 error when clicking on the data tab for the selected table

    Hi, I'm getting the following error when selecting a table from the tree view then clicking on the data tab: An error was encountered performing the requested operation: ORA-00933: SQL command not properly ended 00933.00000 - "SQL command not properl

  • A script in this mouvie is causing Adobe Flash Player 10 to run slowy

    Hello, my english is horrible, but i will try to explain. On my laptop when i try to open certain sites  i see this error message : A script in this mouvie is causing Adobe Flash Player 10 to run slowy. If it continue to run your computer may become

  • ABAP Report in WebDynpro

    Hi all! Is there a way to integrate ABAP Reports in Web Dynpro Applications? - apart from changing the ABAP Report in a way like: return a stringtab with all the results of the write statements of a report. Best regards! Christoph

  • C7280 fax features are missing in solution center

    I have done complete uninstall/reinstall C7280 (vista prem. 32) 4 times in the last few days and get different results every time! It started with inability to scan. bottom line is, I've always had issues with this software. Currently, I have scan fu

  • Update picking quantity

    Hi all, We are using IDOC_INPUT_DLVRY in order to update the picking quantity for each item. For this we are inserting an extra E1EDL18 segment with QUALF = PIC. Now, we have the next issue: when the item is a BOM, the FM updates the quantity of this