Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - jianxu

Pages: [1] 2
1
We set style to the StyledDocument which get from textPane.getStyledDocument().
The text got displayed correctly in Java Console. But the text shown by AjaxSwing loses all the style we defined.

Does AjaxSwing support JTextPane and StyledDocument? Thanks.

2
We have a splash screen when logging in. After the screen pops up, the background stops updating through AjaxSwing.
It looks a little bit strange. A window with a gray background. A refresh (f5) will make background show up.

Is there any way to force update the background?  Thanks.

3
We have a splash screen popping up during logging in. While through AjaxSwing, there is a title bar and resize grip on the screen.

Is there anyway we can remove the title bar and resize grip from JDialog? Thanks.

4
Like the screen capture attached, JTextArea shows a scroll bar and border even the text is empty.
In Java Swing, the above JTextArea will just show as blank. How can I remove the border and scroll bar from JTextArea in Ajaxswing? Thanks.

5
Hi,

I got a NullPointerException in the log file. And the stack trace is posted below. Can you please let me know what throw the exception?

Thanks.
Jian

   at com.creamtec.ajaxswing.gui.html.DefaultComponentUpdater.updateComponent(DefaultComponentUpdater.java:80)
   at com.creamtec.ajaxswing.gui.html.DefaultJComponentUpdater.updateComponent(DefaultJComponentUpdater.java:282)
   at com.creamtec.ajaxswing.gui.ComponentProcessor.processComponent(ComponentProcessor.java:71)
   at com.creamtec.core.awt.ContainerIterator.processComponent(ContainerIterator.java:101)
   at com.creamtec.core.awt.ContainerIterator.iterate(ContainerIterator.java:65)
   at com.creamtec.core.awt.ContainerIterator.iterate(ContainerIterator.java:71)
   at com.creamtec.core.awt.ContainerIterator.iterate(ContainerIterator.java:71)
   at com.creamtec.core.awt.ContainerIterator.iterate(ContainerIterator.java:71)
   at com.creamtec.core.awt.ContainerIterator.iterate(ContainerIterator.java:71)
   at com.creamtec.core.awt.ContainerIterator.iterate(ContainerIterator.java:71)
   at com.creamtec.core.awt.ContainerIterator.iterate(ContainerIterator.java:71)
   at com.creamtec.core.awt.ContainerIterator.iterate(ContainerIterator.java:71)
   at com.creamtec.core.awt.ContainerIterator.iterate(ContainerIterator.java:71)
   at com.creamtec.core.awt.ContainerIterator.iterate(ContainerIterator.java:71)
   at com.creamtec.core.awt.ContainerIterator.iterate(ContainerIterator.java:71)
   at com.creamtec.core.awt.ContainerIterator.iterate(ContainerIterator.java:71)
   at com.creamtec.core.awt.ContainerIterator.iterate(ContainerIterator.java:71)
   at com.creamtec.core.awt.ContainerIterator.iterate(ContainerIterator.java:71)
   at com.creamtec.core.awt.ContainerIterator.iterate(ContainerIterator.java:71)
   at com.creamtec.core.awt.ContainerIterator.iterate(ContainerIterator.java:71)
   at com.creamtec.core.awt.ContainerIterator.iterate(ContainerIterator.java:71)
   at com.creamtec.ajaxswing.gui.WindowUpdater.updateComponentTreeData(WindowUpdater.java:462)
   at com.creamtec.ajaxswing.gui.WindowUpdater.updateComponents(WindowUpdater.java:254)
   at com.creamtec.ajaxswing.gui.WindowUpdater.emulateRequest(WindowUpdater.java:199)
   at com.creamtec.ajaxswing.core.AjaxSwingThread$1.run(AjaxSwingThread.java:195)

6
One column of a Jtable has a check box. If user checks the checkbox, under some condition, we want to show a popup window through JOptionPane.showConfirmDialog().

But through Ajaxswing, no window will popup. Any idea to solve this problem? Thanks.

7
Commercial Technical Support / How to print from browser
« on: October 20, 2010, 03:28:50 PM »
We have a JTextArea and a JButton. We attach an actionlistener to JButton. We will print() JTextArea when JButton is clicked.

Is there anyway to make the browser to print the JTextArea.? Thanks.

8
In our log file (XXXX_timestamp.log), we found following log.

2010/10/06 00:52:29:546 : AWT-EventQueue-2 : *** WARNING - retrying to find image for an icon, possibly L&F has been reset
2010/10/06 00:52:29:546 : AWT-EventQueue-2 : [com.creamtec.ajaxswing.rendering.html.positioned.AjaxPage] Failed to find source for icon sun.swing.ImageIconUIResource@9e5e21

What exactly does the log mean? Is there any way I can figure out which image is missing? Please let me if you need more information.
Thanks.

