Inheritance and mouse handler problem

I have a super class and two subclass which is extend the super class. I add a mouse handler in one of the subclass. The problem is that the other subclass also affect by the mouse handler. How can i avoid that??
here is the code
public abstract class SketchView extends JPanel implements Observer, Constants, ActionListener, Printable, Pageable
public SketchView(Sketcher theApp, SketchModel sketcherModel)
this.sketcherModel = sketcherModel;
this.theApp = theApp;
public static class DocView extends SketchView
public DocView(Sketcher theApp, SketchModel sketcherModel)
super(theApp, sketcherModel);
MouseHandler handler = new MouseHandler();
class MouseHandler extends MouseInputAdapter
public static class ReportView extends SketchView
public ReportView(Sketcher theApp, SketchModel sketcherModel)
super(theApp, sketcherModel);

to: marsian27
thank for you reply
here is the code
public abstract class SketchView extends JPanel implements Observer, Constants, ActionListener, Printable, Pageable
public SketchView(Sketcher theApp, SketchModel sketcherModel)
this.sketcherModel = sketcherModel;
this.theApp = theApp;
public static class DocView extends SketchView
public DocView(Sketcher theApp, SketchModel sketcherModel)
super(theApp, sketcherModel);
MouseHandler handler = new MouseHandler();
addMouseListener(handler;          addMouseMotionListener(handler);
class MouseHandler extends MouseInputAdapter
public static class ReportView extends SketchView
public ReportView(Sketcher theApp, SketchModel sketcherModel)
super(theApp, sketcherModel);

Similar Messages

  • Pls help..Constructor,setter, getter and Exception Handling Problem

    halo, im new in java who learning basic thing and java.awt basic...i face some problem about constructor, setter, and getter.
    1. I created a constructor, setter and getter in a file, and create another test file which would like to get the value from the constructor file.
    The problem is: when i compile the test file, it come out error msg:cannot find symbol.As i know that is because i miss declare something but i dont know what i miss.I post my code here and help me to solve this problem...thanks
    my constructor file...i dont know whether is correct, pls tell me if i miss something...
    public class Employee{
         private int empNum;
         private String empName;
         private double empSalary;
         Employee(){
              empNum=0;
              empName="";
              empSalary=0;
         public int getEmpNum(){
              return empNum;
         public String getName(){
              return empName;
         public double getSalary(){
              return empSalary;
         public void setEmpNum(int e){
              empNum = e;
         public void setName(String n){
              empName = n;
         public void setSalary(double sal){
              empSalary = sal;
    my test file....
    public class TestEmployeeClass{
         public static void main(String args[]){
              Employee e = new Employee();
                   e.setEmpNum(100);
                   e.setName("abc");
                   e.setSalary(1000.00);
                   System.out.println(e.getEmpNum());
                   System.out.println(e.getName());
                   System.out.println(e.getSalary());
    }**the program is work if i combine this 2 files coding inside one file(something like the last part of my coding of problem 2)...but i would like to separate them....*
    2. Another problem is i am writing one simple program which is using java.awt interface....i would like to add a validation for user input (something like show error msg when user input character and negative number) inside public void actionPerformed(ActionEvent e) ...but i dont have any idea to solve this problem.here is my code and pls help me for some suggestion or coding about exception. thank a lots...
    import java.awt.*;
    import java.awt.event.*;
    public class SnailTravel extends Frame implements ActionListener, WindowListener{
       private Frame frame;
       private Label lblDistance, lblSpeed, lblSpeed2, lblTime, lblTime2, lblComment, lblComment2 ;
       private TextField tfDistance;
       private Button btnCalculate, btnClear;
       public void viewInterface(){
          frame = new Frame("Snail Travel");
          lblDistance = new Label("Distance");
          lblSpeed = new Label("Speed");
          lblSpeed2 = new Label("0.0099km/h");
          lblTime = new Label("Time");
          lblTime2 = new Label("");
          lblComment = new Label("Comment");
          lblComment2 = new Label("");
          tfDistance = new TextField(20);
          btnCalculate = new Button("Calculate");
          btnClear = new Button("Clear");
          frame.setLayout(new GridLayout(5,2));
          frame.add(lblDistance);
          frame.add(tfDistance);
          frame.add(lblSpeed);
          frame.add(lblSpeed2);
          frame.add(lblTime);
          frame.add(lblTime2);
          frame.add(lblComment);
          frame.add(lblComment2);
          frame.add(btnCalculate);
          frame.add(btnClear);
          btnCalculate.addActionListener(this);
          btnClear.addActionListener(this);
          frame.addWindowListener(this);
          frame.setSize(100,100);
          frame.setVisible(true);
          frame.pack();     
        public static void main(String [] args) {
            SnailTravel st = new SnailTravel();
            st.viewInterface();
        public void actionPerformed(ActionEvent e) {
           if (e.getSource() == btnCalculate){
              SnailData sd = new SnailData();
           double distance = Double.parseDouble(tfDistance.getText());
           sd.setDistance(distance);
                  sd.setSpeed(0.0099);
              sd.setTime(distance/sd.getSpeed());
              String answer = Double.toString(sd.getTime());
              lblTime2.setText(answer);
              lblComment2.setText("But No Exception!!!");
           else
           if(e.getSource() == btnClear){
              tfDistance.setText("");
              lblTime2.setText("");
       public void windowClosing(WindowEvent e){
                   System.exit(1);
        public void windowClosed (WindowEvent e) { };
        public void windowDeiconified (WindowEvent e) { };
        public void windowIconified (WindowEvent e) { };
        public void windowActivated (WindowEvent e) { };
        public void windowDeactivated (WindowEvent e) { };
        public void windowOpened(WindowEvent e) { };
    class SnailData{
       private double distance;
       private double speed;
       private double time;
       public SnailData(){
          distance = 0;
          speed = 0;
          time = 0;
       public double getDistance(){
          return distance;
       public double getSpeed(){
          return speed;
       public double getTime(){
          return time;
       public void setDistance(double d){
          distance = d;
       public void setSpeed(double s){
          speed = s;
       public void setTime(double t){
          time = t;
    }Pls and thanks again for helps....

    What i actually want to do is SnailTravel, but i facing some problems, which is the
    - Constructor,setter, getter, and
    - Exception Handling.
    So i create another simple contructor files which name Employee and TestEmployeeClass, to try find out the problem but i failed, it come out error msg "cannot find symbol".
    What i want to say that is if i cut below code (SnailTravel) to its own file(SnailData), SnailTravel come out error msg "cannot find symbol".So i force to put them in a same file(SnailTravel) to run properly.
    I need help to separate them. (I think i miss some syntax but i dont know what)
    And can somebody help me about Exception handling too pls.
    class SnailData{
       private double distance;
       private double speed;
       private double time;
       public SnailData(){
          distance = 0;
          speed = 0;
          time = 0;
       public double getDistance(){
          return distance;
       public double getSpeed(){
          return speed;
       public double getTime(){
          return time;
       public void setDistance(double d){
          distance = d;
       public void setSpeed(double s){
          speed = s;
       public void setTime(double t){
          time = t;

  • Bluetooth keyboard and mouse connectivity problems

    I have an Apple bluetooth keyboard and Mighty Mouse connected to my Macbook Pro 13", running ML 10.8.1.
    The keyboard and mouse will constantly disconnect and re-connect on their own every few minutes. I'll see the "connection lost" notification, and then shortly after the "connected" notification. Also, even when the keyboard is connected, it often becomes unresponsive and/or strange things happen, such as the special characters menu appearing above the cursor (which I believe there is a keyboard shortcut to invoke, but I'm not doing that; it appears on its own).
    This never happened in Lion.
    Any idea what's happening and how to fix it?

    Hello:
    Try making the devices favorites.
    Barry

  • Rsd? shut down and mouse pointer problems

    hello there
    So, last week I went to the Carrefour Laval apple store to go check out my macbook because it had shut down 3 times in a row for no reason. The genius checked everthing out, ran some tests, and said everything was a-okay, that I might have simply just xperienced a random, insignificant crash. But, yesterday my computer shut down again as I was surfing the internet. I waited about 1 minute and powered it up again. everything seemed fine. so, about 1 hour ago, im checking my emails, when i go up to the toolbar to select a different website, when my mouse pointer seems to start disappearing on and off constantly. so i close my internet window and this weird loud and quick clicking sound comes from my computer. I open up another safari window, and the sound stops. and this happens over and over again as i open and close safari windows. then 10 minutes later, i am watching a dvd when my computer shuts down again! what is going on? Im so tired of this. i would like to have some advice before i go see the genius again. the thing is i cant reproduce the problem for him, it just happens randomly....
    please help me!

    Hi there I am having the same problem. I've been experiencing it often over the past month. First thing you should do is download the latest updates and make sure the firmware is updated which you can get from apple.ca/support. If that doesn't work then take it into a certified repari center that is authorized by Mac. In Toronto I go to CPUsed, Carbon or MacLibrary for repairs. My macbook is still under warranty so I am going to take it in. I am also going to extend my warranty for three years. These intels are great but it is the first year so expect problems.
    Cheers!
    Alan

  • Web Service and result handler problem

    Hi!
    I load WSDL file and then invoke addnumbers() method without
    problems. But I don't get any results. resultHandler and
    faultHandler silent after addnumbers invoke. Where is the
    problem???
    My code:
    public function useWebService():void {
    WS = new WebService();
    WS.wsdl = "................?wsdl"
    WS.addEventListener("load", loadHandler);
    WS.addEventListener("fault",faultHandler);
    WS.useProxy = false;
    WS.loadWSDL();
    WS.addnumbers.addEventListener("result", resultHandler);
    WS.addnumbers.addEventListener("fault", faultHandler);
    public function loadHandler(event:LoadEvent):void {
    Alert.show("WSDL is loaded");
    WS.addnumbers(2,5);
    public function resultHandler(event:ResultEvent):void {
    Alert.show("in result handler");
    myTextArea.text = event.result.toString();
    public function faultHandler(event:FaultEvent):void {
    Alert.show("fault: "+ event.toString());
    My WSDL:
    <?xml version="1.0" encoding="UTF-8"?><definitions
    xmlns="
    http://schemas.xmlsoap.org/wsdl/"
    xmlns:tns="urn:TestWebservice/wsdl"
    xmlns:ns2="urn:TestWebservice/types" xmlns:xsd="
    http://www.w3.org/2001/XMLSchema"
    xmlns:soap="
    http://schemas.xmlsoap.org/wsdl/soap/"
    name="TestWebservice" targetNamespace="urn:TestWebservice/wsdl">
    <types>
    <schema xmlns="
    http://www.w3.org/2001/XMLSchema"
    xmlns:tns="urn:TestWebservice/types" xmlns:soap11-enc="
    http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:xsi="
    http://www.w3.org/2001/XMLSchema-instance"
    xmlns:wsdl="
    http://schemas.xmlsoap.org/wsdl/"
    targetNamespace="urn:TestWebservice/types">
    <complexType name="addnumbers">
    <sequence>
    <element name="int_1" type="int"/>
    <element name="int_2"
    type="int"/></sequence></complexType>
    <complexType name="addnumbersResponse">
    <sequence>
    <element name="result"
    type="int"/></sequence></complexType>
    <element name="addnumbers" type="tns:addnumbers"/>
    <element name="addnumbersResponse"
    type="tns:addnumbersResponse"/></schema></types>
    <message name="TestWebserviceSEI_addnumbers">
    <part name="parameters"
    element="ns2:addnumbers"/></message>
    <message name="TestWebserviceSEI_addnumbersResponse">
    <part name="result"
    element="ns2:addnumbersResponse"/></message>
    <portType name="TestWebserviceSEI">
    <operation name="addnumbers">
    <input message="tns:TestWebserviceSEI_addnumbers"/>
    <output
    message="tns:TestWebserviceSEI_addnumbersResponse"/></operation></portType>
    <binding name="TestWebserviceSEIBinding"
    type="tns:TestWebserviceSEI">
    <soap:binding transport="
    http://schemas.xmlsoap.org/soap/http"
    style="document"/>
    <operation name="addnumbers">
    <soap:operation soapAction=""/>
    <input>
    <soap:body use="literal"/></input>
    <output>
    <soap:body
    use="literal"/></output></operation></binding>
    <service name="TestWebservice">
    <port name="TestWebserviceSEIPort"
    binding="tns:TestWebserviceSEIBinding">
    <soap:address location="
    http://................../FlexWebserviceTest2/TestWebservice"
    xmlns:wsdl="
    http://schemas.xmlsoap.org/wsdl/"
    xmlns:soap12="
    http://schemas.xmlsoap.org/wsdl/soap12/"/></port></service></definitions>
    --------------------

    Here it is:
    <mx:WebService
    id="WS"
    wsdl="
    http://................................TestWebservice?wsdl"
    useProxy="false"
    fault="Alert.show(event.fault.faultString), 'Error'"
    showBusyCursor="true" >
    <mx:operation name="addnumbers" >
    <mx:request>
    <int_1>
    2
    </int_1>
    <int_2>
    5
    </int_2>
    </mx:request>
    </mx:operation>
    </mx:WebService>
    <mx:Panel>
    <mx:VBox >
    <mx:HBox fontSize="12">
    <mx:Button label="Go!" click="WS.addnumbers.send()"/>
    </mx:HBox>
    <mx:HDividedBox width="800">
    <mx:TextArea id="myTextArea"
    text="{WS.addnumbers.lastResult.toXMLString()}" width="390"
    height="400" fontSize="12"/>
    </mx:HDividedBox>
    </mx:VBox>
    </mx:Panel>
    ----------------

  • Trackpad and Mouse click problem!! PLEASE HELP!

    I have been having this weird problem which is having to click several times on something of it to work. Mostly I have the problem with Safari and sibelius 6.0 which I work with.It doesn't click and its frustrating.I bet its not the trackpad as I happen to have a magic mouse and it's the same with that too.I have to click several times on for example "Close" the tab button for it to work.
    PLEASE HELP!

    Kirstiee, login to another User account and test it in there.
    sahba99, you would need to drag the whole preference folder to the Desktop and reboot. If it works, you know it's a preference file in that folder. Keep dragging a bunch back at a time and reboot (or log out and back in) until you narrow it down to the corrupt file. It's kind of like troubleshooting an extension conflict back in the pre-OS X days.
    Dave M.
    MacOSG v.2.0 coming April 1, 2010! No fooling! Check it out!
     MacOSG: An Apple User Group  iTunes: MacOSG Podcast  Follow us on Twitter: MacOSG

  • [HELP] ALE inbound process and Workflow handling problem

    Hello,
    first of all, i have to apologize about my english level. I will try to explain my problem (thanks for your patience ).
    Well, I'm implementing an ALE inbound interface. My development at this point are:
    - Customer Idoc Inbound function (with correct interface).
    - Customer Basic Type
    - Customer Message Type and correct assignment to the Basic Type (Tx WE81 and WE82)
    - Customer Object Type (Subtype of IDOCAPPL)
    - On BD51 I put "1" for my function.
    - On WE57 I put this:
    Processing by --> My function and type "F"
    IDOC type --> My Basic type (without any extension)
    Message --> My message type (without any message code or msg. function)
    Object --> My object type (subtype of IDOCAPPL)
    Direction --> "2" (Inbound)
    - I created a process code for this interface (on WE42):
    It is processed with ALE service and by a function module (my function).
    On "Module(Inboud)" part I put my function and maximun number of repeats "0". On IDOC part I put my Object type with start event "INPUTERROROCURRED" and end event "INPUTFINISHED".
    On application objet I put my Object type.
    Rests of fields are blank.
    - I defined a partner (WE20) with this new message type and process code.
    - Also I created a Task (PFTC) for handle exceptions in inbound process. It has a rule for agent determinate.
    I think it is all.
    My problem is: when I process an IDOC (from WE19 for example) and it gets 51 status (error), it has to launch an event that trigger my task, is this way? Well I'm not getting any event.
    I have all Workflow customizations OK (in this systems are running some Workflows).
    In my function code, when I detect any error I put an error in the status table and put in WORKFLOW_RESULT the number '99999'.
    Why I'm not getting any event? What I'm doing wrong?
    Thanks in advance. Regards.

    Hello again,
    finally I've solved the problem. The solution for me, was a config on tx. WE42 and some missing code in the function, I only fill WORKFLOW_RESULT with '9999', but I didn't add any register to RETURN_VARIABLES table.
    Regards.

  • Supported pdf versions and mouse over problem for Xcelsius 2008 SP3

    Hi,
    Have below queries regarding Xcelsuis 2008 SP3.
    (1) Encountered last character truncation problem for the x-axis and y-axis labels when viewed using adobe reader versions higher than 9.0.0. Viewing the pdf doc using adobe reader v9.0.0 has no label truncation problem.  Preview in Xcesius is also ok.
    (a) Y-axis label - eg. No. of students. The last char [s] is truncated when exported to pdf.
    (b) X-axis label u2013 when labels are oriented vertically, they are very close to the x-axis. The last char is truncated.
    Please advise what is the supported pdf versions for Xcelsius 2008?
    Any workaround to overcome the truncation problem?  
    (2) Mouseover in charts. When the series name has < symbol, Xcelsius truncates the remaining text that's after the < symbol.
    Is this a limitation that < symbol cannot be used? Any workarond for this? Any document to reference on the limitations of Xcelsius? e.g. If series name is '>1 and <=2', mouse over desc becomes '>1 and '.
    Thanks and Regards.

    Hi ,,There are a lot of developments in SP3 version. But some loopholes which I caughtu2026
    1. The value button/spinner is no longer supporting a cell having some formula. Also the time it is taking to load data which depends on value button/spinner as a result of change in it, is comparably very high as compared to earlier version.
    2. Still there is no component like pre-load animation. So it is difficult to know weather the tool is running or not when one selects an option in some selector.
    3. One still finds it difficult to work with a large range of data/complex spread sheet in xcelsius as it crashes while exporting.
    4. Export to excel still needs Tomcat Web server,Java help. It is not simplified.

  • Apple keyboard and mouse connection problems with windows 7

    Hello everyone,
    I just completed the installation of windows 7 home premium on my bootcamp partition, and even though in the beginning my keyboard worked properly after installing some windows updates it stopped working.
    So, i tried to reinstall the specific bootcamp drivers(as described in installation guide), I also tried repair drivers but the problem continues!
    Has anyone experienced something like this ? Could you advise me something?
    Thank you!

    Hi lolarennt,
    Have just done the same as you on the same system.  It took over 12 hours of mucking around. Had lots of problems with the black screen issue, mouse not working, failing to load error message 0x80070071 ( all this from memory... saw it a few times LOL).  The bottom line was I started up in Mac version and using disk utility repaired permissions and then started a fresh and sixth install.  To cut a long story short,  this fixed my installing issues. My mouse didn't work initially, an issue with  "DPInst.exe" something to do with the 64 bit install.  I then updated the win7 programme using the update windows function and things now work fine.  Granted the mouse does take a short while to work after starting Win7(10seconds or so) but no further problems...yet!  BTW I had to update something like 79 installs totalling over 250mb and if you go down this path don't interrupt the updating process, because you'll have to restore and redo the updates ( I did thinking the system had shutdown).  I only updated win7 not any other MS programme.  Enjoy

  • T500 Loose and Squeaky Palmrest and Mouse Touchpad Problem

    I have a T500, two months now. When I got the unit there was the squeak in the base when I would pick it up or put pressure on the palmrest, mostly on the right side. The squeak is very loud and obvious.  Shortly into use, I noticed when I would type on the keypad, if I rested my palms on the palmrest, the mouse touchpad would become unusable and jump all over the screen when I tried to use it, if I remove my hands from the palmrest, the cursor (touchpad) works fine again. When I completed the customer survey, I wrote in one of the sections, (after having to go through customer service and completely reload the software due to wireless internet drop issues), that I was happy with the laptop, but that I was having an issue with the touchpad cursor freezing and jumping with pressure from palmrest, hopefully my observation (at the time, it was an observation, but since has become a major inconvenience and unacceptable issue) didn't fall on deaf ears. 

    Problem solved. So it seems that firefox was causing this problem - don't know why .
    EDIT:
    Now I've got this mouse problem:
    Sometimes when I press the scroll button the mouse stops working (then I can only use the touchpad) and even with the touchpad I can't click on the start menu, browser tabs etc.

  • Table View MULTI SELECT option and Event handling problems

    Hello All,
    I am facing problem while giving miltselect option in a table view. When i mention multiselect attribute in Select option in table view, i am unable to select all the rows which i want to select,because i have an event onRowSelection event activated so when i select a row then it will automatically go to the event and i am unable to do multiple select.
    Can you guys pl tell me is there any way thtat i can put check boxes in a table column and by that i can get values of row seelct and can perform my subsequent SQL operation.
    Also i am not able to navigate in table view through BYPAGE or BYLINE option. When I click on navigate button then page got refreshed and i lost data.
    One more query guys , can you pl tell me how can i store my internal table values from one event for the another event. I have used EXport/Import but internal table values get refreshed as page got refreshed on event switching/selection.
    Please respond.

    hye rahul.
      as i told you my second solution, will help you . the values remain in the corresponding UI elements.
    For example , you have a drop down and table view. both will trigger events. bind the data of the table at drop down event and bind the dat of the drop down at table event.
    event = cl_htmlb_manager=>get_event( runtime->server->request ).
    CASE event->id.
    when 'dd1'.                   drop down event is fired.
    bind data for drop down
    dd ?= cl_htmlb_manager=>get_data(
                                          request = runtime->server->request
                                          name    = 'dropdown'
                                          id      = dd_id'           " name of the drop down id
    along with drop down bind data for table view
        tbv ?= cl_htmlb_manager=>get_data(
                                          request = runtime->server->request
                                          name    = 'tableView'
                                          id      = 'tbv_id'           " name of the table view
    when 'tbv_id'.                   drop down event is fired.
    bind data for drop down
    dd ?= cl_htmlb_manager=>get_data(
                                          request = runtime->server->request
                                          name    = 'dropdown'
                                          id      = dd_id'           " name of the drop down id
    along with drop down bind data for table view
        tbv ?= cl_htmlb_manager=>get_data(
                                          request = runtime->server->request
                                          name    = 'tableView'
                                          id      = 'tbv_id'           " name of the table view
    This is how data should be binded in case of Stateless application. All the UI elemets must b binded again.. as the global data is refresed again.
    Hope this helps.
    Regards,
    Imran.

  • Wesnoth and mouse clicking problem

    As it says, my mouse suddenly stopped answering when I click.  Mouse works fine on any other program.

    spektre wrote:I have the exact same bug, but it worked fine before I did an update earlier today.
    I use the touchpad on my eee, no wired nor wireless mouse, don't think that has anything to do with it.
    Ah me too actually I did an upgrade and looking at pacman log I upgraded those packages:
    [2009-10-31 13:26] upgraded bash (4.0.033-1 -> 4.0.035-1)
    [2009-10-31 13:26] upgraded enca (1.11-1 -> 1.12-1)
    [2009-10-31 13:26] upgraded xulrunner (1.9.1.3-2 -> 1.9.1.4-1)
    [2009-10-31 13:26] upgraded firefox (3.5.3-1 -> 3.5.4-1)
    [2009-10-31 13:26] upgraded gd (2.0.35-2 -> 2.0.36RC1-1)
    [2009-10-31 13:26] upgraded kernel-headers (2.6.31.4-1 -> 2.6.31.4-2)
    [2009-10-31 13:26] upgraded lib32-glibc (2.10.1-4 -> 2.10.1-5)
    [2009-10-31 13:26] upgraded openssh (5.3p1-1 -> 5.3p1-2)
    [2009-10-31 13:26] Updating font cache... done.
    [2009-10-31 13:26] installed ttf-freefont (20090104-2)
    [2009-10-31 13:26] upgraded vlc (1.0.2-3 -> 1.0.2-5)
    Last edited by marxav (2009-11-02 22:37:20)

  • Custom Trigger and error handling problem

    hi ! I'm creating a custom trigger in ASP
    <br />
    <br />all it do is to check the lenght of given string.
    <br />it has a logic , true or false operation.
    <br />I just want to display an error message !
    <br />
    <br />I try BEFORE or AFTER in trigger register, but still didn't work !
    <br />
    <br />but why it didn't work ?
    <br />
    <br />any ideas ?
    <br />
    <br /><%<br />'start Trigger_Custom trigger<br />Function Trigger_Custom (ByRef tNG)<br /><br /> xemployer = len(trim(tNG.getColumnValue("employer")))<br /> xemail = len(trim(tNG.getColumnValue("email")))<br /> xjob_position = len(trim(tNG.getColumnValue("job_position")))<br /> xeducation = len(trim(tNG.getColumnValue("education")))<br /> xreference = len(trim(tNG.getColumnValue("reference")))<br /> xage_max = len(trim(tNG.getColumnValue("age_max")))<br /> xgender = len(trim(tNG.getColumnValue("gender")))<br /> <br /> totallen = (xemployer + xemail + xjob_position + xeducation + xreference + xage_max + xgender)<br /><br /> if (totallen > 158) then<br /><br /> Set update_error = new tNG_error<br /> update_error.init "Your Data contain too much characters ! (max 158)", Array(), Array()<br /> Set Trigger_Custom = update_error<br /><br />  else<br /> Set Trigger_Custom = nothing<br />  end if<br /><br />Set Trigger_Custom = nothing<br />End Function<br />'end Trigger_Custom trigger<br />%>
    <br /><%<br />' Register triggers<br />ins_Job.registerTrigger Array("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Insert1")<br />ins_Job.registerTrigger Array("BEFORE", "Trigger_Default_FormValidation", 10, formValidation)<br />ins_Job.registerTrigger Array("END", "Trigger_Default_Redirect", 99, "../includes/nxt/back.asp")<br />ins_Job.registerTrigger Array("BEFORE", "Trigger_Custom", 50)<br />%>
    <br />
    <br /><%<br />' Register triggers<br />upd_Job.registerTrigger Array("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Update1")<br />upd_Job.registerTrigger Array("BEFORE", "Trigger_Default_FormValidation", 10, formValidation)<br />upd_Job.registerTrigger Array("END", "Trigger_Default_Redirect", 99, "../includes/nxt/back.asp")<br />upd_Job.registerTrigger Array("BEFORE", "Trigger_Custom", 50)<br />%>

    hello there, thanks for replying
    <br />i know what you mean, i see that the first time i submitted in to this forum.
    <br />
    <br />actually IT IS SEPARATED !
    <br />i just copy paste my code into this TextBOX, and that's whats happened
    <br />
    <br />ok i copy paste my code again, but this time i use ENTER to seperated those lines.
    <br />
    <br /><% 'start Trigger_Custom trigger <br /><br />Function Trigger_Custom (ByRef tNG) <br /><br />xemployer = len(trim(tNG.getColumnValue("employer"))) <br />xemail = len(trim(tNG.getColumnValue("email"))) <br />xjob_position = len(trim(tNG.getColumnValue("job_position"))) <br />xeducation = len(trim(tNG.getColumnValue("education"))) <br />xreference = len(trim(tNG.getColumnValue("reference"))) <br />xage_max = len(trim(tNG.getColumnValue("age_max"))) <br />xgender = len(trim(tNG.getColumnValue("gender"))) <br /><br />totallen = (xemployer + xemail + xjob_position + xeducation + xreference + xage_max + xgender) <br /><br />if (totallen > 158) then <br /><br />Set update_error = new tNG_error <br />update_error.init "Your Data contain too much characters ! (max 158)", Array(), Array() <br />Set Trigger_Custom = update_error <br /><br />else <br />Set Trigger_Custom = nothing <br />end if <br /><br />Set Trigger_Custom = nothing <br />End Function <br />'end Trigger_Custom trigger <br />%>
    <br />
    <br /><% ' Register triggers <br /><br />ins_Job.registerTrigger Array("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Insert1") ins_Job.registerTrigger Array("BEFORE", "Trigger_Default_FormValidation", 10, formValidation) ins_Job.registerTrigger Array("END", "Trigger_Default_Redirect", 99, "../includes/nxt/back.asp") ins_Job.registerTrigger Array("BEFORE", "Trigger_Custom", 50) <br /><br />%>
    <br />
    <br /><% ' Register triggers <br /><br />upd_Job.registerTrigger Array("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Update1") upd_Job.registerTrigger Array("BEFORE", "Trigger_Default_FormValidation", 10, formValidation) upd_Job.registerTrigger Array("END", "Trigger_Default_Redirect", 99, "../includes/nxt/back.asp") upd_Job.registerTrigger Array("BEFORE", "Trigger_Custom", 50) <br /><br />%>
    <br />
    <br />there it is My Actual Code looks like.
    <br />
    <br />again, thanks for replying

  • Problem with inheritance and outputting values in toString.

    Hey guys, i'm having a major problem with inheritances.
    What i'm trying to do with my program is to create objects in my demo class. Values are passed to several other objects that each do their own calculations of grades and results and then outputs the result in my toString. I followed step by step the instructions in my book on how to setup the inheritance and such. I can only output everything that was created in my superclass, any other thing that was created in an object that belongs to a subclass does not display in the output at all.
    Even if I change or create new instance variables, I can't figure out for the life of myself how to output the other values.
    Because there's so much code to be splitting on the forums, I zipped my whole project in a RAR. I'll link it here
    http://www.4shared.com/file/ZleBitzP/Assign7.html
    The file to run the program is CourseGradesDemo class, everything else is either a subclass or superclass to some part of the program. After you run CourseGradesDemo, you will see the output, and understand what displays and what stays at 0.0 value. If anyone can help me out with this it would be greatly appreciated
    Thanks in advance.

    Basshunter36 wrote:
    Hey guys, i'm having a major problem with inheritances.
    What i'm trying to do with my program is to create objects in my demo class. Values are passed to several other objects that each do their own calculations of grades and results and then outputs the result in my toString. I followed step by step the instructions in my book on how to setup the inheritance and such. I can only output everything that was created in my superclass, any other thing that was created in an object that belongs to a subclass does not display in the output at all.
    Even if I change or create new instance variables, I can't figure out for the life of myself how to output the other values.No idea what you're talking about. Provide an [url http://sscce.org]SSCCE.
    Because there's so much code to be splitting on the forums, I zipped my whole project in a RAR. I'll link it here
    http://www.4shared.com/file/ZleBitzP/Assign7.html
    Not gonna happen. Provide an [url http://sscce.org]SSCCE. And don't say you can't. You definitely can. You may have to spend an hour building a new program from scratch and getting it to reproduce the problem, but if you can't or won't do that, you'll find few people here willing to bother with it.

  • 870A Fuzion Power has problem with keyboard and mouse movement only in games.

    Hey guys,
    recently built a new system and chose to go with the 870A Fuzion Power mainboard, everything has gone very smoothly execpt for one problem, only when I play games like Crysis 2 ect the mouse seems to jolt around now and again and the keyboard decides to stop responding if I hold down the movement keys, and this is only in game not surfing the web for example. Now, I am using a wireless mouse and keyboard but I plugged in a PS/2 keyboard and the exact same thing happened. I've installed all of the drivers that came with this board and the drivers for the mouse and keyboard. Any of you guys ever had this sort of problem or know how to fix this?
    Thanks.

    I bought a new Macbook pro in june 2010, I didn't have any keyboard or mouse issues prior to upgrading to 10.6.4 supposedly this update was made to fix some issues with keyboard and mouse becoming unresponsive. For me the opposite happened. after the upgrade, my keyboard and mouse (trackpad) becomes sometimes partially unresponsive or totally unresponsive. the only way to solve the problem is by completely turning of the computer and turning back on.. granted it doesn't happen very often.. generally once every about 2-3 weeks but it is still annoying though..
    I didn't have a chance to use the computer too much on the previous version (10.6.3) so I don't know if it is software related or hardware related.. any thoughts?
    Message was edited by: msoued

Maybe you are looking for

  • Multiple 1&1 email accounts, how do I send from different accounts?

    I have an iPhone 3G with 2.x software on it. I have 1&1 hosting email accounts with different username/pwds, but they all point to smtp.1and1.com to send. I have no problem receiving emails (POP3 or IMAP), but when sending email (SMTP), I have only o

  • Submit a transaction O4B1 via job and the result as an attachment Excel

    Hi, I'm executing a program in background via job to get back the result of a report as an attachment XLS on mail. the result of my program give me just title of Excel columns , but when i execute it manually , the result is perfect. my code is : ***

  • Webdynpro ABAP, table TreeByNestingTableColumn

    Hi I have a table defined as a TreeByNestingTableColumn. I need to change the icon displayed in the table. I used WDDOMODIFYVIEW method to get the data with method get_static_attributes and then set.. But it is possible only to change the first row..

  • SRGB vs Adobe RGB

    What the heck is the difference between sRGB vs Adobe RGB? Do I have to reset this in my camera too? I have a Canon 5D  Mark 11    Thanks, Penni

  • Nokia 3110 - vibrating alert

    Bought 2 (company) 3110's today - another company phone is already 3110. Neither of the new ones vibrate when ringing although I have set both to do so both in Profiles and Settings. The older 3110 does. (Older only by about 6mths) This is crucial fo