Looking for a Java USA Map class or applet

Hi,
I need to display a gif (or applet) of the USA and be able to color states different colors. Does anyone know of a simple class or applet that will do this?

Email me
[email protected]

Similar Messages

  • Looking for a java-based SDK that handles file conversion to PDF and TIF...

    Hi all,
    First off, this is my first posting so I'm not 100% sure where to post this topic. So please forgive me if I'm accidentally posting in the wrong location.
    My question deals with a project I am currently working on.
    I am looking for a java-based SDK that can meet the following requirements...
    1) convert all printable file-formats (i.e. JPEG, DOC, TXT, PPT, etc.) into PDF
    2) merge multiple PDFs into one PDF
    3) convert PDF to TIF or at least do some sort of conversion to TIF
    4) works in Java or some sort of web-based language
    5) free or relatively cheap
    Any advice/suggestions would be greatly appreciated.
    Thank you very much.

    I don't think you will get one API to do them all.
    Some helpful hints:
    [http://schmidt.devlib.org/java/libraries-pdf.html]
    [http://xmlgraphics.apache.org/fop/] (with the pdf-image extension, that I can't find now :shakefist)
    JAI

  • Looking for pure Java API to read metadata from an MP4 file.

    Hi, I am looking for a pure Java api that can read MP4 metadata. I have been trying to look online for one but have not found anything
    suitable. If there are no good api's, can someone point me to resources on how to parse metadata from an MP4, tutorials would be great
    as well. I have looked online for that as well but have not found much. Any help would be greatly appreciated.

    Cross posted
    http://www.java-forums.org/new-java/59652-looking-pure-java-api-read-metadata-mp4-file.html
    http://www.coderanch.com/t/580833/Streams/java/Looking-pure-Java-API-read
    http://stackoverflow.com/questions/10568588/looking-for-pure-java-api-to-read-metadata-from-an-mp4-file
    db

  • Looking for recommend Java Training

    I have just spent a better part of a week trying to work on a java issue.  We are running Netweaver 7.01 as our Java server to our BW systems.  These NW boxes are Java (stack) only servers.  I would like to get more up to speed on managing, debugging, monitoring, etc on the Java side of things.  I am not even sure I have the terminolgoy right!  What courses have you taken that you feel were effective?  Right now my role is DBA (Oracle) and backup R3 Admin.  As we move to a more Java rich environment I'd like to help fix things (vs bouncing the server all the time).  I feel lost in Visual Administrator.  I see to many courses that say "The course does not introduce Netweaver fundamentals and administrations." which is exactly what I feel I need.
    Thanks!
    Vince

    I was meant to go on a combination TEP10 course recently which covers the same contents as ADM200 and EP200, but that's hard to find (and was cancelled where I did find it). If you're just looking for the Java admin basics look at this course tree: https://training.sap.com/za/en/curriculum/adm_java-sap-system-administration-as-java-general-g/.
    ADM200 is almost certainly the one you want if you want the shortest (i.e. cheapest!) course focusing on just Java admin, though unfortunately I cannot yet speak from direct experience. Check out the curricula listed for yourself and don't forget to shop around the various SAP Education centres (that link is for South Africa but the curricula for the courses will be the same elsewhere as long as the version is the same). For example see this course tree from the US SAP Centre: https://training.sap.com/us/en/curriculum/ep_adm_us-portal-administration-us/. And don't forget that there are other combination courses like the TEP10 course (e.g. TADM10/TADM12) that might cover even more of what you're looking for - do some digging around to be sure of what you want.

  • Looking for a Java Parser

    Hi,
    I'm working on a Web Service Project, and i'm trying to deploy Web Services dynamically. Now the problem is, that i have to adapt the Java src-files sometimes before the deployment (Like adding Annotations, Methods or just peaces of code into a Method. So what i'm looking for is some Sort of a Java Parser, that gives me information on where to insert the code i generated.
    Simple example:
    public class WSExample{
         public void doSomething(){
              //do something
    //this class should be changed to something like this:
    public class WSExample{
         @WebMethod       //Annotation added
         public void doSomething(){
              //do something
            //this Method is generated automatically
            @WebMethod
            public void doSomethingDifferent{
                   //like establishing a connection to a different WS
    }All i've found up to now are parser generators like antlr or javacc. But i couldn't find anything about how to use the generated parsers or even manipulate the parsed code, yet. I hope i don't have to write a parser or grammar myself. Maybe someone can link me to some useful tutorial, forum or whatever else might be helpful.

    If you are using Sun's Java 1.4, you already have one. If you are using an ealier version, here are a couple of links:
    Xerces is probably the most feature rich:
    http://xml.apache.org/xerces2-j/index.html
    GNU JAXP is also good and very small:
    http://www.gnu.org/software/classpathx/jaxp/

  • I look for a "java client IRC applet"

    Hello every body and good hollydays!
    For long time, I looked for a open source java "client irc" applet.
    I have found one, but it does' n run! (it needs to be signed and unfortunatly
    I don't doing it !).
    Briefly i need links about all this subject.
    A great thanks.
    elias

    Search in google by "java client IRC applet" found many different links :-)

  • Looking for information about AS3 sound classes in "audio" wrong places?

    I'm looking for in depth information about ActionScript 3.0 sound classes. No matter where I search I continually encounter the same sort of kindergarten level descriptions, which never teach more than what we can readily glean from Adobe's documentation. Someone must know where there a discussion that really gets to the heart of the matter.
    I've read Adobe's LiveDocs on the Sound, SoundChannel, SoundMixer, SoundTransform classes. Indeed, they provided me enough guidance to create my own streaming MP3 player, with volume, pan, my own custom mono mix, http request, a preloading animation, and peak meters ...
    Here's an example (in the last statement of the following code) where I understand the end effect, but I fail to comprehend what happens at the compiler level:
    var currentSoundSource:Sound = new Sound();
    currentSoundSource.load(new URLRequest("http://www.mySite.com/myRecording.mp3"));
    var audioChannel_01:SoundChannel = new SoundChannel();
    audioChannel_01 = currentSoundSource.play();
    Unfortunately the class definitions in LiveDocs are quite terse, and they're seemingly incomplete with respect to:
         •     advice on best practices
         •     a thorough coverage of class to class interactivity
         •     a description of exactly how audio streams/plays into channels
    ... and in certain cases it appears that Adobe's descriptions are not fully accurate.*
    Regarding best practices, at first blush I'm sure everyone ponders over the fact that SoundChannel and SoundMixer have a stop method while the Sound class does not.
    One assumes that this surprising design must bear some advantages. If so,  what are they? Where are the analog sound mixer analogies? What would be the disadvantage of a sound class with a stop method ...  particularly when they have their own play method?
    Where are the discussion of these concepts? (Even if Adobe hired the wrong guy to write its sound classes, there should be some follow through that thoroughly explains the existing situation.)
    Phrankie
    * Here's an instance where the docs appear to be partially in error. (Is "and play" mistakenly included in the following?)
    "The Sound class lets you lets you create a new Sound object [and] load and play an external MP3 file into that object."
    ... uh, mmmmmm ... we play an MP3 into a sound class object?
    Wouldn't it be more accurate to say the following:
    A soundChannel can receive the audio data from a sound class object. We can play a sound object into an SoundChannel and manipulate it by altering the SoundChannel's soundTransform property, and we can stop it with the SoundChannel's stop method. 

    check everything you can find written by tinic uro.  this will get you started:  http://www.kaourantin.net/

  • Looking for the java default XML parser?

    Hey guys,
    I just wondering alot about the sometimes mentioned Java Default XML Parser. So I used xerces and it worked fine, but my program doesnt need the whole functionality of xerces and I want to save some space for the resulting project jar. The xerces parser is 1.1 MB huge and instead of xerces I could use the default SAX parser in the java API, I thought.
    Although it is mentioned in some books/documents I can not find it.
    Could you give me an exmaple with the XMLReaderFactory how to use the default parser?
    I would appreciate this alot!
    Thanks.

    Hey,
    yes that I tried before, because I read this too.. If I am doing this Im getting the error:
    Exception in thread "main" org.xml.sax.SAXException: System property org.xml.sax.driver not specified
         at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:90)
         at cfm.com.gui.GUIBuilder.buildGUIPage(GUIBuilder.java:51)
    ...So, this means that the JDK comes not with an default parser implementation I suggest.
    Hmm... stupid! I think I have to ship the xerces parser with my application... but its huge!
    Does anybody know what of the compelling parser are the lighweightest?
    Im gonna look for this answer too....
    Thanks.

  • Looking for a Utility to map error code to error message

    Hi All
    I am looking for a utility that would map my error codes to corresponding error messages. If you know there such a utility, please point me to it. In addition, I am looking for a utility that would validates input -- eg. length, range of input. Thanks.

    In addition, I am looking for a utility that would validates input -- eg. length, range of input. Whatever you do, don't use asserts for this.

  • Java application with classes to Applet?

    Hello,
    First, I'm a Java junior, but I can make efforts to analyse and understand code.
    I saw an interesting open-source multiplayer poker java application: [JiBi's Hold'Em|http://sourceforge.net/projects/jibisholdem/]
    I would like to try to add it as an Applet on my server, but I have some questions.
    1- Do you think it is possible to make it fully works as an Applet (eg: through a proxy), as it seems to use a specific protocol and many classes?
    2- I tried the idea of GumB: http://forums.sun.com/thread.jspa?threadID=390846&start=13&tstart=0
    with getContentPane().add( new javaApp().getContentPane()but I have the following error message:
    I also tried with imports (import holdem.core.Card;etc) and with HoldEmClientGUI().getContentPane() or holdem.gui.HoldEmClientGUI().getContentPane()
    D:\JiBisHoldem\src\holdem\gui\HoldEmApp.java:7: cannot find symbol
    symbol  : class HoldEmClientGUI
    location: class HoldEmApp
            getContentPane().add( new HoldEmClientGUI().getContentPane() );
                                      ^
    1 errorAm I close or really far from a working result?
    Thanks
    John.

    The above way seems to have the same result as getContentPane().add( new javaApp().getContentPane().
    Here is my HoldEmClientGUI.java (I have commented unused lines like title):
    package holdem.gui;
    import holdem.core.Card;
    import holdem.core.Choice;
    import holdem.core.Player;
    import holdem.gui.interfaces.ClientGUIInterface;
    import holdem.gui.menu.MainMenuBar;
    import holdem.gui.panel.PokerChoiceListPane;
    import holdem.gui.panel.PokerMainPane;
    import holdem.gui.panel.PokerPlayerPane;
    import java.awt.BorderLayout;
    import java.io.IOException;
    import java.util.ArrayList;
    import java.util.HashMap;
    import javax.swing.ImageIcon;
    import javax.swing.JFrame;
    import javax.swing.JApplet;
    import sun.audio.AudioPlayer;
    import sun.audio.AudioStream;
    import tools.AppProperties;
    import java.applet.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class HoldEmClientGUI extends JApplet {     
         public static void main(String[] args) {
              HoldEmClientGUI app = new HoldEmClientGUI();
              app.init();
              app.start();
         public void init()
              AppletContext ac = null;
              try
                   ac = getAppletContext();
              catch(NullPointerException npe)
              //new HoldEmClientGUIFrame(ac);
              new HoldEmClientGUIFrame();
    class HoldEmClientGUIFrame extends JFrame implements ClientGUIInterface {
         private static final long serialVersionUID = 1L;
         private String m_mainTitle = "";
         private String m_title1 = "";
         private String m_title2 = "";
         private HashMap<Integer, PokerPlayerPane> m_playerPaneList = null;
         private PokerMainPane m_pokerMainPane = null;
         private MainMenuBar m_pokerMainMenuBar = null;
         private PokerChoiceListPane m_pokerChoiceListPane = null;
         //AppletContext ac;
         //HoldEmClientGUI(AppletContext ac) {
         HoldEmClientGUIFrame() {
              //super();
              //this.ac = ac;
              //Set Icon
              //setIconImage(new ImageIcon(getClass().getResource(AppProperties.getInstance().getProperty("holdem.images.icon.logo"))).getImage());
              m_mainTitle = AppProperties.getInstance()
                        .getProperty("holdem.config.title")
                        + " - v"
                        + AppProperties.getInstance().getProperty(
                                  "holdem.config.version");
              //refreshTitle();
              // adding PokerTable
              getContentPane().add(getPokerMainPane(), BorderLayout.CENTER);
              getContentPane().add(getPokerChoiceListPane(), BorderLayout.SOUTH);
              getContentPane().add(getPokerMainMenuBar(), BorderLayout.NORTH);
              // init playerPaneList
              m_playerPaneList = new HashMap<Integer, PokerPlayerPane>();
              //setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              // setSize(200, 100);
              /* Add the window listener */
              addWindowListener(new WindowAdapter()
                   public void windowClosing(WindowEvent evt)
                        dispose();
                        if (AppletApplicationFrame.this.ac == null)
                             System.exit(0);
              setVisible(true);
              pack();
         private void refreshTitle(){
              //setTitle(m_mainTitle+m_title1+m_title2);
         private PokerMainPane getPokerMainPane() {
              if (m_pokerMainPane == null) {
                   m_pokerMainPane = new PokerMainPane();
              return m_pokerMainPane;
         private PokerChoiceListPane getPokerChoiceListPane() {
              if (m_pokerChoiceListPane == null) {
                   m_pokerChoiceListPane = new PokerChoiceListPane();
              return m_pokerChoiceListPane;
         private MainMenuBar getPokerMainMenuBar() {
              if (m_pokerMainMenuBar == null) {
                   m_pokerMainMenuBar = new MainMenuBar();
              return m_pokerMainMenuBar;
         public void addPlayer(Player player) {
              PokerPlayerPane playerPane = new PokerPlayerPane();
              playerPane.initPlayer(player.getId(), player.getSeatNumber(), player
                        .getNickname(), player.getStack(), player.getPlayerType());
              getPokerMainPane().addOnSeat(playerPane, player.getSeatNumber());
              m_playerPaneList.put(player.getId(), playerPane);
         public void setPlayerCardHighlighted(boolean highlighted, int playerId,
                   int cardNumber) {
              PokerPlayerPane playerPane = getPlayerPaneByPlayerID(playerId);
              if (playerPane != null) {
                   playerPane.setCardHighlighted(highlighted, cardNumber);
         public void setTableCardHighlighted(boolean highlighted, int cardNumber) {
              m_pokerMainPane.setCardHighlighted(highlighted, cardNumber);
         public void setAllCardsHighlighted(boolean highlighted) {
              ArrayList<PokerPlayerPane> playerPaneList = new ArrayList<PokerPlayerPane>(
                        m_playerPaneList.values());
              for (int playerCounter = 0; playerCounter < playerPaneList.size(); playerCounter++) {
                   playerPaneList.get(playerCounter)
                             .setCardHighlighted(highlighted, 0);
              m_pokerMainPane.setCardHighlighted(highlighted, 0);
         public Choice displayChoices(ArrayList<Choice> choiceList) {
              return getPokerChoiceListPane().displayChoices(choiceList);
         public void displayAsyncMsg(String msg) {
              getPokerMainPane().displayTempoMsg(msg);
         public int getBetValue() {
              return getPokerChoiceListPane().getBetValue();
         public void addCardToPlayer(int playerId, Card card) {
              PokerPlayerPane playerPane = getPlayerPaneByPlayerID(playerId);
              if (playerPane != null) {
                   playerPane.addCard(card);
         public void addCardToTable(Card card) {
              getPokerMainPane().addCardToTable(card);
         public void removeCardsFromPlayer(int playerId) {
              PokerPlayerPane playerPane = getPlayerPaneByPlayerID(playerId);
              if (playerPane != null) {
                   playerPane.removeCards();
         public void removeCardsFromPlayers() {
              ArrayList<PokerPlayerPane> playerPaneList = new ArrayList<PokerPlayerPane>(
                        m_playerPaneList.values());
              for (int playerCounter = 0; playerCounter < playerPaneList.size(); playerCounter++) {
                   playerPaneList.get(playerCounter).removeCards();
         public void removeCardsFromTable() {
              getPokerMainPane().removeCards();
         private PokerPlayerPane getPlayerPaneByPlayerID(int playerID) {
              PokerPlayerPane foundPlayerPane = (PokerPlayerPane) m_playerPaneList
                        .get(playerID);
              return foundPlayerPane;
         public void setButton(int seatNumber, int buttonType) {
              m_pokerMainPane.setButton(seatNumber, buttonType);
         public void setConnectionStatus(boolean isConnected, String nickname) {
              m_pokerMainMenuBar.setConnectionStatus(isConnected);
              m_title1 = " - " + nickname;
              if (isConnected) {
                   m_title1+=" is Connected";
              } else {
                   m_title1+=" is not Connected";
              refreshTitle();
         public void setPot(int potValue) {
              getPokerMainPane().setPot(potValue);
         public void setPlayerStack(int playerID, int newStack) {
              PokerPlayerPane playerPane = getPlayerPaneByPlayerID(playerID);
              if (playerPane != null) {
                   playerPane.setStack(newStack);
         public void setCurrentBetValue(int playerID, int betValue) {
              PokerPlayerPane playerPane = getPlayerPaneByPlayerID(playerID);
              if (playerPane != null) {
                   playerPane.setCurrentBet(betValue);
         public void setPlayerAction(int playerID, int PLAYER_ACTION) {
              PokerPlayerPane playerPane = getPlayerPaneByPlayerID(playerID);
              if (playerPane != null) {
                   playerPane.setAction(PLAYER_ACTION);
         public void playSound(int ACTION) {
              String soundPath = "";
              switch (ACTION) {
              case ClientGUIInterface.ACTION_ALLIN: {
                   soundPath = AppProperties.getInstance().getProperty(
                             "holdem.sounds.chips.allin");
                   break;
              case ClientGUIInterface.ACTION_BET: {
                   soundPath = AppProperties.getInstance().getProperty(
                             "holdem.sounds.chips");
                   break;
              case ClientGUIInterface.ACTION_CALL: {
                   soundPath = AppProperties.getInstance().getProperty(
                             "holdem.sounds.chips");
                   break;
              case ClientGUIInterface.ACTION_RAISE: {
                   soundPath = AppProperties.getInstance().getProperty(
                             "holdem.sounds.chips");
                   break;
              case ClientGUIInterface.ACTION_PAY_SMALL_BLIND: {
                   soundPath = AppProperties.getInstance().getProperty(
                             "holdem.sounds.chips");
                   break;
              case ClientGUIInterface.ACTION_PAY_BIG_BLIND: {
                   soundPath = AppProperties.getInstance().getProperty(
                             "holdem.sounds.chips");
                   break;
              case ClientGUIInterface.ACTION_CHECK: {
                   soundPath = AppProperties.getInstance().getProperty(
                             "holdem.sounds.check");
                   break;
              case ClientGUIInterface.ACTION_FOLD: {
                   soundPath = AppProperties.getInstance().getProperty(
                             "holdem.sounds.fold");
                   break;
              case ClientGUIInterface.ACTION_DEAL_CARDS: {
                   soundPath = AppProperties.getInstance().getProperty(
                             "holdem.sounds.card");
                   break;
              case ClientGUIInterface.ACTION_REMOVE_CARDS: {
                   soundPath = AppProperties.getInstance().getProperty(
                             "holdem.sounds.remove_cards");
                   break;
              default: {
              if (soundPath != null && !soundPath.trim().equals("")) {
                   try {
                        AudioPlayer.player.start(new AudioStream(getClass()
                                  .getResource(soundPath).openStream()));
                   } catch (IOException ioe) {
                        System.err.println("Unable to play sound:\n" + soundPath
                                  + "\n\n" + ioe);
         private void displayBlindValues(int curSB, int curBB, int nextSB, int nextBB){
              //m_title2=" - "+curSB+"/"+curBB+" (next values "+nextSB+"/"+nextBB+")";
              //refreshTitle();
         public void raiseBlinds(int curSB, int curBB, int nextSB, int nextBB){
              displayBlindValues(curSB,curBB,nextSB,nextBB);
    }The error when calling HoldEmClientGUI.class (I have 2 files HoldEmClientGUI.class and HoldEmClientGUIFrame.class, is it normal?):
    java.lang.VerifyError: (class: holdem/gui/menu/MainMenuBar, method: handleSettingsItem signature: ()V) Incompatible argument to function
         at holdem.gui.HoldEmClientGUIFrame.getPokerMainMenuBar(HoldEmClientGUI.java:145)
         at holdem.gui.HoldEmClientGUIFrame.<init>(HoldEmClientGUI.java:95)
         at holdem.gui.HoldEmClientGUI.init(HoldEmClientGUI.java:54)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)MainMenuBar.java:
    import holdem.gui.dialog.ClientInputDialog;
    import holdem.gui.dialog.ServerInputDialog;
    import holdem.gui.dialog.SettingsDialog;
         private void handleSettingsItem() {
              new SettingsDialog(getHoldEmClientGUI());
         private HoldEmClientGUI getHoldEmClientGUI() {
              HoldEmClientGUI gui = null;
              Container curContainer = this;
              do {
                   curContainer = curContainer.getParent();
              } while (curContainer instanceof Container
                        && !(curContainer instanceof HoldEmClientGUI));
              if (curContainer instanceof HoldEmClientGUI) {
                   gui = (HoldEmClientGUI) curContainer;
              return gui;
         }I think the problem comes from private HoldEmClientGUI getHoldEmClientGUI() but I don't know what is wrong in it.
    Edited by: Quezako on Oct 14, 2008 7:51 AM

  • Mad as hell, where is the doc for default java keyboard mapping

    I know it's there somewhere. But when I need it, I can not find it. It's the listing of all platforms mapping of keyboard shortcut and swing components. Man!!! Sun should have put it somewhere, like a link in the registerKeyaction, or keyevent, or keystroke or event, or Jcomponent, or whatever, God. I am so mad, after search for a long time and can not find a thing. grurururugurufgurugururur

    Found it!!!!
    Here's how:
    Start at JComponent:
    http://java.sun.com/j2se/1.3/docs/api/javax/swing/JComponent.html
    Look down, and see link: Swing package description
    http://java.sun.com/j2se/1.3/docs/api/javax/swing/package-summary.html#package_description
    Here, you'll see: Keystroke Handling
    http://java.sun.com/j2se/1.3/docs/api/javax/swing/package-summary.html#keys
    There, you'll find: Swing Component Keystroke Assignments.
    http://java.sun.com/j2se/1.3/docs/api/javax/swing/doc-files/Key-Index.html
    Wow!!! I hope there are other easier ways.

  • How to use "put" function in Java.util.Map class

    intially an entry for key is null in a Map.
    then if I try to do put function on the map with the same key which had a null value previously It doesn't allow me to put the new value for the Key.
    Can anyone pleasee suggest as to how I can put a value on to key with the new value even if the old value is null.
    Waiting for replies

    I have problem with the "value"..Not with a "key"
    parameter in the function.I already have a value for
    Key...that is "Firstkey"
    Map map = new HashMap();
    String column = "FirstKey";
    map.put(column, null);
    The below step gives me an IllegalArgumentException
    map.put(column, "FirstValue");That's not the problem. Your error is somewhere else.
    This works.
    public class Test {
         public static void main(String[] args) {
              Map map = new HashMap();
              String column = "FirstKey";
              map.put(column, null);
              map.put(column, "FirstValue");
              System.out.println("Done");
    }Kaj

  • I am looking for an animated globe/map with zoom capabilities for FCP

    I want to purchase a globe that will spin and look somewhat realistic and when I stop it on the country it will zoom in/out to the state I want. I have found globes at several companies, but I need the zoom effect. Or... I need a map of the U.S. with a zoom effect like this. Can anyone help?

    Google earth pro can be purchased with a modual that exports to AVI format, but only runs on the PC; its MUCH cheaper than 10k; I'm sure you can use the google search engine to find the home page to earth pro, with the movie maker plugin.
    You can use google earth the free version to create the sequance to test and see if you see what you like; and then upgrade to pro with movie plug in and get the best results; The free version will not be as smooth and hi res as the pro with movie maker, movie maker downloads all the data for each frame, then stores that frame in the AVI, the free version will download as much data as it can to display to keep up with the time alloted for the animation;
    You can get sneeaky and use your camera to record off the LCD panel, but this looks like crap as all the details are missing, not to mention its illegal. Pro with Movie plug in is worth it for exactly this type of thing...
    tk

  • I'm looking for JTreeOutputter.java - JDOM

    I want to use the JTreeOutputter class, but I can't find it.
    I want to represent a JDOM structure in a JTree, and this class should be able to do it.
    Can someone help me, http://cvs.jdom.org seems to be down and I can't find it elsewhere.
    Thanks.
    Jeroen Knoops - The Netherlands.

    I found the source code:
    Copyright (C) 2000 Brett McLaughlin & Jason Hunter.
    All rights reserved.
    Redistribution and use in source and binary forms, with or without
    modification, are permitted provided that the following conditions
    are met:
    1. Redistributions of source code must retain the above copyright
    notice, this list of conditions, and the following disclaimer.
    2. Redistributions in binary form must reproduce the above copyright
    notice, this list of conditions, and the disclaimer that follows
    these conditions in the documentation and/or other materials
    provided with the distribution.
    3. The name "JDOM" must not be used to endorse or promote products
    derived from this software without prior written permission. For
    written permission, please contact [email protected].
    4. Products derived from this software may not be called "JDOM", nor
    may "JDOM" appear in their name, without prior written permission
    from the JDOM Project Management ([email protected]).
    In addition, we request (but do not require) that you include in the
    end-user documentation provided with the redistribution and/or in the
    software itself an acknowledgement equivalent to the following:
    "This product includes software developed by the
    JDOM Project (http://www.jdom.org/)."
    Alternatively, the acknowledgment may be graphical using the logos
    available at http://www.jdom.org/images/logos.
    THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
    WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
    OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
    DISCLAIMED. IN NO EVENT SHALL THE JDOM AUTHORS OR THE PROJECT
    CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
    USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
    ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
    OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    SUCH DAMAGE.
    This software consists of voluntary contributions made by many
    individuals on behalf of the JDOM Project and was originally
    created by Brett McLaughlin and
    Jason Hunter . For more information on the
    JDOM Project, please see <http://www.jdom.org/>.
    * formatted with JxBeauty (c) [email protected]
    package  org.jdom.contrib.output;
    * A JTree outputter.
    * This outputter builds a JTree representation of the JDOM document for
    * easy visual navigation. This is a full rewrite of the JTreeOutputter
    * originally written by James Davies.
    * @author Matthew MacKenzie [[email protected]]
    import  java.util.Iterator;
    import  java.util.List;
    import  javax.swing.*;
    import  javax.swing.tree.DefaultMutableTreeNode;
    import  javax.swing.tree.TreeNode;
    import  org.jdom.input.SAXBuilder;
    import  org.jdom.Document;
    import  org.jdom.Attribute;
    import  org.jdom.Element;
    public class JTreeOutputter {
      public JTreeOutputter () {
      public JTreeOutputter (boolean toBeCompatible) {
        // just here to mimic the legacy JTreeOutputter
       * Output a Document.
       * @param Document The document to transform to TreeNode.
       * @param DefaultMutableTreeNode The root tree node.
       * @return void
      public void output (Document doc, DefaultMutableTreeNode root) {
        processElement(doc.getRootElement(), root);
       * Output an Element.
       * @param Element The element to transform to TreeNode.
       * @param DefaultMutableTreeNode The root tree node.
       * @return void
      public void output (Element el, DefaultMutableTreeNode root) {
        processElement(el, root);
      protected void processElement (Element el, DefaultMutableTreeNode dmtn) {
        DefaultMutableTreeNode dmtnLocal = new DefaultMutableTreeNode(el.getName());
        String elText = el.getTextNormalize();
        if (elText != null && !elText.equals("")) {
          dmtnLocal.add(new DefaultMutableTreeNode(elText));
        processAttributes(el, dmtnLocal);
        Iterator iter = el.getChildren().iterator();
        while (iter.hasNext()) {
          Element nextEl = (Element)iter.next();
          processElement(nextEl, dmtnLocal);
        dmtn.add(dmtnLocal);
      protected void processAttributes (Element el, DefaultMutableTreeNode dmtn) {
        Iterator atts = el.getAttributes().iterator();
        while (atts.hasNext()) {
          Attribute att = (Attribute)atts.next();
          DefaultMutableTreeNode node = new DefaultMutableTreeNode("@" + att.getName());
          node.add(new DefaultMutableTreeNode(att.getValue()));
          dmtn.add(node);
    }

  • Looking for a keyboard/matrix mapping utility

    I am designing my own keyboard and I need an application to tell me which keys do what. A word processing program only tells me which number or letter key I am pressing; I need one that tells me which Command, or Control, or Option, or Esc. key I am pressing, as well. I have hunted online for a few hours now, but for the five million instances Google will return, what terms do I use? Key? keyboard? Map? Matrix? For all I know, there may be a mini-app for seeing which key does what-already built into the OS X system. Or in the X11 package. Nobody told me about it. Is there a shareware program that will do it?
    PM G5 PPC   Mac OS X (10.4.8)   1.5 GB RAM; 150GB & 250GB HDs
    PM G5 PPC   Mac OS X (10.4.8)   1.5 GB RAM; 150GB & 250GB HDs
    PM G5 PPC   Mac OS X (10.4.8)   1.5 GB RAM; 150GB & 250GB HDs

    The standard tool for making a custom keyboard mapping is Ukelele:
    http://scripts.sil.org/cms/scripts/page.php?siteid=nrsi&itemid=ukelele
    However, this is only for customizing characters (not functions) made with normal, shift, option, and shift+option.

Maybe you are looking for

  • Instructions "if-then-else" in the texte

    Hello I need to create a RTF template with the management of civility : I tried this: <?xdofx:if MM = 'MRS' then 'Mrs.' else if MM = 'MR' then 'Mr.' else 'Mrs. and Mr.' end if?> And it just works. But when I add this condition in the texte, it does n

  • Converting a paper document to ADOBE Page

    hi guys,         I have a task like this To convert a paper document to ADOBE page and i should edit that page also. I have converted a doc to ADOBE page and when i open that doc in ADOBE Life cycle designer, it opens as an image (so we cant edit tha

  • Help: MBP Using Intel GMA x3100 video

    After opening my MBP today to teach a class, the display was black as well as the projector I connected. I have used this projector many times with success. The display will not turn on now at all, even though everything else is working fine. My 20in

  • Correct termocouple reading by VI channel test panel but not by DAQ wizards.

    1. I am getting correct termocouple readings when using the virtual channel test panel, but not when using labView software created by the DAQ wizards. why and how to solve it? 2. I am unable to switch on 6V relay using DAQ card's output voltage but

  • Daylight Saving (DST)(Summer) Time setting.

    Hello. I am having two problems: 1...When I turn my computer on, I sometimes notice the time is incorrect and have to re-set it. I'm thinking this could be due to the backup battery (it hasnt been changed in 6 years), so will look into doing that. 2.