How to use com.bruceeckel.swing

Im trying to execute some code that comes in bruce eckel�s thinking in java, but it imports com.bruceeckel.swing, and the compiler (eclipse) doesnt know where the package is located. How do i use those classes that come with the book? where do i have to place them? please, anyone who�s gone trhu this, please explain

Im trying to execute some code that comes in bruce
eckel�s thinking in java, but it imports
com.bruceeckel.swing, and the compiler (eclipse)
doesnt know where the package is located. How do i
use those classes that come with the book? where do i
have to place them? please, anyone who�s gone trhu
this, please explainDownload the class files or their source code and add/import them into your project in Eclipse.

Similar Messages

  • How to use stysheet for Swing components?

    Hi,
    Give me a guidence abt how to use Stylesheet for Swing components to crate good looking GUI...........thnx

    thank you for your reply,
    I want to know how many times a component is refreshed. I'm asumming the RefreshCondition attribute gets called everytime a component gets refreshed, hence it could be counted.
    I'm just not sure how to use it.

  • How to use COM DLL in LabWindows

    Hello
    I have a COM .dll which looks like that when opened with dll export viewer:
    I would like to use the Get4AxisPos function in LabWindows.
    I understood that, as I only have the .dll, the only way of calling these functions are with the LoadLibrary() and GetProcAddress() functions.
    My problem is that the Get4AxisPos function is not of type Exported Function but COM Method so I don't know how to use it in my LabWindows project!
    My questions are: Is it possibleto use this dll in Labwindows? If yes how?
    Thanks
    Solved!
    Go to Solution.

    Hi ,
    I am new to C++ and COM  .
    i need to implement a client application in C(lab windows CVI) , server is a c++ COM object.
    steps followed by me
    ---> accessed the registered COM object with Labwindows CVI active x controller template,output was a c file which is implementation of the class names in COM (interfaces).
    I can use majority of the functions directly from the generated, but i need to implement some event functions like message box events and then use it.
    I have seen one method of accessing in C++ client sample ,
    which implements Queryinterface function...takes the IID_Unknown as input and returns interface pointer(inhereted static_castof the required class, uses static_cast for that) as output.
    when i try to follow up the same in c , i am lost  with the inheritance concept.
    In short i need to send IID Unknown to the Queryinterface function and should get the interface pointer of message box type or other class type ...
    Sorry for the long mail,Please guide me
    Thanks in advance ,
    Satish

  • Java mapping how to use com.sap.tc.logging

    Hi I would like to know how to use logging within a java mapping.
    I know i have to use theese classes : Location, Category, ConsoleLog but i dont know how.
    1) How to load the P1, P2, P3 and P4 tags in the Error tag of the SOAP header watched in SXMB_MONI
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="MAPPING">STREAM_TRANSFORMATION_EX</SAP:Code>
      <SAP:P1>SwissMedical/Interfaces/IFI002/LiquidacionMapping~</SAP:P1>
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Java mapping of application triggered an exception</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    2) How to load and activate log in the DIAGNOSTIC tag of the SOAP Header.
    - <SAP:Diagnostic xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:TraceLevel>Information</SAP:TraceLevel>
      <SAP:Logging>Off</SAP:Logging>
      </SAP:Diagnostic>
    Thanks!!

    As already suggested, you can display custom messages using AbstractTrace.
    trace = (AbstractTrace)param.get( StreamTransformationConstants.MAPPING_TRACE );
                        trace.addInfo("G1-CYCLE is missing");
    For more on coding front refer:
    http://help.sap.com/javadocs/NW04/current/pi/com/sap/aii/mapping/api/StreamTransformation.html
    To get this trace seen in MONI, set parameter TRACE_LEVEL in SXMB_ADM to 2.

  • How to Use Com ports on oracle forms

    Hai,
    how we can use com port to communicate to the device like Pole Display(output device) or fixed scaneer (input device) having serial port(Input device) in oracle forms.
    Thanks & regards

    For web forms you will probably need to create a PJC and/or use webutil and make calls to the device's API.

  • How to use Graphics in swings?

    Hi,
    I would like to write a Graphics application in swings, Is it possibel?
    help me.

    Hi,
    I would like to write a Graphics application in
    swings, Is it possibel?
    help me.Yes! a short example using JApplet in swing using graphics.
    import java.awt.Graphics;
    import java.awt.Image;
    import javax.swing.JApplet;
    public class Animate extends JApplet implements Runnable {
        Thread runner;
        boolean notDone;
        int x, y;
        public void init(){
            notDone = true;
            x = 10;
            y = 20;
            setSize(500,100);
            startRunning();
        public void run(){
            while(notDone){
                if(x < 400){
                    x++; repaint();
                    try {
                        Thread.sleep(500); // control the speed
                    } catch (InterruptedException ex) {
                        ex.printStackTrace();
                } else {
                    x = 10;
        public void startRunning(){
            runner = new Thread(this);
            runner.start();
        public void paint(Graphics g){
            animate(g);
        public void repaint(){
            try{
                Image img = this.createImage(getSize().width , getSize().height);
                Graphics g = img.getGraphics();
                g.setColor(this.getBackground());
                g.fillRect(0, 0, getSize().width, getSize().height);
                g.setColor(this.getForeground());
                paint(g);
                this.getGraphics().drawImage(img, 0, 0, null);
            }catch(NullPointerException e){}
        public void animate(Graphics g){
            g.drawString("Help me -->", x, y);
    }

  • How to Use COM Component in a Java Bean

    Dear Sir,
    How can I use a COM Component in a Java-Bean . I am having a COM Component for reading Weighment Reading on a Serial Port and want to use this Component in a Java-Bean . I would also like to call the methods of this COM Component inside my Java-Bean . COM Component is a dll file .
    Please guide me how to go ahead . If possible kindly provide some sample code for the same .
    With Thanks and Regards
    B V Mittal

    You need a Java to COM bridge like Jacob. Try searching this forum for more information, I've answered this question several times before.
    Dom.

  • How to use COM component in Forms 6.0 ??

    Dear All,
    We are developing Retail-Chain s/w and have a 3rd party s/w for credit card and
    they give a .dll (not a ordinary dll ), .tlb file and sample VB code to integrate the 3rd party s/w.
    Now i want to do the same task in my application using Forms 6.0.
    Here is the sample code for VB :
    ' Sample VB code for invoking Plutus from VB-based ECR application
    Private Sub Command1_Click()
    ' This is called when "Pay by card" is pressed in ECR application
    Dim strIO As String
    Dim lTrackingID As Long
    ' Add PlutusExchange v1.0 Type Library (TLB) as reference to the project
    Dim plutObj As New PlutusExchangeLib.ExchangeObj
    lTrackingID = 6 ' For testing, enter the scenario number as given in interchange spec doc
    strIO = "T123,156" ' This is input to Plutus -- base amount in paise for Rs. 1.56 and ECR bill number: T123
    ' Bill number is only used for printing on Plutus chargeslip
    plutObj.PL_DoTransactionEx lTrackingID, strIO
    MsgBox strIO, vbOKOnly, "Plutus Response String"
    ' Parse this string to extract Plutus response. Only indication of successful transaction authorization is a valid auth code returned in response
    End Sub
    Plz. reply.
    Note: I already register the .dll file and it showing in import OLE option under Forms 6.0.
    Thanks
    Debabrata
    Message was edited by:
    Debabrata Guchhait

    You need a Java to COM bridge like Jacob. Try searching this forum for more information, I've answered this question several times before.
    Dom.

  • How to use com.ms.win32 in java

    hi..
    I am tring to copy a file from a computer which is connected in lan through java.
    I want to logged into it thrugh java,where it is not shared.
    I want to use win32sockect programing or is there is any other way out.
    please provide some examples or code if possible.
    thanks

    Hi,
    I have spent many n many hours looking for the com.ms .win32 to install. I need this pacage to develop an application and it is not installed in my computer. Do you please can tell me where I can download it? Please, if you know, tell me.
    thanks.

  • How to use MVC in Swing application

    Hi,
    I'm creating an application using Java Swing. I want to use Model View Controller (MVC) architecture to design by application. I want to use MVC to seperate by business logic functionality from the control and presentation logic that uses this logic.
    I need your help to get this done successfully. Please send me a SAMPLE JAVA SWING APPLICATION where they have applied MVC, it will be helpful to me.
    Thank you,
    Regards
    kumar

    Would this be a basic example of an application that uses MVC?
    //MODEL
    public class Model {
         public void showMessage() {
              System.out.println("You clicked me!");
    //VIEW
    import javax.swing.JButton;
    import javax.swing.JPanel;
    public class View extends JPanel {
         private JButton buttonSave;
         public View() {
              super();
              initUI();
         public void initUI() {
              buttonSave = new JButton("Save");
              buttonSave.addActionListener(new Controller());
              add(buttonSave);
    //CONTROLLER
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    public class Controller implements ActionListener {
         private Model m;
         public Controller() {
              m = new Model();
         public void actionPerformed(ActionEvent e) {
              m.showMessage();
    }Is this a correct implementation of MVC? I am trying to learn it, and use it in an example.
    Thanks for your help/input.

  • Very easy:how to use com.nokia.mid.ui.DeviceControl class in netbeans 4.1

    Dear frnds
    I am very new to java. I trieds to turn off my back light using setLights function. But in my Netbeans IDE 4.1 (with mobility 1.4.2 and nokia sdk 2.0) I am not able to import the class com.nokia.mid.ui.DeviceControl. Even I don't know from where netbeans include its classes. From 2 days I checked everything and even moved some libs(zip files) to another place. but still netbeans is compiling MIDP helloworld example. I am trying to import DeviceControl class in midp helloworldplus example. But IDE's error "com.nokia.mid.ui package not found" is irritating me.
    Please HElp
    Sunny

    Dear frnds
    I am very new to java. I trieds to turn off my back light using setLights function. But in my Netbeans IDE 4.1 (with mobility 1.4.2 and nokia sdk 2.0) I am not able to import the class com.nokia.mid.ui.DeviceControl. Even I don't know from where netbeans include its classes. From 2 days I checked everything and even moved some libs(zip files) to another place. but still netbeans is compiling MIDP helloworld example. I am trying to import DeviceControl class in midp helloworldplus example. But IDE's error "com.nokia.mid.ui package not found" is irritating me.
    Please HElp
    Sunny

  • How use jdbc with swing ? i am new in this concept.

    hi
    freinds,
    i am new in java can any one give the example which explain the how to use jdbc with swing.
    thanks in advace.
    satish
    thanks.

    See here  >  http://support.apple.com/kb/HT4236
    More info in the User Guides for your Devices...

  • How to use 'Wait'/'Delay' in Swing

    Hi all,
    I want to simulate an interation between two peers,
    that exchange information among each other.
    The idea is to have a JPanel where JLabel("Text") are
    added in a fixed but consecutive intervals. Something like
    <Add label>; <Delay/wait a second>;<Add other label>; <Delay>;.....
    Is there an easy/simpler way to do this without using
    threads?
    Does Swing have a simple way to do what I want?
    Can you recomend a link for this?
    Pls note that I don't want to block my entire application.
    Thanks in advance for the help,
    Jorge

    Here is a link to the Swing tutorial on "How to Use Timers":
    http://java.sun.com/docs/books/tutorial/uiswing/misc/timer.html
    And here is a link to to thread that uses a Timer to 'continuously scroll text':
    http://forum.java.sun.com/thread.jsp?forum=57&thread=291161

  • How to upload more than 100mb in using com.oreilly.servlet package

    hi all,
    I use com.oreilly.servlet package to upload and i use the following code to upload
    MultipartRequest mr = new MultipartRequest(request,"/tmp/saved",0x10000000);My problem is i can't upload more than 25mb, uploads upto 25mb and shows page cannot displayed err in IE,
    Pls help

    In the webserver there is most likely a configuration option for the maximum size that a request may have. So search through the manual of your particular webserver on how to change that.

  • How to use annotation with GUI in swing

    hi,
    i am new to annotation. I know how to use this with classes, methods and java elements. I am developing a tool in applet to post comment on my notepad, but unable to find that how to use this with GUI of swing. I have gone through most of forums and tutorials but got no idea. Anyone could give me little idea.
    Thanks

    >
    i need to use the applet mousedown function in swing..>There is no such class as 'applet' in the JRE, Swing has an upper case 1st letter, functions in Java are generally referred to as methods, and there is no 'mousedown' method in the JRE.
    OTOH a Swing JApplet inherits the mouseDown method from Component, and it was deprecated in Java 1.1. The documentation (JavaDocs) provides instructions on what to use instead.
    >
    is there any way to use it or any other alternative is available for this?
    if can provide me a sample code.>If can provide me cash. Short of that, you might actually need to do some research/coding of your own.
    As an aside. What does any of this have to do with Java 2D?

Maybe you are looking for

  • Issue with update to 10.6.5 and WIFI connection

    I have been having an ongoing issue with my MBP over the last 6 months and even more consistently within the last several weeks. I have searched the other posts and I think that I might be making a connection here. So, please chime in if you have any

  • The same rows are in the table

    Hi, I have a web dynpro with 2 equal contexts. First context (node1) contains data (4 different entries) and the second (node2) is empty (0 entries). I want copy it to second context. I have used the following code:      IWDNode srcNode = (IWDNode)wd

  • Can a scales-based condition be defined as group condition?

    We have a scales-based condition, applying to certain items. A formula has been created, which basically loops through all items equipped with this condition, calculating the value based on the accumulated quantity of all items up to the one currentl

  • Regarding the perfomance of a join .

    Hi, I have a join with tables MARD,MVKE,MAKT,MARA . Is it a bad habit to join more than 3 tables , is it inversely affect the perfomance.   SELECT dmatnr AS material dwerks AS plant dlgort AS slocation dumlme dlabst rmeins  k~maktx AS descr          

  • I do not have the option Add App-Tabs when I want to pin a bookmark? How to solve? (FF 5.0)

    When I right-click with my mouse in the adress-bar there is no option to add as App Tab.