Render a file in swing component?

Hi,dear all:
I am trying to open a file in a swing.JPanel or other component. The file maybe a doc or a ppt, or any other files associating with an application.
For detail: I want to render a file in an applet. It is expected to be the same looking as that in it's associating application. If it is a Word document,it must looks like it is in MS Word. It will be maginified or thumbnailed. If the document contains n pages, n swing components will be created .Each component can only render one page.
Some hints I got:
In print dialog, a Preview function.
javax.print.*;
Thanks.

hi jansome,
I recommend you have a look at using text components in the java tutorial http://java.sun.com/docs/books/tutorial/uiswing/
I am trying to open a file in a swing.JPanel or other component. you might want to use javax.swing.JEditorPane or a class decending from this to use instead of JPanel. See the API on JEditorPane at http://java.sun.com/j2se/1.3/docs/api/javax/swing/JEditorPane.html
If the document contains n pages, n swing components will be created.Each component can only render one page.If you delete some lines from one page, how do the pages after update to reflect the change? are there blank lines left where you deleted the text? The JEditorPane treats the document as one complete text component.
hope that helps
jack573

Similar Messages

  • Create a PDF file from swing component and print

    Hi,
    Suppose i have a JFrame where in i add a JScrollpane which has a JPanel with some painting on it, suppose i want to create a pdf file of the total JPanel, and not of what i see on screen like taking a screen shot, or print the total JPanel, and not only the screen that is displayed
    how can i do it
    I am attaching the code below, how can i create a pdf for MyPanel and print it
    //start code
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class TestDisplaySize extends JFrame
         JScrollPane scrollPane ;
         public TestDisplaySize()
              super("layered pane");
              this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
              MyPanel panel = new MyPanel();
              scrollPane = new JScrollPane(panel);
              Container contentPane = this.getContentPane();
              contentPane.add(scrollPane, BorderLayout.CENTER);
              setSize(new Dimension(800,600));
              this.setVisible(true);
              JViewport viewPort = scrollPane.getViewport();
         class MyPanel extends JPanel
              public MyPanel()
         setPreferredSize(new Dimension(2000,600) );     
         this.setBackground(Color.white);
         this.setOpaque(true);
         public void paintComponent(Graphics g)
    super.paintComponent(g);
    setBackground(Color.white);
    Rectangle r = scrollPane.getViewport().getViewRect();
    g.setClip((Shape)r);
    g.setColor(Color.blue);
    int x = 0;
    for(int i = 0; i < 60; i++)
         x +=60;
         g.drawLine(x, 0, x, 600);
         g.drawString(String.valueOf(i), x, 50);
         public static void main(String args[])
         new TestDisplaySize();
    //end code

    create a class wich implements printable, redefine the print method of this class with the this you want to print
    and at the end of the constructor...
    PrinterJob printJob = PrinterJob.getPrinterJob();
    PageFormat myFormat = new PageFormat();
    myFormat.setOrientation(PageFormat.LANDSCAPE);
    myFormat.setPaper(ps.getMyPaper());
    printJob.setPrintable(this, myFormat);
    if (printJob.printDialog()) {
    try {
    printJob.print();
    } catch (Exception pe) {
    System.out.println(pe);

  • Help-using document as a java swing component

    Hi,
    can i use a document excel file or a doc file as a swing component.
    i have few templates in in excel and .doc format.
    i use them to produce bills by just entering data.
    Now i want to develop a swing application and use the same templates in jpanel or jtextpane or jeditorpane.
    its very hectic to make templates in swing using tables and all.
    is there any api which can help me out???
    thanks

    as a Swing component? No.
    There's probably libraries for reading those types of files, and maybe displaying them. POI, perhaps?

  • How to call Ocx in swing Component

    Hi i want to play Flash4 file xxx.swf in swing Component
    JMF Api Supports upto Flash2 only i downloadled Flash4 player which is a ocx file .how can i integrate this ocx in swing Component
    help me please
    regards
    Mahesh.B

    I have used the tool JacoZoom by InfoZoom (http://www.infozoom.de).
    The tool can create JCWs (java callable wrappers) for COM and ActiveX objects.
    If they are visual, you can create and display them within your Java app
    either as AWT or in Swing.
    In general, JacoZoom is the best tool I have found so far, it is my
    favorite.
    Sylvia

  • Polyhierarchy Swing Component

    Hello Forum users!
    I want to announce a new kind of Swing Component i released on sourceforge, which could be a nice alternative to JTree/JTable for polyhierarchies (graphs with nodes that have more than one parent).
    https://sourceforge.net/projects/polytreetable/
    It is a JTable extension and offers multiple node attribute columns. All column can be set editable, even the tree column. The package comes with two samples, showing the visualization principles of the Component. I used it for displaying grammars and class file dependencies (that are cyclic very often).

    Read the tutorial: [How to Use Spinners|http://java.sun.com/docs/books/tutorial/uiswing/components/spinner.html]
    You will find some examples there.

  • How to print a PDF file from Swing(JFC/swing)

    Hi,
    I am able to dislay a PDF file in Swing but how can I print it from there. I want to do it without using Acrobat reader.

    You can use the "System Exec.vi". The command line should have the following structure:
    "<Path to AcroRd32.exe>" /t "<Path to document>" "Printer name"
    For example"
    "C:\Program Files\Adobe\Acrobat 5.0\Reader\AcroRd32.exe" /t "C:\myreport.pdf" "Tektronix Phaser 300i"
    Regards;
    Enrique
    www.vartortech.com

  • Offie Web Apps 2013 randomly fail to render a file with an authentication issue on Firefox

    Hello,
    I’m facing an issue when refreshing a SharePoint page with an embedded Office file (rendered through Office web apps).
    When I refresh the page, the Office Web Apps frame doesn’t render the file (randomly) and returns an error (in the frame. Everything around the frame in SharePoint is OK):
    “Sorry you don’t have access to this content”
    Just after receiving the error, if I refresh the page again, everything works for a couple of tries and then the error show up again...
    Here is my configuration:
    SharePoint 2013 Server SP1 (15.0.4569.1000) farm English version
    Office Web Apps farm English version
    SSL Offloading through load balancer for both farm
    Issue:
    1<sup>st</sup> load of the page with IE, Chrome and Firefox > OK
    Page refresh with IE/Chrome > OK
    Page refresh with Firefox > random KOs
    Tests:
    Test with FireFox version 24/27/32 > same results
    Test from Windows/OSx > same results
    Test with 1 WFE and 1 WAC server > same results
    Test with network.negotiate-auth.allow-insecure-ntlm-v1;True
    on FF > same results
    In the ULS logs, I found this entry which seems strange even though I’m authenticated on SharePoint (see the complet log below):
    Non-OAuth request. IsAuthenticated=False, UserIdentityName=, ClaimsCount=0
    Followed by
    System.UnauthorizedAccessException:   Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)),   StackTrace:   
    at   Microsoft.SharePoint.SPWeb.InitWeb()      
    at Microsoft.SharePoint.SPWeb.get_WebTemplateConfiguration()    
    at   Microsoft.SharePoint.WebControls.ScriptLink.InitJs_Register(Page page)    
    at   Microsoft.SharePoint.WebControls.ScriptLink.RegisterForControl(Control ctrl,   Page page, String name, Boolean localizable, Boolean defer, Boolean   loadAfterUI, String language, Boolean injectNoDefer, Boolean   controlRegistration,
    Boolean loadInlineLast, Boolean ignoreFileNotFound)    
    at   Microsoft.SharePoint.WebControls.ScriptLink.Register(Control ctrl, Page page,   String name, Boolean localizable, Boolean defer, Boolean loadAfterUI, String   language, String uiVersion, String ctag)    
    Microsoft recommendations about FireFox:
    Lastest versions of IE, Chrome and Firefox should work
    http://technet.microsoft.com/en-us/library/cc263526(v=office.15).aspx
    Other details:
    I’m not testing with the farm account.
    Some of my company’s users need to use Firefox as their everyday browser.
    Again, everything works with IE and Chrome.

    Search "17efba9c-d283-80e1-2ddf-9311dd77dd1c" (41 hits   in 1 file)
    Line 44019: 09/22/2014 11:50:04.86 
    w3wp.exe (0x15EC)                       
    0x0AAC
    SharePoint Foundation         
    Logging Correlation Data      
    xmnv
    Medium  
    Name=Request   (GET:https://intranet.mycompany.com:443/poles/crc/wiki/_layouts/15/WopiFrame.aspx?sourcedoc=/poles/crc/wiki/Documents/confidentiality%20-%20data%20protection_SDE_2014.05.06_v1.0.pptx&action=embedview&wdAr=1.3333333333333332)
    17efba9c-d283-80e1-2ddf-9311dd77dd1c
    Line 44020: 09/22/2014 11:50:04.86 
    w3wp.exe (0x15EC)                       
    0x0AAC
    SharePoint Foundation         
    Authentication Authorization  
    agb9s
    Medium  
    Non-OAuth request. IsAuthenticated=False, UserIdentityName=,   ClaimsCount=0
    17efba9c-d283-80e1-2ddf-9311dd77dd1c
    Line 44021: 09/22/2014 11:50:04.86 
    w3wp.exe (0x15EC)                       
    0x0AAC
    SharePoint Foundation         
    Logging Correlation Data      
    xmnv
    Medium  
    Site=/poles/crc
    17efba9c-d283-80e1-2ddf-9311dd77dd1c
    Line 44022: 09/22/2014 11:50:04.86 
    w3wp.exe (0x15EC)                       
    0x0AAC
    SharePoint Foundation         
    Authentication Authorization  
    aib35
    Medium  
    SPShareByLinkHandler.Initialize : Not a ShareByLink request - missing   access token
    17efba9c-d283-80e1-2ddf-9311dd77dd1c
    Line 44028: 09/22/2014 11:50:04.87 
    w3wp.exe (0x15EC)                       
    0x0AAC
    SharePoint Foundation         
    Authentication Authorization  
    aib35
    Medium  
    SPShareByLinkHandler.Initialize : Not a ShareByLink request - missing   access token
    17efba9c-d283-80e1-2ddf-9311dd77dd1c
    Line 44030: 09/22/2014 11:50:04.87 
    w3wp.exe (0x15EC)                       
    0x0AAC
    SharePoint Foundation         
    General                       
    aat87
    Monitorable
    17efba9c-d283-80e1-2ddf-9311dd77dd1c
    Line 44032: 09/22/2014 11:50:04.87 
    w3wp.exe (0x15EC)                       
    0x0AAC
    SharePoint Foundation         
    General                       
    8e2s
    Medium  
    Unknown SPRequest error occurred. More information: 0x80070005
    17efba9c-d283-80e1-2ddf-9311dd77dd1c
    Line 44033: 09/22/2014 11:50:04.87 
    w3wp.exe (0x15EC)                       
    0x0AAC
    SharePoint Foundation         
    General                       
    aix9j
    High    
    SPRequest.GetPageListId: UserPrincipalName=, AppPrincipalName=   ,bstrUrl=https://intranet.mycompany.com/poles/crc/wiki/_layouts/15/WopiFrame.aspx?sourcedoc=/poles/crc/wiki/Documents/confidentiality   - data protection_SDE_2014.05.06_v1.0.pptx&action=embedview&wdAr=1.3333333333333332
    17efba9c-d283-80e1-2ddf-9311dd77dd1c
    Line 44034: 09/22/2014 11:50:04.87 
    w3wp.exe (0x15EC)                       
    0x0AAC
    SharePoint Foundation         
    General                       
    ai1wu
    Medium  
    System.UnauthorizedAccessException: Access is denied. (Exception from   HRESULT: 0x80070005 (E_ACCESSDENIED)), StackTrace:   
    at   Microsoft.SharePoint.SPContext.get_ListId()    
    at Microsoft.SharePoint.SPContext.get_List()    
    at   Microsoft.SharePoint.WebControls.ScriptLink.InitJs_Register(Page page)    
    at   Microsoft.SharePoint.WebControls.ScriptLink.RegisterForControl(Control ctrl,   Page page, String name, Boolean localizable, Boolean defer, Boolean   loadAfterUI, String language, Boolean injectNoDefer, Boolean
      controlRegistration, Boolean loadInlineLast, Boolean ignoreFileNotFound)    
    at   Microsoft.SharePoint.WebControls.ScriptLink.Register(Control ctrl, Page page,   String name, Boolean localizable, Boolean defer, Boolean loadAfterUI, String   language, String uiVersion, String ctag)    
      at Micros...
    17efba9c-d283-80e1-2ddf-9311dd77dd1c
    Line 44035: 09/22/2014 11:50:04.87*
    w3wp.exe (0x15EC)                       
    0x0AAC
    SharePoint Foundation         
    General                       
    ai1wu
    Medium  
    ...oft.SharePoint.WebControls.ScriptLink.Register(String uiVersion,   Control ctrl, Page page, String name, Boolean localizable, Boolean   defer)    
    at   Microsoft.SharePoint.WebControls.ScriptLink.Register(Control ctrl, Page page,   String name, Boolean localizable, Boolean defer)    
    at   Microsoft.SharePoint.WebControls.ScriptLink.GetOnDemandScriptKey(String   strKey, String strFile, Boolean registerDependencies, Control ctrl, Page page)    
    at   Microsoft.SharePoint.WebControls.ScriptLink.RegisterOnDemand(Control ctrl,   Page page, String strKey, String strFile, Boolean localizable)    
    at Microsoft.SharePoint.WebControls.ScriptLink.RegisterOnDemand(Page   page, String strFile, Boolean localizable)      
    at   Microsoft.SharePoint.WebControls.ScriptLink.RegisterForControl(Control ctrl,   Page page, String name, ...
    17efba9c-d283-80e1-2ddf-9311dd77dd1c
    Line 44036: 09/22/2014 11:50:04.87*
    w3wp.exe (0x15EC)                       
    0x0AAC
    SharePoint Foundation         
    General                       
    ai1wu
    Medium  
    ...Boolean localizable, Boolean defer, Boolean loadAfterUI, String   language, Boolean injectNoDefer, Boolean controlRegistration, Boolean   loadInlineLast, Boolean ignoreFileNotFound)    
    at Microsoft.SharePoint.WebControls.ScriptLink.Register(Control   ctrl, Page page, String name, Boolean localizable, Boolean defer, Boolean   loadAfterUI, String language, String uiVersion, String ctag)    
    at   Microsoft.SharePoint.WebControls.ScriptLink.RegisterOnDemand(Control ctrl,   Page page, String strKey, String strFile, Boolean localizable)    
    at   Microsoft.SharePoint.WebControls.ScriptLink.OnLoad(EventArgs e)    
    at System.Web.UI.Control.LoadRecursive()    
    at   System.Web.UI.Control.LoadRecursive()      
    at System.Web.UI.Control.LoadRecursive()    
    at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Co...
    17efba9c-d283-80e1-2ddf-9311dd77dd1c
    Line 44037: 09/22/2014 11:50:04.87*
    w3wp.exe (0x15EC)                       
    0x0AAC
    SharePoint Foundation         
    General                       
    ai1wu
    Medium  
    ...ntrol.LoadRecursive()     at   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,   Boolean includeStagesAfterAsyncPoint)      
    at System.Web.UI.Page.ProcessRequest(Boolean   includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)    
    at   System.Web.UI.Page.ProcessRequest()      
    at System.Web.UI.Page.ProcessRequest(HttpContext context)    
    at   System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter   writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path,   VirtualPath filePath, String physPath, Exception error, String   queryStringOverride)    
    at   System.Web.HttpServerUtility.Execute(String path, TextWriter writer, Boolean   preserveForm)    
    at   System.Web.HttpServerUtility.Transfer(String path)    
    at Microsoft.SharePoint.Utiliti...
    17efba9c-d283-80e1-2ddf-9311dd77dd1c
    Line 44038: 09/22/2014 11:50:04.87*
    w3wp.exe (0x15EC)                       
    0x0AAC
    SharePoint Foundation         
    General                       
    ai1wu
    Medium  
    ...es.SPUtility.TransferToErrorPage(String message, String linkText,   String linkUrl)    
    at   Microsoft.SharePoint.ApplicationPages.WOPIFrameHelper.OnLoadHelper(WOPIFrame   frame)    
    at   Microsoft.SharePoint.ApplicationPages.WOPIFrameHelper.OnLoad(WOPIFrame   frame)    
    at   System.Web.UI.Control.LoadRecursive()      
    at System.Web.UI.Page.ProcessRequestMain(Boolean   includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)    
    at   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint,   Boolean includeStagesAfterAsyncPoint)      
    at System.Web.HttpContext.InvokeCancellableCallback(WaitCallback   callback, Object state)    
    at   System.Web.UI.Page.LegacyAsyncPageBeginProcessRequest(HttpContext context, AsyncCallback   callback, Object extraData)    
    at   System.Web.HttpApplication.CallHa...
    17efba9c-d283-80e1-2ddf-9311dd77dd1c
    Line 44039: 09/22/2014 11:50:04.87*
    w3wp.exe (0x15EC)                       
    0x0AAC
    SharePoint Foundation         
    General                       
    ai1wu
    Medium  
    ...ndlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()    
    at   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&   completedSynchronously)    
    at   System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception   error)    
    at   System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext   context, AsyncCallback cb)    
    at   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest   wr, HttpContext context)    
    at   System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr   rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32   flags)    
    at   System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr   rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32   flags)    
    at Sys...
    17efba9c-d283-80e1-2ddf-9311dd77dd1c
    Line 44040: 09/22/2014 11:50:04.87*
    w3wp.exe (0x15EC)                       
    0x0AAC
    SharePoint Foundation         
    General                       
    ai1wu
    Medium  
    ...tem.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr   pHandler, RequestNotificationStatus& notificationStatus)    
    at   System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler,   RequestNotificationStatus& notificationStatus)    
    at   System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr   rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32   flags)    
    at   System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr   rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32   flags)  
    17efba9c-d283-80e1-2ddf-9311dd77dd1c
    Line 44041: 09/22/2014 11:50:04.87 
    w3wp.exe (0x15EC)                       
    0x0AAC
    SharePoint Foundation         
    General                       
    8e2s
    Medium  
    Unknown SPRequest error occurred. More information: 0x80070005
    17efba9c-d283-80e1-2ddf-9311dd77dd1c
    Line 44042: 09/22/2014 11:50:04.87 
    w3wp.exe (0x15EC)                       
    0x0AAC
    SharePoint Foundation         
    General                       
    aix9j
    High    
    SPRequest.OpenWeb: UserPrincipalName=, AppPrincipalName=   ,bstrUrl=https://intranet.mycompany.com/poles/crc/wiki/_layouts/15/WopiFrame.aspx?sourcedoc=/poles/crc/wiki/Documents/confidentiality   - data protection_SDE_2014.05.06_v1.0.pptx&action=embedview&wdAr=1.3333333333333332
    17efba9c-d283-80e1-2ddf-9311dd77dd1c
    Line 44043: 09/22/2014 11:50:04.89 
    w3wp.exe (0x15EC)                       
    0x0AAC
    SharePoint Foundation         
    General                       
    ai1wu
    Medium  
    System.UnauthorizedAccessException: Access is denied. (Exception from   HRESULT: 0x80070005 (E_ACCESSDENIED)), StackTrace:   
    at   Microsoft.SharePoint.SPWeb.InitWeb()      
    at Microsoft.SharePoint.SPWeb.get_WebTemplateConfiguration()    
    at   Microsoft.SharePoint.WebControls.ScriptLink.InitJs_Register(Page page)    
    at   Microsoft.SharePoint.WebControls.ScriptLink.RegisterForControl(Control ctrl,   Page page, String name, Boolean localizable, Boolean defer, Boolean   loadAfterUI, String language, Boolean injectNoDefer, Boolean   controlRegistration,
    Boolean loadInlineLast, Boolean ignoreFileNotFound)    
    at   Microsoft.SharePoint.WebControls.ScriptLink.Register(Control ctrl, Page page,   String name, Boolean localizable, Boolean defer, Boolean loadAfterUI, String   language, String uiVersion, String ctag)    
    17efba9c-d283-80e1-2ddf-9311dd77dd1c
    Line 44044: 09/22/2014 11:50:04.89*
    w3wp.exe (0x15EC)                       
    0x0AAC
    SharePoint Foundation         
    General                       
    ai1wu
    Medium  
    ...at Microsoft.SharePoint.WebControls.ScriptLink.Register(String   uiVersion, Control ctrl, Page page, String name, Boolean localizable, Boolean   defer)    
    at   Microsoft.SharePoint.WebControls.ScriptLink.Register(Control ctrl, Page page,   String name, Boolean localizable, Boolean defer)    
    at   Microsoft.SharePoint.WebControls.ScriptLink.GetOnDemandScriptKey(String   strKey, String strFile, Boolean registerDependencies, Control ctrl, Page   page)    
    at   Microsoft.SharePoint.WebControls.ScriptLink.RegisterOnDemand(Control ctrl,   Page page, String strKey, String strFile, Boolean localizable)    
    at Microsoft.SharePoint.WebControls.ScriptLink.RegisterOnDemand(Page   page, String strFile, Boolean localizable)      
    at   Microsoft.SharePoint.WebControls.ScriptLink.RegisterForControl(Control ctrl,   Page page, Stri...
    17efba9c-d283-80e1-2ddf-9311dd77dd1c
    Line 44045: 09/22/2014 11:50:04.89*
    w3wp.exe (0x15EC)                       
    0x0AAC
    SharePoint Foundation         
    General                       
    ai1wu
    Medium  
    ...ng name, Boolean localizable, Boolean defer, Boolean loadAfterUI,   String language, Boolean injectNoDefer, Boolean controlRegistration, Boolean   loadInlineLast, Boolean ignoreFileNotFound)    
    at Microsoft.SharePoint.WebControls.ScriptLink.Register(Control   ctrl, Page page, String name, Boolean localizable, Boolean defer, Boolean   loadAfterUI, String language, String uiVersion, String ctag)    
    at Microsoft.SharePoint.WebControls.ScriptLink.RegisterOnDemand(Control   ctrl, Page page, String strKey, String strFile, Boolean localizable)    
    at   Microsoft.SharePoint.WebControls.ScriptLink.OnLoad(EventArgs e)    
    at   System.Web.UI.Control.LoadRecursive()      
    at System.Web.UI.Control.LoadRecursive()    
    at   System.Web.UI.Control.LoadRecursive()      
    at System.Web.UI.Control.LoadRecursive()    
    at System....
    17efba9c-d283-80e1-2ddf-9311dd77dd1c
    Line 44046: 09/22/2014 11:50:04.89*
    w3wp.exe (0x15EC)                       
    0x0AAC
    SharePoint Foundation         
    General                       
    ai1wu
    Medium  
    ...Web.UI.Control.LoadRecursive()      
    at System.Web.UI.Page.ProcessRequestMain(Boolean   includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)    
    at System.Web.UI.Page.ProcessRequest(Boolean   includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)    
    at   System.Web.UI.Page.ProcessRequest()      
    at System.Web.UI.Page.ProcessRequest(HttpContext context)    
    at   System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter   writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path,   VirtualPath filePath, String physPath, Exception error, String   queryStringOverride)    
    at   System.Web.HttpServerUtility.Execute(String path, TextWriter writer, Boolean   preserveForm)    
    at   System.Web.HttpServerUtility.Transfer(String path)    
    at Microsoft.SharePoin...
    17efba9c-d283-80e1-2ddf-9311dd77dd1c
    Line 44047: 09/22/2014 11:50:04.89*
    w3wp.exe (0x15EC)                       
    0x0AAC
    SharePoint Foundation         
    General                       
    ai1wu
    Medium  
    ...t.Utilities.SPUtility.TransferToErrorPage(String message, String   linkText, String linkUrl)    
    at   Microsoft.SharePoint.ApplicationPages.WOPIFrameHelper.OnLoadHelper(WOPIFrame   frame)    
    at   Microsoft.SharePoint.ApplicationPages.WOPIFrameHelper.OnLoad(WOPIFrame   frame)    
    at   System.Web.UI.Control.LoadRecursive()      
    at System.Web.UI.Page.ProcessRequestMain(Boolean   includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)    
    at   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint,   Boolean includeStagesAfterAsyncPoint)      
    at System.Web.HttpContext.InvokeCancellableCallback(WaitCallback   callback, Object state)    
    at   System.Web.UI.Page.LegacyAsyncPageBeginProcessRequest(HttpContext context, AsyncCallback   callback, Object extraData)    
    at   System.Web.HttpApplicati...
    17efba9c-d283-80e1-2ddf-9311dd77dd1c
    Line 44048: 09/22/2014 11:50:04.89*
    w3wp.exe (0x15EC)                       
    0x0AAC
    SharePoint Foundation         
    General                       
    ai1wu
    Medium  
    ...on.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()    
    at   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&   completedSynchronously)    
    at   System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception   error)    
    at   System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext   context, AsyncCallback cb)    
    at   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest   wr, HttpContext context)    
    at   System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr   rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32   flags)    
    at   System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr   rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32   flags) 
    17efba9c-d283-80e1-2ddf-9311dd77dd1c
    Line 44049: 09/22/2014 11:50:04.89*
    w3wp.exe (0x15EC)                       
    0x0AAC
    SharePoint Foundation         
    General                       
    ai1wu
    Medium  
    ...   at   System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler,   RequestNotificationStatus& notificationStatus)    
    at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr   pHandler, RequestNotificationStatus& notificationStatus)    
    at   System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr   rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32   flags)    
    at   System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr   rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32   flags)  
    17efba9c-d283-80e1-2ddf-9311dd77dd1c
    Line 44051: 09/22/2014 11:50:04.89 
    w3wp.exe (0x15EC)                       
    0x0AAC
    SharePoint Foundation         
    General                       
    ajji6
    High    
    Unable to write SPDistributedCache call usage entry.
    17efba9c-d283-80e1-2ddf-9311dd77dd1c
    Line 44052: 09/22/2014 11:50:04.89 
    w3wp.exe (0x15EC)                       
    0x0AAC
    SharePoint Foundation         
    General                       
    8e2s
    Medium  
    Unknown SPRequest error occurred. More information: 0x80070005
    17efba9c-d283-80e1-2ddf-9311dd77dd1c
    Line 44053: 09/22/2014 11:50:04.89 
    w3wp.exe (0x15EC)                       
    0x0AAC
    SharePoint Foundation         
    General                       
    aix9j
    High    
    SPRequest.OpenWeb: UserPrincipalName=, AppPrincipalName=   ,bstrUrl=https://intranet.mycompany.com/poles/crc/wiki/_layouts/15/WopiFrame.aspx?sourcedoc=/poles/crc/wiki/Documents/confidentiality   - data protection_SDE_2014.05.06_v1.0.pptx&action=embedview&wdAr=1.3333333333333332
    17efba9c-d283-80e1-2ddf-9311dd77dd1c
    Line 44057: 09/22/2014 11:50:04.89 
    w3wp.exe (0x15EC)                       
    0x0AAC
    SharePoint Foundation         
    General                       
    ai1wu
    Medium  
    System.UnauthorizedAccessException: Access is denied. (Exception from   HRESULT: 0x80070005 (E_ACCESSDENIED)), StackTrace:   
    at   Microsoft.SharePoint.SPWeb.InitWeb()      
    at Microsoft.SharePoint.SPWeb.get_EnableMinimalDownload()    
    at   Microsoft.SharePoint.WebControls.DeltaPage.RenderToBase(HtmlTextWriter   writer)    
    at   Microsoft.SharePoint.WebControls.DeltaPage.Render(HtmlTextWriter writer)    
    at   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer,   ControlAdapter adapter)    
    at   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,   Boolean includeStagesAfterAsyncPoint)      
    at System.Web.UI.Page.ProcessRequest(Boolean   includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)    
    at   System.Web.UI.Page.ProcessRequest()      
    at System.Web.UI.Page.P...
    17efba9c-d283-80e1-2ddf-9311dd77dd1c
    Line 44058: 09/22/2014 11:50:04.89*
    w3wp.exe (0x15EC)                       
    0x0AAC
    SharePoint Foundation         
    General                       
    ai1wu
    Medium  
    ...rocessRequest(HttpContext context)      
    at System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler,   TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath   path, VirtualPath filePath, String physPath, Exception error, String   queryStringOverride)    
    at   System.Web.HttpServerUtility.Execute(String path, TextWriter writer, Boolean   preserveForm)    
    at System.Web.HttpServerUtility.Transfer(String   path)    
    at   Microsoft.SharePoint.Utilities.SPUtility.TransferToErrorPage(String message,   String linkText, String linkUrl)    
    at   Microsoft.SharePoint.ApplicationPages.WOPIFrameHelper.OnLoadHelper(WOPIFrame   frame)    
    at   Microsoft.SharePoint.ApplicationPages.WOPIFrameHelper.OnLoad(WOPIFrame   frame)    
    at System.Web.UI.Control.LoadRecursive()    
    at System.Web.UI.Page.Pro...
    17efba9c-d283-80e1-2ddf-9311dd77dd1c
    Line 44059: 09/22/2014 11:50:04.89*
    w3wp.exe (0x15EC)                       
    0x0AAC
    SharePoint Foundation         
    General                       
    ai1wu
    Medium  
    ...cessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean   includeStagesAfterAsyncPoint)    
    at   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint,   Boolean includeStagesAfterAsyncPoint)      
    at System.Web.HttpContext.InvokeCancellableCallback(WaitCallback   callback, Object state)    
    at   System.Web.UI.Page.LegacyAsyncPageBeginProcessRequest(HttpContext context, AsyncCallback   callback, Object extraData)    
    at   System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()    
    at System.Web.HttpApplication.ExecuteStep(IExecutionStep   step, Boolean& completedSynchronously)      
    at   System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception   error)    
    at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext   ...
    17efba9c-d283-80e1-2ddf-9311dd77dd1c
    Line 44060: 09/22/2014 11:50:04.89*
    w3wp.exe (0x15EC)                       
    0x0AAC
    SharePoint Foundation         
    General                       
    ai1wu
    Medium  
    ...context, AsyncCallback cb)       at   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest   wr, HttpContext context)    
    at   System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr   rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32   flags)    
    at   System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr   rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32   flags)    
    at   System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler,   RequestNotificationStatus& notificationStatus)    
    at   System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler,   RequestNotificationStatus& notificationStatus)    
    at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr   ro...
    17efba9c-d283-80e1-2ddf-9311dd77dd1c
    Line 44061: 09/22/2014 11:50:04.89*
    w3wp.exe (0x15EC)                       
    0x0AAC
    SharePoint Foundation         
    General                       
    ai1wu
    Medium  
    ...otedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData,   Int32 flags)    
    at   System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr   rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32   flags)  
    17efba9c-d283-80e1-2ddf-9311dd77dd1c
    Line 44062: 09/22/2014 11:50:04.89 
    w3wp.exe (0x15EC)                       
    0x0AAC
    SharePoint Foundation         
    General                       
    8e2s
    Medium  
    Unknown SPRequest error occurred. More information: 0x80070005
    17efba9c-d283-80e1-2ddf-9311dd77dd1c
    Line 44063: 09/22/2014 11:50:04.89 
    w3wp.exe (0x15EC)                       
    0x0AAC
    SharePoint Foundation         
    General                       
    aix9j
    High    
    SPRequest.OpenWeb: UserPrincipalName=, AppPrincipalName=   ,bstrUrl=https://intranet.mycompany.com/poles/crc/wiki/_layouts/15/WopiFrame.aspx?sourcedoc=/poles/crc/wiki/Documents/confidentiality   - data protection_SDE_2014.05.06_v1.0.pptx&action=embedview&wdAr=1.3333333333333332
    17efba9c-d283-80e1-2ddf-9311dd77dd1c
    Line 44064: 09/22/2014 11:50:04.89 
    w3wp.exe (0x15EC)                       
    0x0AAC
    SharePoint Foundation         
    General                       
    ai1wu
    Medium  
    System.UnauthorizedAccessException: Access is denied. (Exception from   HRESULT: 0x80070005 (E_ACCESSDENIED)), StackTrace:   
    at   Microsoft.SharePoint.SPWeb.InitWeb()      
    at Microsoft.SharePoint.SPWeb.get_EnableMinimalDownload()    
    at   Microsoft.SharePoint.WebControls.DeltaPage.RenderToBase(HtmlTextWriter   writer)    
    at   Microsoft.SharePoint.WebControls.DeltaPage.Render(HtmlTextWriter writer)    
    at   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer,   ControlAdapter adapter)    
    at   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,   Boolean includeStagesAfterAsyncPoint)      
    at System.Web.UI.Page.ProcessRequest(Boolean   includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)    
    at   System.Web.UI.Page.ProcessRequest()      
    at System.Web.UI.Page.P...
    17efba9c-d283-80e1-2ddf-9311dd77dd1c
    Line 44065: 09/22/2014 11:50:04.89*
    w3wp.exe (0x15EC)                       
    0x0AAC
    SharePoint Foundation         
    General                       
    ai1wu
    Medium  
    ...rocessRequest(HttpContext context)      
    at System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler,   TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath   path, VirtualPath filePath, String physPath, Exception error, String   queryStringOverride)    
    at   System.Web.HttpServerUtility.Execute(String path, TextWriter writer, Boolean   preserveForm)    
    at System.Web.HttpServerUtility.Transfer(String   path)    
    at   Microsoft.SharePoint.Utilities.SPUtility.TransferToErrorPage(String message,   String linkText, String linkUrl)    
    at   Microsoft.SharePoint.ApplicationPages.WOPIFrameHelper.OnLoadHelper(WOPIFrame   frame)    
    at   Microsoft.SharePoint.ApplicationPages.WOPIFrameHelper.OnLoad(WOPIFrame   frame)    
    at System.Web.UI.Control.LoadRecursive()    
    at System.Web.UI.Page.Pro...
    17efba9c-d283-80e1-2ddf-9311dd77dd1c
    Line 44066: 09/22/2014 11:50:04.89*
    w3wp.exe (0x15EC)                       
    0x0AAC
    SharePoint Foundation         
    General                       
    ai1wu
    Medium  
    ...cessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean   includeStagesAfterAsyncPoint)    
    at   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint,   Boolean includeStagesAfterAsyncPoint)      
    at System.Web.HttpContext.InvokeCancellableCallback(WaitCallback   callback, Object state)    
    at   System.Web.UI.Page.LegacyAsyncPageBeginProcessRequest(HttpContext context, AsyncCallback   callback, Object extraData)    
    at   System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()    
    at System.Web.HttpApplication.ExecuteStep(IExecutionStep   step, Boolean& completedSynchronously)      
    at   System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception   error)    
    at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext   ...
    17efba9c-d283-80e1-2ddf-9311dd77dd1c
    Line 44067: 09/22/2014 11:50:04.89*
    w3wp.exe (0x15EC)                       
    0x0AAC
    SharePoint Foundation         
    General                       
    ai1wu
    Medium  
    ...context, AsyncCallback cb)       at   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest   wr, HttpContext context)    
    at   System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr   rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32   flags)    
    at   System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr   rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32   flags)    
    at   System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler,   RequestNotificationStatus& notificationStatus)    
    at   System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler,   RequestNotificationStatus& notificationStatus)    
    at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr   ro...
    17efba9c-d283-80e1-2ddf-9311dd77dd1c
    Line 44068: 09/22/2014 11:50:04.89*
    w3wp.exe (0x15EC)                       
    0x0AAC
    SharePoint Foundation         
    General                       
    ai1wu
    Medium  
    ...otedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData,   Int32 flags)    
    at   System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr   rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32   flags)  
    17efba9c-d283-80e1-2ddf-9311dd77dd1c
    Line 44069: 09/22/2014 11:50:04.89 
    w3wp.exe (0x15EC)                       
    0x0AAC
    SharePoint Foundation         
    Micro Trace                   
    uls4
    Medium  
    Micro Trace Tags: 0 nasq,1 agb9s,1 aib35,13 aib35,2 aat87,0 aix9j,0   ai1wu,0 aix9j,0 ai1wu,3 ajji6,1 aix9j,0 ai1wu,0 aix9j,0 ai1wu
    17efba9c-d283-80e1-2ddf-9311dd77dd1c
    Line 44070: 09/22/2014 11:50:04.89 
    w3wp.exe (0x15EC)                       
    0x0AAC
    SharePoint Foundation         
    Monitoring                    
    b4ly
    Medium  
    Leaving Monitored Scope (Request   (GET:https://intranet.mycompany.com:443/poles/crc/wiki/_layouts/15/WopiFrame.aspx?sourcedoc=/poles/crc/wiki/Documents/confidentiality%20-%20data%20protection_SDE_2014.05.06_v1.0.pptx&action=embedview&wdAr=1.3333333333333332)).
      Execution Time=33.433439166151
    17efba9c-d283-80e1-2ddf-9311dd77dd1c

  • Swing component's margin in a frame

    Hello all,
    When you set the bounds of a Swing component in a frame, it will automatically apply those bounds to the VISIBLE part of the frame, so that, a Y value of 0, for example, will not be at the very top of the frame, but right underneath the title bar of the frame. If you give a regular AWT a value of 0 to it's Y coordinate, part (or all) of it will be covered by the title bar of the frame. This does not happen with Swing components, which automatically add the height of the title bar to the value you give to their Y coordinate.
    Now, what I want to know is, how can I retrieve the value of that "automatic margin"?. How can I know the number of pixels that the Swing component is being slided down, in order to save the title bar of the frame? This value can not be constant, since it will differ from one platform to another, and from one Look 'n Feel to another, but I have not been able to find out the way to get the value that it's being applied in each case.
    As allways, many thanks in advance for your help.

    Don't know if there is any direct way to get this information. But, assuming the border width/height is equal on all four sides you could try something like:
    Dimension frameD = frame.getSize();
    Dimension contentD = frame.getContentPane().getSize();
    int borderWidth = frameD.width - contentD.width;
    int titleHeight = frameD.height - contentD.height - borderWidth;

  • EHP5 Stack File is invalid: component 'EA-HR' (stack release 600 source .

    Hi all . . .
    Attempting to install EHP5 on ERP ABAP stack. Currently on EHP4 SPS5.
    During the configuration roadmap step, the Stack configuration overview told me that "for the following components, a Component Upgrade/Installation and/or Support Packages will be included according to the selected EhP stack configuration . . . " and it proceeded to list the various compoents and their intended releases. During that, I did take note that it wanted to move EA-HR to 600 SPLevel 0059 . . . I was surprised by this, yet I pressed on.
    Now, during the Information Gathering phase (PREP_EXTENSION/SUBMOD_EXTENSION_NEW/EHP_INCLUSION) I received the error:
    Last error code set: Stack file is invalid: component 'EA-HR' (stack release 600 < source release 604)
    I understand that it is trying to tell me that the component is trying to install a release lower than what is already installed. The problem is, I do not know how to go about fixing it.
    Any suggestions?
    Thanks,
    Bryan Montgomery

    Hello Bryan,
    I believe the best and fastest way to have EA-HR upgraded to 605 is to unselect this usage type in MOPZ, regenerate the XML without it, upgrade the rest of the system to EhP5 level and, afterwards, upgrade only EA-HR to 605 level using SAINT.
    Please make sure to check the EHP5 manuals:
    http://service.sap.com/swdc
      -> Ramp-Up Releases and Beta Software
        -> Installation and Upgrade
          -> EHP5 FOR SAP ERP 6.0
           -> Technical Documentation
    and these notes:
    #1323537 - Release Info SAP Enhancement Package 5 for SAP ERP 6.0
    #1304648 - SAP ERP Enhan.Pk.5 SP Stack 01(10/2009) - Release Information Note
    Best regards,
    Tomas Black

  • Help to show a HTML file in Swing

    Hiiiiiiiiiii,
    During my development Me in a problem . Please help me out.
    As per my current context of the project I have to develop a HTML page with Help of CSS and all other things. After that I have to Show the HTML file through Swing. I know how to attach a file with help of URL but need some help to show a HTML file in Swing.
    *help to show a HTML file in Swing*

    As camickr said Javascript support is not available. If you want to support you have to write code for that. Up to an extent CSS support is provided.
    Sample code to display HTML pages in JTexPane (you can use JEditorPane as well):
    Construct the URL:
    URL url = YourClass.class.getResource("resources/Hello.html");
    // If YourClass is in package test.html, then your html page must be available in .....test/html/resources directory.
    // And your CSS files must be accessible from your HTML page. This you can test by simply opening the html
    // page in your favorite browser.And then call setPage() method of HelpDataPane. Note that, HelpDataPane supports hyperlink activation.
    import java.io.IOException;
    import java.net.URL;
    import javax.swing.JTextPane;
    import javax.swing.event.HyperlinkEvent;
    import javax.swing.event.HyperlinkListener;
    * A pane to display help pages. Help pages are accessed as URL and displayed
    * in this pane.
    * @author Mrityunjoy Saha
    * @version 1.0
    public class HelpDataPane extends JTextPane {
         * Creates a new instance of {@code HelpDataPane}.
        public HelpDataPane() {
            super();
            this.addHyperlinkListener(new HyperlinkListener() {
                public void hyperlinkUpdate(HyperlinkEvent e) {
                    if (e.getEventType().equals(HyperlinkEvent.EventType.ACTIVATED)) {
                        setPage(e.getURL());
         * Sets the current URL being displayed.  The content type of the
         * pane is set, and if the editor kit for the pane is
         * non-{@code null}, then
         * a new default document is created and the URL is read into it.
         * @param page The URL to be displayed.
        @Override
        public void setPage(URL page) {
            try {
                super.setPage(page);
            } catch (IOException ex) {
                try {
                    URL blankURL = YourClass.class.getResource("resources/Blank.html");
                    super.setPage(blankURL);
                } catch (IOException ioe) {
                    ioe.printStackTrace();
    }Thanks,
    Mrityunjoy

  • How to set a Swing component as Modal window on a SWT Component.?

    How to set a Swing component as Modal on a SWT Component.I mean, I have a window (SWT Container) with some menu items.
    When I click on one menu item then i will get one new Swing Window.
    When creating the new frame I had passed Modal value as TRUE in the constructer.Now child is not behaving as Modal Window.I mean I am able to go to parent window even though the child window is opened as a Modal Window.This is only happened when I double click on the Title Bar of the Parent Window.
    If I try to click on any other part of the Parent Window except Title bar ... the child window is working as a Modal Window.
    Can any one suggest me to solve this one !!

    int this case, do this :
    JFrame f = new JFrame("Authentification");
    f.getContentPane().setLayout(new BorderLayout());
    f.getContentPane().add(myJPanel, BorderLayout.CENTER);
    f.setBounds(x,y,w,h);
    f.setVisible(true);
    Where myJPanel is the Panel you developped.

  • How to set a Swing component as Modal on a SWT Component?

    How to set a Swing component as Modal on a SWT Componen?.I mean, I have a SWt Component window and from that window I am displaying a SWING Component Modal window.
    The problem is my swing window is not working as Modal always.
    When I opened the swing window from SWT window,swing window is working as Modal.But if Idouble click on Menubar or Title bar of the SWT Window then my Swing window goes back.If I click on any other part of the SWT window.. then once again Swing window is working as modal.
    Can any one suggest me to solve this?
    I think this is isuue related with Swing over SWT..

    pradeep.rajadurai wrote:
    I want set the JTable as a background of jframe or jinternalframe , how it is possible One way that may work, you can always extract the image from a rendered JTable and then paint the same image into the JPanel that holds your components via it's paintComponent method, then added the JPanel to the app's contentPane.
    give me simple pgmIs English your second language? Because if so, please understand that this demand can be taken by some as rude.

  • Support for Multilingual Numeral Input in JTextField swing component

    When the User Locale is changed from the regional & language options in the control panel and the standard digits are customized to a non Latin character set, all the windows applications adhere to the changes made. HTML also respects the changes in effect and displays any numeric values using the new character set, which are the national digits for many Eastern Locales such as Chinese, Arabic(Saudi Arabia), Urdu and many more. The JTextField swing component given by java, however, does not show any support to the new settings. Any numeric input is displayed in the Latin character set even when the input locale of the system is also changed respectively. Any text input for this case is correctly displayed in the desired literals and appropriate glyphs. However, unlike the AWT components, numeral input and display is not catered as per the user/developer's requirements. This behavior was first noticed in 2007, as far as i have found out, and was reported once again on the same thread in 2010. The thread is given below as a reference. No action or response has been taken. Kindly look into this matter and please let me know if this bug has been reported before and if there is any intent of providing a fix for it.
    Reference: http://www.coderanch.com/t/344075/GUI/java/Multilingual-support-JTextField
    Regards,
    Aitzaz Ahmad
    Software Engineer
    SENSYS

    I too had an itch to reply with something like this
    This is a sign of work well done!
    The WD has so strong UI abstraction, that hides client-server nature applications almost completely. If you search forum, you will even find posts where developers try to upgrade value of ProgressMeter in <b>for</b> loop )
    VS

  • Must render every file first????

    Hi,
    From reading other posts this sounds like it may be a firewire/pci card/ external hard drive issue. I cannot import onto my external hd (which is set up for Mac OS extended) from FCP. I either have to import onto the G5's internal HD then copy onto the external hd or use iMovie to import clips directly to external hd. But now that they are there, when I bring them into a FCP project, they hiccup in the viewer and when I drag them into the timeline, they all have to be rendered first. I have never had that problem. It is already a hassle enough the way I have to get clips onto the external hd, am I stuck with rendering each clip or is there a setting that I must not have right.
    Thanks
    Dave
    PS Each clip plays just fine as a standalone Quicktime File.

    Don't capture with iMovie. It saves as a different type of file that FCP does not like.
    Make sure your sequence settings match the clips you are putting on there (which will be impossible for files captured in imovie). The biggest cause of having to render every file is sequence settings that don't match the video clips being put on the sequence.
    Search first. This comes up daily.

  • Swing component for awt.canvas

    Hi,
    Can anyone tell me the equivalent SWING component for awt CANVAS. I need it because i need to display only Images (nothing else) on it. If anyone can tell how I can do it.

    JPanel is the Swing-equivalent of java.awt.Canvas, but if you are just displaying images, you can use the JLabel class, which supports use of images as icons (see also ImageIcon class).
    Mitch Goldstein
    Author, Hardcore JFC (Cambridge Univ Press)
    [email protected]

Maybe you are looking for

  • Not able to copy files to HD even when plenty of space

    Hello, please help! I need to work out how to transfer something back to my HD from an external HD. I temporarily transferred my APerture library (129 GB) to my external hd to create space while I tidied up my Itunes library, which is now tidy, whic

  • Analog sound out of SPDIF

    Analog sound out of SPDIF' I have connected a digital coax cable from the digital out to a Harman Kardon stereo receiver. The cable has been run to another room in order to watch downloaded shows/movies in my living room. I receive DTS and DD sound j

  • Unlocking creative Live! Cam Network Pro

    I just installed Li've cam network Pro and the the camera screen just shows a black sacreen with a padlock over stick figures. I assume this is the parental control that was mentioned in the installation. Where do I go to put in the password to unloc

  • Premiere 6.5 en Windows XP

    Tengo instalada una miro dc 30 en windows XP y al comenzar a trabajar con Adobe Premiere 6.5 no me permite arrastrar las transiciones hacia el Timeline es decir si puedo colocar los videos 1 y 2 pero al no poder colocar las transiciones no me permite

  • Runing JRockit  on SUN JDK based WLS

    Hello, I have my WLS running on SUN JDK, can I still use JRockit mission control to monitor stuff. I tried connecting to server but unable to connect. pls advice.