The problem of extends

I created a package named test1 in the software Eclipse*, and set two classes named ButtonFrame and ButtonTest to display a panel with two buttons:
{color:#00ccff}{color:#3366ff}package test1;
{color}
{color}
{color:#00ccff}{color:#3366ff}{color:#00ff00}{color:#339966}// Fig. 11.15: ButtonFrame.java
// Creating JButtons.{color}
{color}
import java.awt.FlowLayout;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.JFrame;
import javax.swing.JButton;
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JOptionPane;
{color}
{color}
{color:#00ccff}{color:#3366ff}public class {color:#ff0000}ButtonFrame{color}{color} {color:#3366ff}extends JFrame {
{color}{color}{color:#3366ff}private JButton plainJButton; {color:#339966}// button with just text
{color}private JButton fancyJButton; {color:#339966}// button with icons
{color}
{color}
{color:#3366ff}{color:#339966}// ButtonFrame adds JButtons to JFrame{color}
public ButtonFrame() {
super("Testing Buttons");
setLayout(new FlowLayout()); {color:#339966}// set frame layout{color}
{color}
{color:#00ccff}{color:#3366ff}plainJButton = new JButton("Plain Button"); {color:#339966}// button with text
{color}add(plainJButton); {color:#339966}// add plainJButton to JFrame
{color}
{color}
{color}
{color:#00ccff}{color:#3366ff}Icon bug1 = new ImageIcon(getClass().getResource("bug1.gif"));
Icon bug2 = new ImageIcon(getClass().getResource("bug2.gif"));
fancyJButton = new JButton("Fancy Button", bug1); {color:#339966}// set image
{color}fancyJButton.setRolloverIcon(bug2); {color:#339966}// set rollover image
{color}add(fancyJButton); {color:#339966}// add fancyJButton to JFrame{color}
{color}
{color}
{color:#00ccff}{color:#3366ff}{color:#339966}// create new ButtonHandler for button event handling{color}
ButtonHandler handler = new ButtonHandler();
fancyJButton.addActionListener(handler);
plainJButton.addActionListener(handler);
} {color:#339966}// end ButtonFrame constructor{color}
{color}
{color}
{color:#3366ff}{color:#3366ff}{color:#339966}// inner class for button event handling
{color}private class ButtonHandler implements ActionListener {
{color:#339966}// handle button event{color}
public void actionPerformed(ActionEvent event) {
JOptionPane.showMessageDialog(ButtonFrame.this, String.format(
"You pressed: %s", event.getActionCommand()));
} {color:#339966}// end method actionPerformed{color}
}{color:#339966} // end private inner class ButtonHandler{color}
} {color}{color:#339966}// end class ButtonFrame
{color}
{color:#3366ff}
{color:#3366ff}package test1;
{color}
{color:#3366ff}{color:#339966}//Fig. 11.16: ButtonTest.java
// Testing ButtonFrame{color}.
import javax.swing.JFrame;
{color}
{color:#3366ff}public class ButtonTest {
public static void main(String args[]) {
{color}{color:#ff0000}ButtonFrame buttonFrame = new ButtonFrame();{color}{color:#33cccc}{color:#3366ff} {color:#339966}// create ButtonFrame{color}
buttonFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
buttonFrame.setSize(275, 110); {color:#339966}// set frame size{color}
buttonFrame.setVisible(true); {color:#339966}// display frame{color}
} {color:#339966}// end main
{color}} {color}{color:#339966}// end class ButtonTest
{color}
{color}
{color}
{color}
{color:#000000}When I launch the class ButtonTest, the problem happen, the class name of the ButtonFrame had been doubt, it indicated:"{color:#ff0000}The serializable class ButtonFrame does not declare a static final serialversionUID field of type long{color}{color}" how can I slove this problem?
Edited by: Leaner on Mar 4, 2008 3:43 PM

{color:blue}Easy with the colors OK?{color}
{color:#000000}T{color}{color:#010101}h{color}{color:#030303}a{color}{color:#040404}t{color}{color:#060606}'{color}{color:#070707}s{color}{color:#090909} {color}{color:#0a0a0a}j{color}{color:#0c0c0c}u{color}{color:#0e0e0e}s{color}{color:#0f0f0f}t{color}{color:#111111} {color}{color:#121212}a{color}{color:#141414} {color}{color:#151515}w{color}{color:#171717}a{color}{color:#191919}r{color}{color:#1a1a1a}n{color}{color:#1c1c1c}i{color}{color:#1d1d1d}n{color}{color:#1f1f1f}g{color}{color:#202020} {color}{color:#222222}a{color}{color:#232323}n{color}{color:#252525}d{color}{color:#272727} {color}{color:#282828}i{color}{color:#2a2a2a}f{color}{color:#2b2b2b} {color}{color:#2d2d2d}y{color}{color:#2e2e2e}o{color}{color:#303030}u{color}{color:#323232} {color}{color:#333333}a{color}{color:#353535}r{color}{color:#363636}e{color}{color:#383838}n{color}{color:#393939}'{color}{color:#3b3b3b}t{color}{color:#3d3d3d} {color}{color:#3e3e3e}s{color}{color:#404040}e{color}{color:#414141}r{color}{color:#434343}i{color}{color:#444444}a{color}{color:#464646}l{color}{color:#474747}i{color}{color:#494949}z{color}{color:#4b4b4b}i{color}{color:#4c4c4c}n{color}{color:#4e4e4e}g{color}{color:#4f4f4f} {color}{color:#515151}i{color}{color:#525252}n{color}{color:#545454}s{color}{color:#565656}t{color}{color:#575757}a{color}{color:#595959}n{color}{color:#5a5a5a}c{color}{color:#5c5c5c}e{color}{color:#5d5d5d}s{color}{color:#5f5f5f} {color}{color:#606060}o{color}{color:#626262}f{color}{color:#646464} {color}{color:#656565}t{color}{color:#676767}h{color}{color:#686868}e{color}{color:#6a6a6a} {color}{color:#6b6b6b}c{color}{color:#6d6d6d}l{color}{color:#6f6f6f}a{color}{color:#707070}s{color}{color:#727272}s{color}{color:#737373} {color}{color:#757575}y{color}{color:#767676}o{color}{color:#787878}u{color}{color:#7a7a7a} {color}{color:#7b7b7b}c{color}{color:#7d7d7d}a{color}{color:#7e7e7e}n{color}{color:#808080} {color}{color:#818181}i{color}{color:#838383}g{color}{color:#848484}n{color}{color:#868686}o{color}{color:#888888}r{color}{color:#898989}e{color}{color:#8b8b8b} {color}{color:#8c8c8c}i{color}{color:#8e8e8e}t{color}{color:#8f8f8f}.{color}{color:#919191} {color}{color:#939393}O{color}{color:#949494}n{color}{color:#969696}e{color}{color:#979797} {color}{color:#999999}w{color}{color:#9a9a9a}a{color}{color:#9c9c9c}y{color}{color:#9e9e9e} {color}{color:#9f9f9f}t{color}{color:#a1a1a1}o{color}{color:#a2a2a2} {color}{color:#a4a4a4}s{color}{color:#a5a5a5}t{color}{color:#a7a7a7}o{color}{color:#a8a8a8}p{color}{color:#aaaaaa} {color}{color:#acacac}t{color}{color:#adadad}h{color}{color:#afafaf}e{color}{color:#b0b0b0} {color}{color:#b2b2b2}w{color}{color:#b3b3b3}a{color}{color:#b5b5b5}r{color}{color:#b7b7b7}n{color}{color:#b8b8b8}i{color}{color:#bababa}n{color}{color:#bbbbbb}g{color}{color:#bdbdbd} {color}{color:#bebebe}i{color}{color:#c0c0c0}s{color}{color:#c1c1c1} {color}{color:#c3c3c3}t{color}{color:#c5c5c5}o{color}{color:#c6c6c6} {color}{color:#c8c8c8}d{color}{color:#c9c9c9}o{color}{color:#cbcbcb} {color}{color:#cccccc}w{color}{color:#cecece}h{color}{color:#d0d0d0}a{color}{color:#d1d1d1}t{color}{color:#d3d3d3} {color}{color:#d4d4d4}i{color}{color:#d6d6d6}t{color}{color:#d7d7d7} {color}{color:#d9d9d9}s{color}{color:#dbdbdb}u{color}{color:#dcdcdc}g{color}{color:#dedede}g{color}{color:#dfdfdf}e{color}{color:#e1e1e1}s{color}{color:#e2e2e2}t{color}{color:#e4e4e4}s{color}{color:#e5e5e5}.{color}{color:#e7e7e7} {color}{color:#e9e9e9}A{color}{color:#eaeaea}d{color}{color:#ececec}d{color}{color:#ededed} {color}{color:#efefef}t{color}{color:#f0f0f0}h{color}{color:#f2f2f2}e{color}{color:#f4f4f4} {color}{color:#f5f5f5}f{color}{color:#f7f7f7}i{color}{color:#f8f8f8}e{color}{color:#fafafa}l{color}{color:#fbfbfb}d{color}{color:#fdfdfd}:{color}
private static final long serialversionUID  = 0;

Similar Messages

  • JDE worldsoft 9.1 Facing the problem of extending cost is calculating wrong

    IN JDE worldsoft 9.1 we are facing the problem of extending cost is calculating wrongly.
    at the time of shipment confirmation in table F42119 it is calculated with 100 that means with decimals if the extended cost i( Qunatity 1 * cost 100 = Extended cost should be100 but here it is showing 10000 )
    Can any one help on this.

    If I understand your problem correctly I would suggest looking into Sar# 8948245.
    Nichelle

  • Problems with extended features.  I can no longer fill out my documents in the fields provided.  The

    Problems with extended features.  I can no longer fill out my documents in the fields provided.  The error message I get is "This document enabled extended features in Adobe Reader.  The document has been changed since it was created and use of extended features is no longer available.  Please contact the author for original version of this document."

    Yes.  I don't have the version you pay for.  I also tried the free version
    of EchoSign.  Maybe that caused the problem.
    Any more suggestions would be greatly appreciated.
    Estelle Oliansky
    Estelle OlianskyRealtor, SRESCell (734) 748-2329
    *3DX Real Estate *| www.3dxonline.com* | (v) 888.304.1447 ext.
    102 | (f) 888.304.1456 | 42705 Grand River Ave. Ste. 201 | Novi, MI 48375*
    P Please consider the environment before printing this e-mail
    This electronic mail message and any attachments contain information
    that(a) is or may be LEGALLY PRIVILEGED, CONFIDENTIAL, PROPRIETARY IN
    NATURE, OR OTHERWISE PROTECTED BY LAW FROM DISCLOSURE, and (b) is intended
    only for the use of the Addressee(s) named herein.  If you are not the
    intended recipient, an addressee, you are hereby notified that reading,
    using, copying, or distributing any part of this message or any information
    transmitted herewith is strictly prohibited.  If you have received this
    electronic mail message in error, please contact us immediately and take
    the steps necessary to delete the message completely from  your computer
    system.

  • I have an iMac mid 2010. After Disk utilities said the drive was corrupt, I ran the hardware test (extended) 3 times. No problems. I than ran Disk utility again and got 2 messages in red-keys out of order, and --Volume corrupt, can't be repaired.  I tried

    I have an iMac mid 2010. After Disk utilities said the drive was corrupt, I ran the hardware test (extended) 3 times. No problems. I than ran Disk utility again and got 2 messages in red…keys out of order, and ……Volume corrupt, can't be repaired.
    I tried to do a system install, but message said…disk can't be changed. Will a complete erase and install fix this ?
    Everything is backed-up.

    There's hardware and software.
    Your drive could physically be in good condition but something has caused the file structure to be messed up (it just happens sometimes).  The directory that keep track of files is corrupt.  Disk Utility can help determine if that is the issue.  In some cases it can repair the problem but it cannot do it to a drive that is being used to boot the system while you are doing that.  You have to boot from another drive.  Some things DU cannot repair and you need to try a stronger utility such as Diskwarrior.
    A failing hard drive (one with mechanical issues) can be a cause of file structure issues but this is by no means always the case.  Apart from looking at the SMART diagnosis feature of Disk Utility (and smart isn't totally reliable) there often isn't a way to tell if a drive is failing until it suddenly happens, which is why you need to maintain backups.
    In your situation it does sound serious and not just minor directory corruption.  You can try erasing (formatting) the drive,  You may need to do this if it is really corrupt, in which case there could be underlying physical issues.  I use old technology but if you have the patience you can try erasing the drive with the security option of writing zeros once (don't do more unless you are going on a 3 week vacation).  This makes the drive not simply assume everything is okay by forcing it try every part of the drive by writing data.  If something is gong wrong you may find it marks a lot of bad sectors, or flat out refuses to format.  Then you know you need a new drive.

  • Problem while extending and modifying the ISA B2B app on SAP J2EE 6.4

    We are facing some problem with extending and modifying the ISA B2B 4.0 application.
    First Let me clarify you the whole scenario.
    Previously we had ISA B2B 4.0 SP03 deployed on SAP J2EE 6.20 Engine.
    We had used eclipse 3.0 to extend and modify the application as NWDS does not support SAP J2EE 6.20.
    We had used ant buildtool to build the modified application which comes along with the ISA Software Archive.
    We had successfully done all the modifications and application was running fine...
    Now we have upgraded the overall J2EE infrastructure and using J2EE 6.4 Engine which supports NWDS.
    We have successfully deployed the ISA B2B  application which comes along with the Support Package.
    We are using Support Package ISAWAC40SP11P_7-20000529.SAR E-Selling 640. The application is working fine after all
    the configuration done in XCM and SAP CRM 4.0 system.
    Now for modification and extension i have created another b2b enterprise archive with name "b2b_client.ear" using ant buildtool.
    I've done the modification and extension .. added some Z classes and JSP pages. Now when i try to deploy the application using
    SDM 6.40, I got an error message stating
    <b>"com.sap.sdm.util.sduread.IllFormattedSduFileException: The archive must be deployed with a 6.20 SDM, which has a SDM-SDA compatible version 1 or greater."</b>
    I think this error is due to the incompatible sda_build.xml used in the build process but we have used the same xml file bundled with the above mentioned ".sar" file..
    Please help or suggest someone who can help me out from this...
    Thanks & Regards.
    Sandeep Solanki

    Hi Alkis.
    First, you need to specify the fully qualified class name of your based-RequestProcessor class in the config.xml file like
    <controller  contentType="text/html;charset=UTF-8"  locale="true"  nocache="true"
      processorClass="com.mycompany.struts.framework.MyRequestProcessor"/>
    If you review the source code of the ActionServlet and RequestProcessor classes, you can see that overwritten methods (by you) are executed every time the client makes a request to the struts based application.
    I hope you can run your approach. And it will be excellent you can shared how you will do it.
    Kindest regards.

  • After using "migration assistant" from my old iMac to my new iMac, some tools stick while using Photoshop CS 6 Extended. My current operation system is 10.10 Yosemite. I was wondering if UN installing then RE installing CS 6 might solve the problem. If th

    After using "migration assistant" from my old iMac to my new iMac, some tools stick while using Photoshop CS 6 Extended. My current operation system is 10.10 Yosemite. I was wondering if UN installing then RE installing CS 6 might solve the problem. If this is recommended, I would need complete instructions on doing this. I have there serial number for the product.

    using migration assistant is problematic.
    at this point yes, you should uninstall everything migrated, clean and then reinstall properly using the installation files.
    cleaner:  Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6
    installation files:
    Downloads available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4 | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  13 |12 | 11, 10 | 9, 8, 7
    Photoshop Elements:  13 |12 | 11, 10 | 9,8,7
    Lightroom:  5.7| 5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.
    window using the Lightroom 3 link to see those 'Important Instructions'.

  • Can't extend network:  AE models the problem?

    checking out some other messages I searched out here, I suspect I may have the problem figured out, more or less, but need to figure out how to be sure:
    I have 5 airport expresses, bought at different times, that make up a home network designed to play music via a pair of speakers attached to each AE, and one main is attached to a cable modem.
    This works ok, though I get a lot of dropout as complained about by many others here, not consistent enough to blame my other electronics in the house, although who knows what the downstairs neighbor might have that is interfering.
    Hoping to improve the robustness of the system, I tried to set up the AE to extend the network rather than just join it, but got a lot of error messages when airport utility was trying to 'configure main network' to accept an extension via this airport. I did type in MAC addresses for each additional devices into the main (modem connected) AE settings, under 'allow clients', and it seemed to reset with that data accepted/intact. I just couldn't 'extend' via the clients as I added them.
    Which AE models are configurable to extend a WDS network? And does it matter which of them is the 'main' and which are the 'relay' devices? And can I interrogate the AE to tell which model they are or do I have to squeeze into their nooks and try to read the very fine print on them?
    I really only need one of them to do the 'relay' thing to the printers, and if one of them is compatible with that function and the others were not, it would save a lot of time to know which one it is, or that I have to replace just that one.

    Which AE models are configurable to extend a WDS network?
    Both the 802.11g (Model# A1084 / Part# M9470LL/A) & 802.11n (Model# A1264 / Part# MB3211LL/A ) AirPort Express Base Stations can be configured for a Wireless Distribution System (WDS) to extend their network wirelessly. However, depending on which model you have, the configuration steps to do so are different.
    There are basically two "flavors" of WDS: static & dynamic. The 802.11g models can only support static, and the 802.11n models can do either. In the case where you would use mixed versions, only the static option is available.
    A static WDS allows for a main, relay, and remote base stations in the configuration. It is better suited when you want to cover a long linear distance ... like a rectangular-shaped building. On the other hand, a dynamic WDS only allows for a main and (multiple) remote base stations. This is better suited for those situations where the main would be in the center and you wanted to extend the network outwards to other rooms. Think of a star pattern.
    And does it matter which of them is the 'main' and which are the 'relay' devices?
    The "main" should be the one connected to the Internet.
    And can I interrogate the AE to tell which model they are or do I have to squeeze into their nooks and try to read the very fine print on them?
    The simplest way would be to use the AirPort Utility and check which firmware version a particular base station is using. The 802.11g models use v6.x; the 802.11n models use v7.x.

  • The problem I have since I upgraded to Mavericks version 10.9.1 The problem appears only with Mail not with other programs, not even with my browser. When I try to zoom the text of an e-mail I received or sent , I can no longer use the keys Command   to e

    the problem I have since I upgraded to Mavericks version 10.9.1
    The problem appears only with Mail not with other programs, not even with my browser.
    When I try to zoom the text of an e-mail I received or sent , I can no longer use the keys Command + to enlarge the text, although I can reduce it with Command -.
    As I have a problem with my eyes, This is a serious matter for me.
    When I write an e-mail, if I select text and press Command +, it just displaces the text to the right.
    Now, my husband has a USB keyboard. If he connects it to my computer, his regular Command + does not work either, but  he uses the extended keyboard, then it works. Unfortunately, he needs it for a musical application which does not work with a wireless keyboard.

    Firefox 3.6.4 and 3.6.6 use a process called, "plugin-container.exe" which was using up most of my CPU when I opened up multiple tabs that contained Adobe Flash files, and caused Firefox to lock up.
    My solution was to use Firefox 3.5.10 which you can get from the Mozilla website at [http://www.mozilla.com/en-US/firefox/all-older.html]
    I am using Adobe Flash 10.1.53.64 without any problem in this version of Firefox. Check the release notes, I believe it contains all the latest security fixes in "Firefox 3.6.4".
    Hopefully, they will fix Firefox 3.6 in the next version (e.g. Firefox 3.6.7), until then you should probably use "Firefox 3.5.10".

  • Problems wirelessly extending 5Ghz network with Time Capsule

    Summary:
    My Time Capsule wirelessly extends a 5Ghz "n" network provided by my Airport Extreme, but the Time Capsule frequently fails and stops providing Internet access to connected computers. I'm not sure if the problem is with the Time Capsule or with the Airport Extreme it's connecting to.
    Setup:
    Airport Extreme (dual band) connected to cable modem. It provides a 5Ghz "n" network and a 2.5Ghz "b-g-n" network. This is in the bedroom.
    Time Capsule (non-dual band) joins the 5Ghz network and extends it. This is in the office, maybe 40 feet away, line-of-sight. There is a laser printer connected to the Time Capsule via ethernet.
    My MacBook is set to join the 5 Ghz network, and since it's in the office, it ends up joining via the Time Capsule. This is the desired behavior, as connecting through the Time Capsule seems to result in the fastest possible backup speed.
    There are no wireless devices, such as cordless phones, in the house. The microwave is NOT in use when the problems arise.
    *The Problem:*
    Frequently, the MacBook loses its Internet connection, though it is still connected to the 5Ghz network through the Time Capsule. When this happens, it can only see the Time Capsule it's connected through (and other devices that are connected to it) but no other devices on the network.
    When this happens, other devices that are connecting to the 5Ghz network through the Airport Extreme can no longer see the Time Capsule or any devices connected to it, such as the laser printer or my MacBook. This includes the living room computer, which has never been able to complete a backup due to this problem.
    The Time Capsule's and the Airport Extreme's indicator lights both stay green.
    If I change the Macbook's connection to the 2.5Ghz network, it can see the devices connected to the Airport Extreme, but can no longer reach the Time Capsule.
    *Unsuccessful Solutions:*
    This was happening in a previous incarnation of the network, when I had a non-dual band Airport Extreme providing the main network, the Time Capsule connected via 5Ghz, and an Airport Express connected via ethernet to the Time Capsule to provide a b-g network.
    I replaced the Airport Extreme with a new dual-band unit to simplify the setup, but it did not solve the problem.
    Since the Time Capsule seemed to be the weak link in the network, I reported the problem and got the unit replaced, but the problem still persists.
    I've reset both the Airport Extreme and the Time Capsule to their factory settings numerous times, and set them up again from scratch (no imported settings). I've gone in and made sure that there were no WDS settings leftover from the earlier configuration, as the 5Ghz network does not need it to extend itself.
    *Plea for help:*
    Is anyone else experiencing a similar problem?

    Update
    The other day, I modified the setup so that the Time Capsule doesn't extend the wireless network wirelessly, only through Ethernet (so the attached printer will work, but the computers will connect directly to the AEBS. The Time Capsule stayed connected long enough for me to do a full backup (125GB) from the downstairs computer.
    I thought I had it "solved" (though extending the 5Ghz network would be preferable so the office computers can have faster backup speeds.)
    But yesterday, I went to print to the Ethernet-attached printer, and it got only one page out before it disappeared off the network again, and the print job failed. I noticed it did it again, today.
    So the problem is not tied to wirelessly extending the network.

  • If the problem's not the Hard Drive, what is it?

    My Powerbook G4 got knocked off a table and started acting up right away (crashing, freezing). I did a disk doctor check and it said my HDD was fine. I formatted the disk just in case and reinstalled the OS. It still didn't work. I brought the laptop to the Genius Bar, who told me that it's still probably the hard drive, even though Disk Doctor gave it a clean bill of health. So I bought a new hard drive and carefully and tediously installed it. I then formatted it and installed a new OS. Seemed fine. I ran the intro and all that, then shut it down, thinking all was well. The next day I booted it up, got the chime and apple logo, and the progress bar went about 20% and then froze. It now does that every time I try to reboot and the only option is to hold down the power button to shut it down.
    So, to summarize, the thing won't boot into the OS and I've replaced the hard drive. What else could the problem be?
    Message was edited by: Rob Lichter

    OK, I have a G4 powerbook with a new 80gb hard drive.
    You have either a 2004 PB G4 12" 1.33 GHz or a 2005 PB G4 12" 1.5 GHz computer. In either case, if you have the orginal HDD in the computer it is at an age where it will be functionally and physically degraded. Replacing the HDD was likely the right move.
    I installed a 518 RAM card before this issue arose, but the problem seems to exist independant of that RAM.
    You likely installed a 512 MB module.
    Apparently the fall did something else to your computer, but it is not possbile to tell at this point. I suggest that you proceed as BGreg suggested. Boot from the Apple Hardware Test disk that came with your computer and run the extended tests in a loop (hold down Control + L during tests) and let it run for several hours, if necessary, as it may take a while for intermittent issues to surface.
    cornelius

  • Problem with extending an extended class

    Hi JDC
    I have to use a scrolled list several times among my program so I create a class named ScrolledList that extends Jpanel and an inner class that extends ScrolledLIst.
    The problem shows up when I?m trying to add an item inside the inner class, the code pass compilation, it even enter the addItem() but its dont add item
    public class ScrolledList extends JPanel{
      DefaultListModel dlm = new DefaultListModel();
      JList list = new JList();
      JScrollPane js = new JScrollPane(list);
      ScrolledList(){
        setLayout(new BorderLayout());
        add(js,BorderLayout.CENTER);
    }here is the class i use whenever i need this scrolled list:
    public class innerClass extends ScrolledList{
      public void addItem(String item){
        System.out.println("addItem invoked...");
        this.dlm.addElement(item);
      public static void main(String[] args) {
            JFrame frame = new JFrame("InnerClass");
            frame.addWindowListener(new WindowAdapter() {
                public void windowClosing(WindowEvent e) {System.exit(0);}
            frame.getContentPane().add(new innerClass(),
                                       BorderLayout.CENTER);
            frame.setSize(400, 125);
            frame.setVisible(true);
            innerClass ic = new innerClass();
            ic.addItem("Shay");
    }what im doing wrong(code example please)?
    Thanks

    Hi
    i tried this , its still dont add item to the list:
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class ScrolledList extends JPanel{
      //List variables
      private DefaultListModel dlm = new DefaultListModel();
      private JList clientsList = new JList(dlm);;
      private JScrollPane clientScroll = new JScrollPane(clientsList);
      public final  boolean PRINTLN=true;
      public  void p(String out){
        if(PRINTLN)
          System.out.println(out);
      public ScrolledList() {
        try {
          jbInit();
        catch(Exception e) {
          e.printStackTrace();
      private void jbInit() throws Exception {
        this.setLayout(new BorderLayout());
        this.add(clientScroll);
       public void addClient(String client){
        p("addClient invoked....");
        dlm.addElement(client);
      public static void main(String[] args) {
        JFrame frame = new JFrame();
        frame.getContentPane().add(new ScrolledList());
          frame.addWindowListener(new WindowAdapter() {
            public void windowClosing(WindowEvent e) {
              System.exit(0);
          frame.setSize(300,300);
          frame.setVisible(true);
          ScrolledList s  = new ScrolledList();
          s.addClient("Shay");
    }thanks

  • Apple says dvi ro adc adapters are the problem

    I posted with the correct title, exucse me missing our thr "to adc adaptor " part.
    anycase
    They sent this person with there mac mini, 22" plastic cinema display and DVI to ADC adapter to be looked at by 4 different centers in europe, no on-sight or pick up mail support at all, and none culd get the screen panel functions to work.
    They told him that they have no solution to the problem and they where aware of it since they manufactured the mac mini, but that its minor for a recall and the only way apple could do anything to help him is if he would purchase a extended plan for $200 more!!!
    "this is new to my ears",
    has anyone else had this problem or where the posts deleated here before?

    A poor help to people sitting on useless Apple products. To me it looks like a lot of people do have display problems. Any normal person should be able to spot when something is more than a minor problem in a forum like this – if you understand what I mean.
    I'm about to help someone make a switch and buy a mini. But I hesitate, knowing the display problems so many seems to have.
    Having problems with a noisy G5 CPU fan I've come to realize that Apple actually do cover up problems. Wonder why? However the most disturbing fact is why Apple can't give their customers some answers. They should have some clues to what is going on. Be sure that they read this forum and that they know when a problem is a real problem.

  • Can't afford to fix the problem

    Hi,
    After reading some of the threads in here, I've found out that my iBook is yet another victim of the reed switch problem and have read the replies about possible ways to fix it. Unfortunately, as I'm living outside the US for an extended period of time, I can't take it home to be repaired. Additionally, as I'm a student, I simply cannot afford the cost of having it repaired. So, my question is this: Yes, the flickering is pretty annoying, but does it have any real effect on the functionality of the machine? Or is this a problem that will get worse with time? The reason I ask is because I've already sunk a lot of money into this computer with other repairs, and if this problem is "terminal," I'd rather invest the money in a new machine.
    iBook G4   Mac OS X (10.3.9)   800 MHz, 640 MB DDR SDRAM, replaced optical drive

    As long as you can get the screen to come back after putting it to sleep and then waking it again it just comes down to how annoying it is. I haven't seen anyone report any long-term damage from the problem.
    I've heard other possible causes include bad logic boards and various other display parts like the backlight.
    Sounds like you're already out of warranty, so if you've got the time and inclination you can replace it yourself for about $25.

  • What is the problem?

    I want to deploy a CMP Entity Bean in weblogic6.1SP2,but I meet an error,what should I do to solve the problem?
    the error code:
    <2003-4-7 ~{OBNg~}02~{J1~}27~{7V~}24~{Ck~}> <Error> <J2EE> <Error deploying application SVC:
    Unable to deploy EJB: CMPSvc from SVC.jar:
    The Container-Managed Persistence Entity EJB failed while creating its SQL Type
    Map. The error was:
    Io ~{Rl3#~}: Connection reset by peer: socket write error
    and my original code:
    SVC.java(remote interface)
    package CMPEntityBean;
    import javax.ejb.*;
    import java.rmi.RemoteException;
    public interface SVC extends EJBObject
         public java.lang.String getSvcID() throws RemoteException;
         public java.lang.String getSvcName() throws RemoteException;
         public void setSvcID(java.lang.String svcID) throws RemoteException;
         public void setSvcName(java.lang.String svcName) throws RemoteException;
    SVCHome.java (home interface file)
    package CMPEntityBean;
    import javax.ejb.*;
    import java.rmi.RemoteException;
    import java.util.Collection;
    public interface SVCHome extends EJBHome
    public SVC create(java.lang.String svcID,java.lang.String svcName) throws CreateException,RemoteException;
    public SVC findByPrimaryKey(CMPEntityBean.SVCPK key) throws FinderException,RemoteException;
    public Collection findBySvcName(java.lang.String svcName) throws FinderException,RemoteException;
    SVCBean.java (Enterprise Bean file)
    package CMPEntityBean;
    import javax.ejb.*;
    public abstract class SVCBean implements EntityBean
         protected EntityContext ctx;
         public abstract java.lang.String getSvcID();
         public abstract java.lang.String getSvcName();
         public abstract void setSvcID(java.lang.String svcID);
         public abstract void setSvcName(java.lang.String svcName);
         public void ejbActivate(){}
         public void ejbRemove(){}
         public void ejbPassivate(){}
         public void ejbLoad(){}
         public void ejbStore(){}
         public void setEntityContext(EntityContext ctx)
         this.ctx = ctx;
         public void unsetEntityContext()
         this.ctx = null;
         public void ejbPostCreate(String svcID,String svcName){}
         public SVCPK ejbCreate(String svcID,String svcName)
         setSvcID(svcID);
         setSvcName(svcName);
         return new SVCPK(svcID);
    ejb-jar.xml
    <?xml version="1.0"?>
    <!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN' 'http://java.sun.com/dtd/ejb-jar_2_0.dtd'>
    <ejb-jar>
    <enterprise-beans>
    <entity>
    <ejb-name>CMPSvc</ejb-name>
    <home>CMPEntityBean.SVCHome</home>
    <remote>CMPEntityBean.SVC</remote>
    <ejb-class>CMPEntityBean.SVCBean</ejb-class>
    <persistence-type>Container</persistence-type>
    <prim-key-class>CMPEntityBean.SVCPK</prim-key-class>
    <reentrant>False</reentrant>
    <cmp-version>2.x</cmp-version>
    <abstract-schema-name>SVCBean</abstract-schema-name>
    <cmp-field>
    <field-name>svcID</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>svcName</field-name>
    </cmp-field>
    <!--prim-key-class>svcID</prim-key-class-->
    <query>
    <query-method>
    <method-name>findBySvcName</method-name>
    <method-params>
    <method-param>java.lang.String</method-param>
    </method-params>
    </query-method>
         <!--result-type-mapping>Local</result-type-mapping-->
    <ejb-ql>
    SELECT OBJECT(a) FROM SVCBean a WHERE svcName = ?1
    </ejb-ql>
    </query>
    </entity>
    </enterprise-beans>
    <assembly-descriptor>
    <container-transaction>
    <method>
    <ejb-name>CMPSvc</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    </ejb-jar>
    weblogic-ejb-jar.xml
    <?xml version="1.0"?>
    <!DOCTYPE weblogic-ejb-jar PUBLIC "-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB//EN" "http://www.bea.com/servers/wls600/dtd/weblogic-ejb-jar.dtd" >
    <weblogic-ejb-jar>
    <weblogic-enterprise-bean>
    <ejb-name>CMPSvc</ejb-name>
    <entity-descriptor>
    <entity-cache>
         <max-beans-in-cache>1000</max-beans-in-cache>
    </entity-cache>
    <persistence>
         <persistence-type>
         <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
         <type-version>6.0</type-version>
         <type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
         </persistence-type>
         <persistence-use>
         <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
         <type-version>6.0</type-version>
         </persistence-use>
    </persistence>
    </entity-descriptor>
    <jndi-name>cmpsvc</jndi-name>
    </weblogic-enterprise-bean>
    </weblogic-ejb-jar>
    weblogic-cmp-rdbms-jar.xml
    <!DOCTYPE weblogic-rdbms-jar PUBLIC '-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB RDBMS Persistence//EN' 'http://www.bea.com/servers/wls600/dtd/weblogic-rdbms-persistence.dtd'>
    <weblogic-rdbms-jar>
    <weblogic-rdbms-bean>
    <ejb-name>CMPSvc</ejb-name>
    <data-source-name>ucisOra</data-source-name>
    <table-name>TAB_SVC</table-name>
    <field-map>
    <cmp-field>svcName</cmp-field>
    <dbms-column>svcname</dbms-column>
    </field-map>
    <field-map>
    <cmp-field>svcID</cmp-field>
    <dbms-column>svcid</dbms-column>
    </field-map>
    </weblogic-rdbms-bean>
    </weblogic-rdbms-jar>
    thanks a lot!

    Try this
    SELECT OBJECT(a) FROM SVCBean a WHERE a.svcName = ?1

  • When I try to make a new video, a window comes up that says,"The operation could not be completed," and then under it, it says,"No other information is available about the problem," what is happening and how do I fix it?

    when I try to make a new video, a window comes up that says,"The operation could not be completed," and then under it, it says,"No other information is available about the problem," what is happening and how do I fix it?

    Hi
    And without info - it's near to impossibly to help. Try my general troubleshooting note:
    Troubleshooting note
    When iMovie doesn't work as intended this can be due to a lot of reasons
    iMovie Pref files got corrupted - trash it/they and iMovie makes new and error free one's
    problem in iMovie Cache folder - trash Cache.mov and Cache.plist
    Creating a new User-Account and log into this
    This forces iMovie to create all pref. and cache files new and error free
    Event or Project got corrupted - try to make a copy and repair
    a Codec is used that doesn't work (even though iMovie and/or iDVD tries to / they fail in the end)
    version miss match of QuickTime Player / iMovie / iDVD
    preferences are wrong - Repair Preferences
    other hard disk problem - Repair Hard Disk (Disk Util tool - but start Mac from ext HD or DVD)
    External hard disks - MUST BE - Mac OS Extended (hfs) formatted to work with Video
    ( UNIX/DOS/FAT32/Mac OS Exchange - works for most other things - but not for Video )
    USB-flash-memories - usually do not work
    Net-work connected hard disks - usually do not work (most often not fast enough and WRONGLY FORMATTES as DOS etc)
    iPhoto Library got problems - let iPhoto select another one or repair it. Re-build this first then try to re-start iMovie. When iMovie starts-up it first look trough this iPhoto library and if faulty it all Halt’s.
    This You do by
    First -  close iPhoto
    Secondly - on start up of iPhoto - Keep {cmd and alt-keys down}
    Thirdly - now select all five options presented
    THEN - WAIT a long long time (>20 hours are not strange)
    free space on Start-Up (Mac OS) hard disk to low (<1Gb) - I never go under 25Gb free space for SD-Video (4-5 times more for HD)
    external devices interferes - turn off Mac - disconnect all of them and - Start up again and re-try
    GarageBand fix - start GB - play a few notes - Close it again and now try iMovie
    Screen must be set to million-colors
    Third-party plug-ins doesn't work OK
    Run "Cache Out X", clear out all caches and restarts the Mac
    Let Your Mac be turned on during one night. At about midnight there is a set of maintenance programs that runs and tidying up. This might help
    Turn off Your Mac - and disconnect Mains - for about 20-30 minutes - at least this resets the FireWire port.
    In QuickTime - DivX, 3ivx codec, Flip4Mac, Perian etc - might be problematic - temporarily move them out and re-try
    (I deleted the file "3ivxVideoCodec.component" located in Mac HD/Library/Quicktime and this resolved my issue.)
    buenrodri wrote
    I solved the problem by removing the file: 3ivxVideoCodec.component. after that, up-dated iMovie runs ok.
    Last resort: Trash all of iMovie and re-install it
    Yours Bengt W

Maybe you are looking for

  • Simple Solution for authentication with WD and R/3 Backend

    Hi, we are developing a Web-Dynpro based Application running on a J2EE/ABAP Stack machine. Our backend is a 4.6C SAP System, we are using adaptive RFCs to get/put data there. The user of the WD App should authenticate against the J2EE/ABAP engine, an

  • Upgrading old code

    My small company (Academic Software, Inc.) has a few educational games designed (and fairly popular) for very young (or developmentally young) children with severe disabilities. These were produced with Director 7 for Mac and for PC and I recall writ

  • Problems with GPIB

    Hi I have installed a NI GPIB card and the 488.2 software to go with it. I already have a 96 way DAQ installed which works fine. The GPIB software has been installed before the board and seems quite happy. The card is recognised by the system and PCI

  • How to make my 4 articles (2 columns) have equal height?

    Please take a look at my live example: http://jsfiddle.net/mdermez32/vTynd/ If you see my link you'll notice that the cells on the right are shorter than the left.. what is wrong in my code? how can I make their height equal? HTML: <table class="art-

  • Planning doubt

    Hi all, I have a scenario where I have many employees assigned to a cost center and that cost center is part of a org unit. I am in charge of planning for both the org units as shown below. I should be able to see the Excel input schedule as shown be