An interesting topic about  class JEditorPane

We know that class JEditorPane can be used to display Html pages. but it has limitation. When a Html page contains Applet, it can not display the applet! Does anyone know if there's any solution for this problem?

I agree that it's an interesting topic, but I'm not sure I see its relevance to generics. Perhaps you could enlighten me? Failing that, I suggest you repost in the Swing forum and post a link to that thread here.

Similar Messages

  • Questions about classes

    Hi,
    I finally upgraded from Flash 5 to CS3 - big difference :-)
    Reading the first half of an ActionScript 3 book left me
    quite confused about classes - what they are, how you handle
    multiple classes, how you use one class from within another etc.
    Are there any simple-speak tutorials out there that explain
    more about how to use classes?
    Specifically:
    I am trying to use classes to run multiple animations at the
    same time, i.e. using randomized movement for multiple objects on
    my stage.
    First issue is: If I do what I learnt in the book and simply
    create one .as file and have that be the document class, how can I
    prevent it from being run before all the elements on the stage have
    been loaded through a slow network connection?
    Second issue: I'd rather have "dormant" classes sitting
    around and call them once my stage is ready, but I have no idea how
    to handle multiple classes. I played with it for a while and then
    gave up and put my code into a frame, but that caused further
    issues. Again, any tutorials out there or any other advice you can
    give me? I am trying to start some class code at a certain time and
    use it to attach a Frame Event listener to a Sprite that I create
    inside the class.
    It looks easy in the book, but when I try to do my own stuff,
    it just won't do it...
    The book assumes (so far) that you want to run your code
    immediately once your movie starts, but I don't want that...
    Thanks!

    Yes, I realized later that _root etc. is actually as1 code
    from my days of Flash 5 :-)
    All I need is to know how to access a movieclip on the stage
    that was placed using the IDE from within a class, and how to
    access a class and call its methods from within another, and I can
    teach myself the rest...
    So, if I place something with the IDE, doesn't it show up in
    the display list? I should be able to control those elements, too,
    shouldn't I?
    Or do I have to use Actions rather than classes for those
    elements?
    I probably read 5 different articles/ebooks on the topic of
    classes and OOP in AS3 already, and none gave me the answer I
    needed.
    But I will have a look at the site you mentioned.
    Thanks!

  • Interesting Stuff about Heat, Whining, and CPU

    This whining noise with my new macbook pro has had me (and many others) stumped. I still havent found a solution, but I've gathered some interesting data with a great program found here: http://www.bresink.de/osx/TemperatureMonitor.html.
    First, for those more worried about the heat, new MacBook Pros do not seem to have a heat problem (at least mine doesn't). Mine runs cooler on my lap than on my desk for some weird reason though. About 50 C on the desk and 40 or so on my lap. (I had posted in another topic that the laptop felt hotter on my lap, but after letting the unit sleep for awhile, then running it on my desk and then on my lap, Bresink's temperature monitor confirms the temperatures, which could be due to the vent design or my owning a crappy desk lol.)
    Second, the System Information window shows my MacBook Pro as being manufactured on 4/14/06, so new revisions obviously did not fix the whining issue.
    Third, the System Information window reports that the CPU does NOT have variable speed (***?) and shows it to be running at 1.83 ghz all the time regardless of power management settings or AC/battery power. Anyone else find this strange? Both the nominal CPU clock and the actual CPU clock are always at 1.83 ghz according to this program.

    Another interesting information about the whine and why it, for some of the users who have a whining MBP, didn't occur on WinXP SP2:
    MS KB918005 "Battery power may drain more quickly than you expect on a Windows XP SP2-based portable computer" ( http://support.microsoft.com/kb/918005/en-us )
    After applying this fix, which fix a power drain due to bad power management in WinXP SP2, a user reported on onmac.net forum ( http://forum.onmac.net/showthread.php?t=1214 ) that his MacBook Pro started to whine on WinXP.
    This confirm what said the former intel engineer who posted on this forum at the beginning of the talks about this issue. This fix will also likely make other notebook PCs whine.
    So apparently MacOS X do manage the power correctly, and the fact that the whine didn't appear on WinXP SP2 was because of not using the CPU power states in which the whine appear (C4 power state for example). So the fact of no whine under WinXP SP2 on MacBook Pro was because of a bug in WinXP SP2 CPU power management states.
    So apparently the former intel guy who posted here was right and so if we assume that all what he said was right, then he also said that there is not hardware way to be sure that all computer produced are whine free (because of the nature of the components used), but that, by using component of better quality, it can be reduced for the units which are unluckily not whine free.
    Considering that thing, it's unlikly that a software update can remove the whine issue without reducing the battery life, and as latest user report seems to indicate that the recents series of MBP have a quieter whine, I HIGHLY RECOMMEND PEOPLE WHO DO HAVE A LOUD WHINING MBP TO SEND IT TO APPLE, IN ORDER TO GET THE LOGIC BOARD REPLACED BY A RECENT ONE!

  • About classes and Inheritance

    hi every one,
    i want use class with object in data block and i want know how i can use inheritance with objects.
    becouse i have interview in this two subjects, can any body support my.
    thanks,,,,,,,

    Hello,
    Start Forms Builder, the press F1 to display the online help.
    In the search tab, you can type "Class Property" or "Object Library" to find documentation on those topics:
    About Property Classes A property class is a named object that contains a list of properties and their settings. Once you create a property class you can base other objects on it. An object based on a property class can inherit the setting of any property in the class that makes sense for that object. Property class inheritance is an instance of subclassing. Conceptually, you can consider a property class as a universal subclassing parent. There can be any number of properties in a property class, and the properties in a class can apply to different types of objects. For example, a property class might contain some properties that are common to all types of items, some that apply only to text items, and some that apply only to check boxes. When you base an object on a property class, you have complete control over which properties the object should inherit from the class, and which should be overridden locally. Property classes are separate objects, and, as such, can be copied between modules as needed. Perhaps more importantly, property classes can be subclassed in any number of modules.
    or
    Using the Object Library These topics contain information about using the Object Library in Oracle Forms: About the Object Library Removing an Object from the Object Library Creating a tab in the Object Library Deleting a Tab in the Object Library Saving an Object in the Object Library Opening an Object Library Module Displaying the Object Library Closing the Object Library Commenting Objects in the Object Library
    Francois

  • How i can find out some the topic about introducing javax.servllet.http

    can anybody help me?
    in the sun micro site. i cannot do ......
    how i can find out some the topic about introducing javax.servllet.http

    http://java.sun.com/docs/books/tutorial/servlets/index.html

  • HT6011 SUPPORT TOPIC: About the security content of OS X Mavericks v10.9

    SUPPORT TOPIC: About the security content of OS X Mavericks v10.9
    This is a lot of technical information about security.
    1. How does it translate to the average user?
    2. Have the issues been resolved and included in the latest UPDATE?
    Many thanks.
    beebee08

    1. How does it translate to the average user?
    It doesn't.
    2. Have the issues been resolved and included in the latest UPDATE?
    That list is what known vulnerabilities have been fixed.

  • Where can I start a topic about terrible Apple Store experience in here?

    Dear Forum User,
    I was wondering whether I could start a topic about the Apple store experience in this forum? Please guide me in proper direction.
    I have been a faithful Apple customer for almost 3 years and use the whole Apple ecosystem for home and business. Up to few months ago I had never seen anything from Apple but professionalism and quality. However, waiting in front of the Apple store at 6am in Montreal and then facing extremely rude Apple employees who treat customers with humiliation and disrespect, I thought I somehow need to find a way to complaint more effectively.
    I think it would be appropriate to have a topic in this forum to discuss the horrors of the Apple store.
    Best Regards
    Esfandiar Amir Rahimi

    You know we are just other Mac users. Not to excuse what happened, but I have been reading that the Apple Store employees have been asked to work overtime and they are deluged with work and crazy hours.
    You could write something here, which will go to Apple directly -- don't know really, how much attention it will get, though. In addition, I would get the store manager on the phone and give him or her an earful. That might be the most effective option.
    http://www.apple.com/contact/feedback.html

  • Where is my topic about fantastic Web grid functionality ?

    Where is my topic about fantastic Web grid functionality ?
    from Moscow with money

    ....But I was describing the desired functionality of Web Grid.
    And URL cited as example.
    from Moscow with money

  • Learning about classes

    Hi,
    I'm working my way through "The Java Programming Language, Fourth Editition" by Sun Microsystems. There are exercises through the book, but they don't give the solutions (which is helpful!!!).
    They show a simple class, then ask you to produce an identical one to keep track of vehicles. Based on their sample code this should be the code:
    class Vehicle {
         public int speed;
         public String direction;
         public String owner;
         public long idNum;
         public static long nextID = 0;
      }Then then ask you to write a class called LinkedList giving no coding examples 'that has a field type Object and a reference to the next LinkedList element in the list. Can someone help me to decipher what this means and the appropriate code?
    They then show how to create objects linked to the vehicle class, which based on their sample code should be
    Vehicle car = new Vehicle();
    car.idNum = Vehicle.nextID++;
    car.speed = 120
    car.direction = "North"
    car.owner = "Metalhead":
    This is the bit that next confuses me. They ask you to write a main method for your Vehicle class that creates a few vehicles and prints their field values.
    The next exercise is to write a main method for LinkedList class that creates a few objects of type vehicle and places them into successive nodes in the list.
    Is'nt it correct that the above code starting 'Vehicle car' would be the code used to create the object which would go in the LinkerList calling on the Vehicle method which has already been defined? For example, successive entries could be for bus, bike etc in the LinkerList. What does it mean though to place these into successive 'nodes' on the list? And why would you create vehicles in the main method of the Vehicle class. Shouldn't they just be created in the LinkerList?
    I'm only learning about classes and I'm confused already?
    Any help (and code) would be great!!!!
    Thanks for any help,
    Tim
    p.s. I know what I have written sounds vague, bu the book doesn't really give much extra helpful info.

    First of all, the variables of the "Vehicle" class should all be private.
    You should not be able to directly retrieve each variable from this class
    Example:
    Vehicle car = new Vehicle();
    car.idNum = Vehicle.nextID++;
    car.speed = 120
    car.direction = "North"
    car.owner = "Metalhead"You should have methods that can change this data as well as retrieve the data.
    Example:
    class Vehicle {
         private int speed;
         private String direction;
         private String owner;
         private static long nextID = 0;
            public Vehicle() {
                speed = 0;
                direction = "";
                owner = "";
                ++nextID;
            // These methods retrieve the attributes
         public int getSpeed() { return speed; }
            public String getDirection()  { return new String(direction);}
            public String getOwner() { return new String(owner);}
            public long getidNum() { return idNum; }
            // These methods change the attributes
         public int setSpeed(int i) { speed = i; }
            public String setDirection(String s)  { direction = new String(s); }
            public String setOwner(String s) { owner = new String(s); }
    }Now, they want you to create another CLASS that shows what your Vehicle class can do.
    Example:
    public class SomeRandomExampleClass {
        public static void main(String[] args) {
            Vehicle v1 = new Vehicle();
            // Now let's fix up our vehicle
            v1.setSpeed(100);
            v1.setOwner("Zeus");
            v1.setDirection("North");
            // Do note that since idNum is a static variable, it will be increased everytime you create
            // an instance of a Vehicle, and works with the class rather than the object.
            // For instance, if you create Vehicle's v1, v2, and v3, then v1's idNum = 1, v2's idNum = 2;
            // and v3's idNum = 3.
            Vehicle v2 = new Vehicle() ;
            v2.setSpeed(500);
            v2.setOwner("Ricky Bobby");
            v2.setDirection("NorthEast");
            System.out.println(v1.getSpeed()); // prints v1's speed.
            System.out.println(v1.getOwner()); // prints Owner
            System.out.println(v1.getDirection); // Prints Direction
            System.out.println(v1.getidNum());  // prints idNum
            System.out.println(v2.getSpeed()); // prints v1's speed.
            System.out.println(v2.getOwner()); // prints Owner
            System.out.println(v2.getDirection); // Prints Direction
            System.out.println(v2.getidNum());  // prints idNum
    }A linked list is what it sounds like. It can hold a list of (let's say vehicles) and you can print their
    attributes from there.
    For instance, let's say we have a list called list1.
    list1.add(vehicle1);
    list1.add(vehicle2);
    Then you can iterate(move) through your list and print the attributes of each vehicle, instead of having to
    call v1.doThis() v1.doThis(), v2.doThis().
    I find it amusing they want you to create a LinkedList when you are first using/learning classes.
    To understand how to create a linked list, you can visit:
    http://leepoint.net/notes-java/data/collections/lists/simple-linked-list.html
    Or you can use:
    http://java.sun.com/j2se/1.4.2/docs/api/java/util/LinkedList.html
    *Note: I wrote the code from nothing so some of it could have syntax errors.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • General question about classes

    Hi every one,
    I have an application that works but i'll like to optimize it, regarding about speed and system ressources. For resume and represent diagrammatically the application I wrote, there is a first frame (the main menu) with severals buttons. When I push a button I show a new frame with a query resultset displayed inside.
    Theses second frames are all very similars, just a few things are differents between one and another (sql string of the query, and some controls may be visible or not).
    So there are many solutions to write it :
    1- I can make a class representing this second frame and each time I push a button from the main menu, I create a new Object with this class and when I quit this frame I do a "dispose" of it.
    2 - (the solution I got) I create an Object with the model of this second frame once and for all, and when I push a button I set visible this frame and call a method to change some parameters, when I quit the frame I set it hide.
    I think second option is not to bad and the first one is very heavy, but If I created a class B that extends my second frame A (that contains the main code for displaying results) and each time I push a button from the main menu I created an object from B type, is it a good idea ??
    Hope you understand my problem, and hope anyone will give me an idea...

    Hi rainek and ty for your attention,
    Yes you understood right :
    my app creates Frame 1 with buttons and show it, and I create on the background a raw version of Frame 2 shown, and with changed parameters when button is pressed.
    But I don't not extend Frame 2 with a SubFrame 2, I just wonder if it would be a good thing to create subframe 2 and instance it each time I push a button from Frame 1, instead to use the same Frame 2 raw version (storing it in a file config indeed) from the background. I wondered, if when I instance for the second time a subframe 2 it was speeder because an object subframe 2 as already been instancied before.
    You know my problem was also that when I created Frame 2 in the background before create Frame 1, it gave my troubles with Frame 1 display (cf. my topic :http://forums.java.sun.com/thread.jsp?forum=57&thread=231897), so now I create this frame 2 raw version the first time I push any button, but of course there is a litte big longer time answer this first time. (I thank too, to create Frame 2 raw version in a thread to avoid frame 1 display troubles)
    Hope I'm clear and you understand me, for resume in a generic problem, I wonder know if when i have this config :
    Frame 2,
    Subframe2 that extends Frame 2
    if i do
    Subframe2 myframe_a = new Subframe2 (<parameters_a>) and
    Subframe2 myframe_b = new Subframe2 (<parameters_b>)
    myframe_b is created more quickly because myframe_a as been instancied before
    Any way ty very much for your answer rainek !!

  • Interesting observation about internships

    I could see that. I can figure out some stuff, if you have some odd program, or have seen some sort of bug before just tell me and it will be done. I figured out a lot of clonezilla by myself, but I had also worked with ghost before interface, storage was different, but same concept really.
    Place I was trying to setup a Hitachi SAN (from like 04) I told my boss (the tech)I didn't think this was a great investment in utilizing as sat so many years, no software, docs for it, and huge waste of power when you could out the same storage in a small NAS now. She said admin want's done so let's try and do it. I kept running into issues, one time the admin was in our office I asked him takes me to some other Hitachi NAS that linked to a MCdata box, he goes back to office says that a Cisco intelligent FC switch is the controller even when the...

    I've done a couple of internships in I.T depts at different places. Both of them I noticed this which was a bit surprising.
    The first one I knew the tech that would be my boss, she didn't mind showing me how to use some of their software or we'd have something and see what the other thought about this idea or problem. Or I had some project and I'd mention some hiccup and how I'mtrying to fix she'd say did you check ... or sounds like you're heading in the right direction.
    I assumed just because were friends, but the next internship I had another person like that.
    I found interesting because a few of the guy techs I've seen are like okay fix this issue yet won't tell you how to use their odd app so you can make sure things work. Or there arrogant and you say you think the issue is X there like no the user messed something up. Or you have...
    This topic first appeared in the Spiceworks Community

  • Bachelor paper topic about OODBMS

    Hello everybody
    I’m searching for topic for my bachelor paper. I found it interesting and started to use (only studying) db4o. My last papers were about ORM, but now I want to go little bit forward.
    What is the main reason OODBMS is not popular in enterprise systems or ERP, lack a formal mathematical foundation, no sealed standarts or lack of support for security?
    I’m looking for any ideas and hypotheses related to OODBMS for my research. It can be technical tips or organizational improvements as well.
    Thank You!

    I hope every openings are updated in their career page so Check their Careers Page, or you can update your profile to the NI Alliance Paterners if that is fine.

  • Question about Class.forName()

    I am trying to get an instance of a class by its name. Now, I have tried both creating it with the class's actual name and with the class's name including the package path and both times I got a java.lang.ClassNotFoundException: my/package/MyClass.
    I am reading the name out of a properties file and that's working just fine according to my logging information btu here is the code anyway:
    Properties prop = new Properties();
    try{
         java.io.FileInputStream in = new java.io.FileInputStream(inv.getPath());
         prop.load(in);
         String temp = prop.getProperty("myclass1");
         Class c = Class.forName(temp);
         rollen.put("user",c.newInstance());
         temp = prop.getProperty("myclass2");
         c = Class.forName(temp);
         rollen.put("admin",c.newInstance());
    }catch(Exception e){
         //I'm doing some more logging here, guess that's not very interesting
    }I deleted all the logging info from this code snippet to make it shorter. But I can tell you that the name does get read out as my.package.MyClass - and the package and class name are correct...
    The entries in the properties files look like this:
    myclass1=my.package.MyClass
    myclass2=my.package.MyOtherClass
    Can you help me fix this, please?

    Is your classpath okay? I tried this:
    pkg\MyClass.javapackage pkg;
    public class MyClass {
        public MyClass () {
            System.out.println ("Woohoo!");
    }Test.javapublic class Test {
        public static void main (String[] parameters) throws Exception {
            Class.forName ("pkg.MyClass").newInstance ();
    }This outputsWoohoo!as expected.
    Kind regards,
      Levi

  • This is a really interesting topic...

    hi people...
    I'm currently reading through literature about using the default DOM in java 1.4 to read/write XML documents. But there's no mention of reading RDF (resource description framework) in XML documents.
    Do i just use the normal way (ie NodeList etc) to read/write the docs or is there a better way?
    Cheers in advance.
    By the way i must apologise for the subject title -- had to put it because no-one seems to wanna look at this question when entitled "resource description framework"!

    By the way i must apologise for the subject title -- had to put it because no-one seems to wanna look at this question when entitled "resource description framework"! Maybe thats because I don't know what RDF is so I don't want to waste our time reading posts that I can't help solve.
    The topic is meant to be descriptive for a reason - use it.

  • Question about classes/Directories

    I've been using Java to learn programming for a while now, so this question may not belong here. It seems to be more of a general question, however, not code related.
    How does java work with directories? Say I had a project, and for some reason I wanted different java class files to be in different directories. How does java handle this? Say for example:
    1.) Main class is in C:/blahblah/Project/ and the other classes were in C:/blahblah/Project/src/?
    2.) Main class is in C:/blahblah/Project/src/ and the other classes were in C:/blahblah/Project/?
    3.) Main class is in C:/blahblah/Project/src/ and other classes were in C:/blahblah/Project/bin/?
    I know these may be kind of stupid examples, but I just wanted to know how such things worked for future reference. Thanks a ton!

    {color:#3D2B1F}It sounds like you need to learn about packages: [http://java.sun.com/docs/books/tutorial/java/package/index.html] {color}

Maybe you are looking for

  • Real Instruments Not playing - effects are

    In one of my songs, the real instruments do not play. However, I can hear the reverb and echo for these tracks. The tracks still respond to editing. The drum loop and Software Piano play just fine.

  • Help needed regarding illegal start of expression

    Hi all, i'm new to java programming and this forum, i tried to compile the code but the compiler keeps getting illegal start of expressionpublic int getX() { the following is my code: import java.awt.*; import javax.swing.*; class Swatches {      pub

  • Satellite A100 has a black screen and won't load into the Bios

    I bought a Satellite A100 - (model psaa8c-0fh00e) about 5 months ago. it was left on over night which is not uncommon and when i came back to use it about 15 hours later it was just a black screen. moved the touch screen and its keys and nothing happ

  • Can AIR do this?

    Hi people I need to know if AIR is the right choice for creating this app. I've been asked to create an app that is updated by a community. The data is saved in an SQLite DB and will require access to images. Here's the bit I need help with: Can AIR

  • Can you deploy 3rd party root CA with WSUS?

    Is it possible? bostjanc