9
Commercial Technical Support / Hyperlink in JEditorPane
« on: September 22, 2010, 10:02:22 AM »
In our code, some JEditorPane contains a Hyperlink (like <html><a href="http://localhost/a.html"<font face="Arial", color="#000000">some text</font></a></html>) and the Hyperlink is also attached with a Listener. When Clicking the Hyperlink, we want the Listener be triggered. it works fine in Swing.

But with AjaxSwing, clicking the Hyperlink will direct browser to the URL of the Hyperlink. The Listener will not be triggered.
Some Custom renders have been created, such as HyperlinkPaneRenderer and BannerButtonsPanelRenderer.

I don't want to create a custom render.
With build 3.0.5, I tried with replacing JEditorPane with JLabel and put the same Hyperlink and Listener to JLabel. It works. Clicking the Hyperlink will trigger the listener.
But recently we upgraded the AjaxSwing to 3.1, the above solution doesn't work any more. Clicking the Hyperlink will direct browser to the URL of the Hyperlink.

Is there any good solution to handle this problem? Thanks.
Please let me know if you need more information.

10
Commercial Technical Support / java.lang.Exception: Stack trace
« on: September 14, 2010, 03:09:46 PM »
Found the following exception. Can you please let me know what could cause it?
If you need more information, please let me know. Thanks.

java.lang.Exception: Stack trace
   at java.lang.Thread.dumpStack(Thread.java:1206)
   at com.creamtec.ajaxswing.core.ClientAgent.getCurrentInstance
(ClientAgent.java:840)
   at
com.creamtec.ajaxswing.gui.AjaxSwingToolkit.getSystemEventQueueImpl
(AjaxSwingToolkit.java:628)
   at java.awt.Toolkit.getEventQueue(Toolkit.java:1676)
   at java.awt.EventQueue.isDispatchThread(EventQueue.java:807)
   at javax.swing.SwingUtilities.isEventDispatchThread
(SwingUtilities.java:1336)
   at javax.swing.JComponent.revalidate(JComponent.java:4788)
   at
javax.swing.plaf.basic.BasicTextUI$RootView.preferenceChanged
(BasicTextUI.java:1394)
   at javax.swing.text.View.preferenceChanged(View.java:272)
   at javax.swing.text.PlainView.updateDamage(PlainView.java:528)
   at javax.swing.text.PlainView.insertUpdate(PlainView.java:425)

11
Commercial Technical Support / KeyListener doesn't work
« on: August 18, 2010, 04:58:03 PM »
We attach a KeyListener to a JPasswordField. Based on the password user inputs, keyReleased() will draw the strength of the password.

But, KeyListener never gets triggered, when I change the JPasswordField through ajaxswing.
Through Java console, KeyListener works fine.

I wonder how KeyListener work in ajaxswing. Is it supposed to work with ajaxswing? Thanks.

12
Commercial Technical Support / button ActionListener doesn't work
« on: August 16, 2010, 05:11:55 PM »
Is there any reason that an ActionListener doesn't work with ajaxswing?

I debug the code with Java console, the ActionListener (on a close button) got triggered successfully.
But if I run through ajaxswing, the ActionListener didn't get triggered.

Thanks a lot.

13
I am using RouterRequestFilter to set cookie, but the cookie hasn't been saved in browser.

My code works with the SEPMUpdateMar23 jar files sent by Alexander. The jar files got updated again around 5/10/2010.
And I test my code today and it stops working.

I debug the code and I can see the cookie gets saved in HttpResponseData.
HttpResponseData responseData = ClientAgent.getCurrentInstance().getResponseData();
        responseData.getParams().put(COOKIE_NAME, encryptedCredentialData);
But the break point set in processResponse() (in AjaxSwingCookieImpl implements RouterRequestFilter) has never been triggered.

I set router.httpRequestDataLevel=debug and router.requestFilterClass=com.sygate.scm.console.util.AjaxSwingCookieImpl in default.properties.
I also copied AjaxSwingCookieImpl.class to ...\tomcat\webapps\ajaxswing\WEB-INF\classes\com\sygate\scm\console\util .

What could cause the problem here?

I cannot go back to test my code with SEPMUpdateMar23 jar files, since there are some new apis in the newer jar files.

Please let me know if you need any information. Thanks.

14
Commercial Technical Support / enable the vertical bar for browser
« on: August 13, 2010, 05:23:29 PM »
When connecting console through ajaxswing, if dragging a popup window out of the lower edge of browser, we want to enable a vertical bar.
Could you please let me how to do it? Thanks.

15
Commercial Technical Support / submitonexpend Setting
« on: August 10, 2010, 08:31:14 PM »
I remember Alexander mentioned that there is a setting: submitonexpend (may not be exactly right). I cannot find it at your webpage. Can you please give me more information of it?

submitonexpend is supposed to use when there is a large Tree in Java swing. With this setting, tree expending will happen on server side instead of client side.

Thanks.

Pages: [1] 2