Anybody tried Sun Developer Expert Assistance package on Swing API?

Dear developers -
Earlier, I posted a problem on what appears to be a bug on http://forums.sun.com/thread.jspa?threadID=5344007, where the post went unanswered, thanks to all of you who tried to help by the way. I also reported it as a bug on Oct. 31 (bug # 1380032), which is unanswered and is not visible yet.
Due to how this issue is critical for me, I am considering purchasing the plan show at http://developers.sun.com/services/expertassistance/index.jsp. My question to any one who may have had such an experience with such plans: would they be able to deliver a solution or a decent work-around? Would it be worth the money? And, is it just the $49 or this is just to get them to notice me and then it runs using different rates? I called two 1-800 Sun numbers already and both were not able to give me specific answers.
It is worth it for me if they can solve it; otherwise, and with deep sorrow, I would have to ditch Java for a language I haven't used for the past 8 years now ;-)
I appreciate any input you have shed on this.
Mohsen

Many, many thanks to you Darryl; unfortunately, this glitch is still persistent! I have:
- changed thefont to "Arabic Transparent", and
- added your code snippet to force an RTL run
Also, to make it easier to those who want to give it a spin, I hard-coded a string that jTextPane1 will show when it is run. To reproduce that horrible error I mention in the previous post, simply follow these steps:
- Once running, click the mouse anywhere in the text, you would notice that the caret positioning is correct, going from 0 on the RHS to 15 on the LHS; so far so good.
- Now, add one space to force a word-wrap and hell breaks loose! Notice now that the caret position on the first line is no longer correct, it is reversed, and adding text will go into a different location.
- delete that space again, suddenly, caret positioning regains consciousness and is back to expected behavior!
And this, dear developers, has been my nightmare (truly it is) for several months now.
The code:
package workshop.onframes;
import java.awt.ComponentOrientation;
import java.awt.Font;
import java.awt.Rectangle;
import java.awt.font.TextAttribute;
import java.util.Map;
import javax.swing.event.CaretEvent;
import javax.swing.event.CaretListener;
import javax.swing.text.BadLocationException;
* @author Mohsen Madi
public class NewJFrame1 extends javax.swing.JFrame {
   /** Creates new form NewJFrame1 */
   public NewJFrame1() {
      initComponents();
      this.applyComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
      jTextPane1.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
      Map<TextAttribute, Object> attributes =
              (Map<TextAttribute, Object>) jTextPane1.getFont().getAttributes();
      attributes.put(TextAttribute.RUN_DIRECTION, TextAttribute.RUN_DIRECTION_RTL);
      Font font = Font.getFont(attributes);
      font = font.deriveFont(attributes);
      jTextPane1.setFont(font);
      jTextPane1.setText("&#1575;&#1587;&#1583;&#1601; &#1575;&#1587;&#1583;&#1601; &#1575;&#1587;&#1583;&#1583;&#1575;");
      CaretListener caretListener = new CaretListener() {
         public void caretUpdate(CaretEvent e) {
            int dot = e.getDot();
            int mark = e.getMark();
            if (dot == mark) {
               try {
                  Rectangle cc = jTextPane1.modelToView(dot);
                  System.out.println("Caret text position: " + dot +
                          ", view location (x, y): (" + cc.x + ", " + cc.y + ")");
               } catch (BadLocationException ble) {
                  System.err.println("CTP: " + dot);
            } else if (dot < mark) {
               System.out.println("Selection from " + dot + " to " + mark);
            } else {
               System.out.println("Selection from " + mark + " to " + dot);
      jTextPane1.addCaretListener(caretListener);
   /** This method is called from within the constructor to
    * initialize the form.
    * WARNING: Do NOT modify this code. The content of this method is
    * always regenerated by the Form Editor.
   @SuppressWarnings("unchecked")
   // <editor-fold defaultstate="collapsed" desc="Generated Code">
   private void initComponents() {
      jScrollPane3 = new javax.swing.JScrollPane();
      jTextPane1 = new javax.swing.JTextPane();
      setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
      jTextPane1.setFont(new java.awt.Font("Arabic Transparent", 0, 24)); // NOI18N
      jTextPane1.setAutoscrolls(false);
      jTextPane1.addKeyListener(new java.awt.event.KeyAdapter() {
         public void keyTyped(java.awt.event.KeyEvent evt) {
            jTextPane1KeyTyped(evt);
      jScrollPane3.setViewportView(jTextPane1);
      javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
      getContentPane().setLayout(layout);
      layout.setHorizontalGroup(
         layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
         .addGroup(layout.createSequentialGroup()
            .addContainerGap()
            .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 159, Short.MAX_VALUE)
            .addContainerGap())
      layout.setVerticalGroup(
         layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
         .addGroup(layout.createSequentialGroup()
            .addContainerGap()
            .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
            .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
      pack();
   }// </editor-fold>
    private void jTextPane1KeyTyped(java.awt.event.KeyEvent evt) {                                   
       if (evt.getKeyChar() == 'a') {
          evt.setKeyChar('\u0627');
       } else if (evt.getKeyChar() == 's') {
          evt.setKeyChar('\u0633');
       } else if (evt.getKeyChar() == 'd') {
          evt.setKeyChar('\u062f');
       } else if (evt.getKeyChar() == 'f') {
          evt.setKeyChar('\u0641');
       } else if (evt.getKeyChar() == 'g') {
          evt.setKeyChar('\u062c');
       } else if (evt.getKeyChar() == 'h') {
          evt.setKeyChar('\u0647');
       } else if (evt.getKeyChar() == 'j') {
          evt.setKeyChar('\u062c');
       } else if (evt.getKeyChar() == 'k') {
          evt.setKeyChar('\u0643');
       } else if (evt.getKeyChar() == 'l') {
          evt.setKeyChar('\u0644');
    * @param args the command line arguments
   public static void main(String args[]) {
      java.awt.EventQueue.invokeLater(new Runnable() {
         public void run() {
            new NewJFrame1().setVisible(true);
   // Variables declaration - do not modify
   private javax.swing.JScrollPane jScrollPane3;
   private javax.swing.JTextPane jTextPane1;
   // End of variables declaration
}

Similar Messages

  • Gcc and gdb integration in Sun Developer 11

    Is it possible (and how easy) to integrate gcc and gdb into Sun Developer Studio 11. Also, if yes, would one be able to use any of the visual debugging functionality (setting breakpoints etc..) in the Studio.

    Are you running a remote X server from your PC? If so, thats probably
    the problem. I suggest trying vnc instead. Its better at passing all
    chararcters than remote X servers. There is a white paper on using
    vnc at http://developers.sun.com/prodtech/cc/articles/vnc.html.
    The type of problem you're seeing is fairly typical of many Motif or
    X11 applications run via a remote X server.
    If that doesn't work then I don't have an immediate alternative. My
    group (the Sun Studio IDE team) is working with several NetBeans
    groups and are considering adding gdb support to the NetBeans
    C/C++ Native Development Module, but that effort is just getting
    started and nothing would be available very soon (the gdb effort
    probably won't even get scheduled in the near future). But we're
    likely to do it eventually.

  • Com.sun.image.codec.jpeg package and different platforms?

    I heard that this package is SunOS specific. Is that true? What platforms does it support for real?
    I have been trying to find more info than just the API documentation and haven't succeeded so far. Anybody know where I can retrieve more info on that package?

    Java is platform independent right? .. bundle the packages you use (that's not in the JDK) and it will work on *nix as well.
    You can usa tool like JDeploy (use google) to find out class dependencies etc. when you bundle your JAR (although this won't work if you use class.forName() etc.);
    - bjorn

  • Com.sun.image.codec.jpeg package

    I need some help. My predecessor created an application that calls the "com.sun.image.codec.jpeg" package. The client's java installation is the standard install and does not include this package. How do I find, download and install this in the client's environment? Also the client is running NT 4.0 Workstation. Thanks!

    I need some help. My predecessor created an
    application that calls the "com.sun.image.codec.jpeg"
    package. The client's java installation is the
    standard install and does not include this package.
    How do I find, download and install this in the
    client's environment? Also the client is running NT
    4.0 Workstation. Thanks!What does "standard install" mean? What version of the jre are they using? You can find out by typing:
    java -version
    Packages that begin com.sun... aren't part of the standard API, and aren't guaranteed to be supported -- as you are painfully aware. This particular package was for doing jpeg image I/O. If your client is using jre version 1.4, you can use javax.imageio.ImageIO to do this. If your predecessor was doing some straightforward I/O, the changes could only be a few lines -- more easily done than trying to install non-standard packages...

  • Mini DVI to DVI + DVI to video out - anybody tried this on Macbook white?

    Hi there,
    reading the posts in the forum it seems quite clear that the mini DVI to video adapter is not compatible with the new Macbook white (early 09).
    Has anybody tried to use a mini DVI to DVI and a DVI to video adapter together? In theory this combination should work but it is possible that Apple has done something to make this combination not working.
    If that is not possibl, has anybody got any other ideas on how to connect a Macbook to a standard tv with the 3 RCA pins (yellow for video and red and white for audio)?
    Thanks a lot
    Mike

    No, Mini DVI to DVI and then DVI to Video won't work either. But this will work used in conjunction with a Mini DVI to VGA Adapter:
    http://tinyurl.com/5qxjqm

  • Has anybody tried the Day-Timer iPhone App -  Syncs. Calendar + Todo list?

    I have had my iPhone 3Gs calender sync. break several times,
    and honestly none of them seem to be my "fault". I stumbled across this app. and for $6 I'd take the cowards way out rather than try to fix my current broken sync. problem with iTunes. Has anybody tried this?
    http://www.daytimer.com/iphoneapps/
    Frankly the demo. seems pretty clever:
    http://www.youtube.com/watch?v=s7FDiy5PsfU
    I have not connection with Day-Timer company... other than being a potential customer

    Vlingo doesn't consume all the app memory space itself... it can be used by a number of factors, including the browser cache.
    Your unintall of Vlingo also caused a reboot of the device in which all the free memory space was cleared, from routine use of the BB device.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Bridge cc will not open after trying to add patch aom package (adobe output module) to workspace

    bridge cc will not open after trying to add patch aom package (adobe output module) to workspace. this patch was recommended by adobe help to allow creating pdf presentations. the help stated bridge cc was shipped without this and to download aom package win 64. I tried that, and either did something wrong or? I deleted bridge cc 64 bit, then went to cc and downloaded bridge cc (not sure if it is 32 or 64) and the program still does not open. any ideas?

    There are lots of threads on this.  Do a web search.

  • Anybody installed Sun Application Server 7 in linux 8 or linux 9

    hi all
    i am not able to install Sun one Application Server 7 in linux 8.
    i am able to install Sun one Application Server 7 in linux 9 but while starting using command like this
    /asadmin start-appserv
    Instance domain1:admin-server already started
    Could not start the instance: domain1:server1
    server failed to start: abnormal subprocess termination
    Could not start one or more instances in the domain : domain1
    Could not start one or more domains
    if anybody installed sun one applicaton server7 in linux 9 ,pls help me .
    And also do not know linux 9 support sun one applicaton server7 or not .
    replay me

    Which Linux distro? Red hat?

  • Error Code 1000 when trying to run Backup Assistant Plus.

    I am getting backup failed and Error Code 1000 when trying to run Backup Assistant Plus.  Have not been able to backup for several weeks.Droid Razr Maxx.

        Hi ellendritz- We are dedicated to make it easier to backup your data! We have integrated Backup Assistant with the Verizon Cloud service offering you many more features and 5GB of storage free! Visit http://www.vzw.com/cloud for more details. The Verizon Cloud app is currently available for download in the Google PlayStore. Please attempt backup with the new application and keep me posted on the status as I would be happy to offer additional support if needed.
    Thank you,
    YaleK_VZW
    Follow us on Twitter @VZWsupport

  • Anybody tried Geil DDR3 and X48C

    ntel duo core 8400@3Ghz (9x333)
    2gb DDR3 1333 Patriot at 1.63v 9-9-9-24  PDC32G1333ELK
    X48C Platinum bios version 7.2
    PC Power&Cooling 750 Silencer PSU
    MSI 8800GT nx88000gt 512mb 660/950
    Samsun F1 750gb HD SATAII
    Sound Blaster XFI Gamer sound
    Viewsonic VG2230 22" LCD monitor
    WinXP SP2 32bit
    I was looking at getting some Geil ddr3 modules and had two questions. The modules I'm looking at are the PC3 12800 1600MHz 8-8-8 http://www.geil.com.tw/products/showSpec/id/138 
    1) Has anybody tried Geil ddr3 with this mobo and if so, did you have any problems with the combination of these products.
    2) Do the timings need to be altered for getting a 4gb (2x2gb) set?

    Quote from: rlb9682
    I Just bought some Patriot DDR3 1333 memory 1.5v 9-9-9-24 Model# PDC32G133ELK
    That looks like a real DDR3-1333
    ( http://www.patriotmemory.org/products/detailp.jsp?prodline=5&catid=13&prodgroupid=71&id=697&type=1 )
    However, most of the Patriot DDR3-1333 are overvoltaged DDR3-1066.
    Try to test their stability at 7-7-7-21 and 1.7V
    good luck

  • Has anybody tried creating and validating a XML doc with XML Schema?

    Hi,
    Has anybody tried creating and validating a XML doc with XML Schema?

    With XMLBeans, an XML document may be created from and validated with an XML schema.

  • I'm trying to use migration assistant to transfer applications from my imac to macbook. Using either a firewire or network, as I'm waiting to select items to migrate, I receive an error message that "the application quit unexpectedly". My imac is newer.

    I'm trying to use migration assistant to transfer applications from my newer imac to an older macbook (10.5.8).  I keep getting an error message "application quit unexpectedly" as I'm waiting to select the items to migrate.  I've tried using a firewire cable as well as just a network connection.
    Thank you.

    Here is some information:
    http://support.apple.com/kb/HT4889
    It mentions that migration is not supported with 10.4; now you said you have 10.5 - it may be the same problem. Besides, migration assistant will recognize an older system and move apps etc. over to a newer system - I'm not sure it will do the same thing in reverse.
    And, there are a couple more problems: one is that your newer versions may not be backwards compatible with the old 10.5 and the second is that is you are trying to copy apps so you can use them on both, it most likely violates the SLA (unless you purchased them on MAS).
    So, if none of those two apply, I'd simply try target disk mode (without the assistant) and drag over the apps.

  • HT4413 I am trying to use migration assistant to move everything from snow leopard (10.6.8) to mountain lion (10.8.3) using a direct machine to machine ethernet cable connection but it stalls out at about 17 minutes remaining.  Thoughts on how to proceed?

    I am trying to use migration assistant to move everything from snow leopard (10.6.8) to mountain lion (10.8.3) using a direct machine to machine ethernet cable connection but it stalls out at about 17 minutes remaining.  Thoughts on how to proceed?

    Have you set both to never sleep?
    Is the source (old) Mac's software up to date (including the Migration Assistant for Mac OS X Snow Leopard update)?
    Is the old Mac healthy?  Have you run Verify Disk on it lately?
    The estimates are wildly inaccurate under the best of circumstances.  How long has it been stuck? 

  • Has anybody tried to install RAC on Zones as nodes ?

    Hi guys,
    Could anyone share his experiences about installing Oracle RAC
    on Solaris zones located on single physical machine ?
    I created 2 sparse root zones , presented the same raw devices for ocr and votedisk to them and try to install clusterware,
    but during clusterware initialization there is an error
    OCROSD[1]utsz:3: ioctl DKIOCGAPART failed. errno 48
    Does anybody tried similar configuration ?

    I have not tried this since it is explicitly unsupported by oracle.
    Bjoern

  • I have been trying to develop digital pictures from my ipad2. I don't have iPhoto. When I develop them from Walgreens or snapfish they turn out very fuzzy/blurry. They are crystal clear on my iPad. I know it's not the camera because I developed them befor

    I have been trying to develop digital pictures from my ipad2 photo library. I don't have iPhoto. When I develop them with snapfish or Walgreens they are fuzzy and blurry (low res/pixels). I know it's not the camera because I have printed these same photos before. They are crystal clear on my iPad. I don't know what to try next .

    Contact Snapfish and Walgreens customer/technical support in regards to their digital photo developing service.

Maybe you are looking for

  • Avoid explicit closing tag in XML using graphical mapping

    Hi, I created a data type with an element called TAG1 which has an attribute called attr. I mapped an empty constant to the element and the value XXX to the attribute.  I`m using graphical mapping and the XML I get is the following: <TAG1 attr = u201

  • Display correct date format in report

    Hi All, I have a key figure date type and when I display the report, this field shows a number format and not a date format as i wish. Can you help me with this issue? Any idea? Thank you in advance. Regards, Bruno Rodrigues

  • PI 7.1 NWAPI  monitoring.

    HI,     We are in process of SAP NWAPI configuration for monitoring purpose , https://<hostname:port>/nwapi page contains no information . As per some guides and form answers i found not 1160261 will solve the problem. I tried to find the note 116026

  • How to install solaris when having no physical access to the machine

    Hi, I administer a Dell PowerEdge 2950 server with Windows Server 2003. The machine is in a rack located in a datacenter which I do not have any physical access to. As most of server's systems are working on the Java platform, I'm interested in migra

  • Lines when using the mixer brush?

    PS said my hardware wasn't supported (not suprising, it's just a laptop from where I work), so this might be due to that. Though even things like the roate and larger mixer brush were running smoothly, so I'm not sure what's causing it. I was just pl