What am i doing wrong with this class please help

What am i doing wrong with this class? I'm trying to create a JFrame with a JTextArea and a ScrollPane so that text can be inserted into the text area. however evertime i run the program i cannot see the textarea but only the scrollpane. please help.
import java.io.*;
import java.util.*;
import java.awt.event.*;
import java.awt.*;
import javax.swing.*;
import javax.swing.event.*;
public class Instructions extends JFrame{
public JTextArea textArea;
private String s;
private JScrollPane scrollPane;
public Instructions(){
super();
textArea = new JTextArea();
s = "Select a station and then\nadd\n";
textArea.append(s);
textArea.setEditable(true);
scrollPane = new JScrollPane(textArea, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
this.getContentPane().add(textArea);
this.getContentPane().add(scrollPane);
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.setTitle("Instructions");
this.setSize(400,400);
this.setVisible(true);
}//end constructor
public static void main(String args[]){
new Instructions();
}//end class

I'm just winging this so it might be wrong:
import java.io.*;
import java.util.*;
import java.awt.event.*;
import java.awt.*;
import javax.swing.*;
import javax.swing.event.*;
public class Instructions extends JFrame{
public JTextArea textArea;
private String s;
private JScrollPane scrollPane;
public Instructions(){
super();
textArea = new JTextArea();
s = "Select a station and then\nadd\n";
textArea.append(s);
textArea.setEditable(true);
scrollPane = new JScrollPane(textArea, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
// Here you already have textArea in scrollPane so no need to put it in
// content pane, just put scrollPane in ContentPane.
// think of it as containers within containers
// when you try to put them both in at ContentPane level it will use
// it's layout manager to put them in there side by side or something
// so just leave this out this.getContentPane().add(textArea);
this.getContentPane().add(scrollPane);
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.setTitle("Instructions");
this.setSize(400,400);
this.setVisible(true);
}//end constructor
public static void main(String args[]){
new Instructions();
}//end class

Similar Messages

  • What am I doing wrong with this method?

    Ok I tried this for two hours and for some reason my variables from one method wont work with the other method what am I doing wrong?
    public class Testing
    private static void storage(String[] storage){
    String retval= "";
    for(int i=0;i!=storage.length;i++){
    String getstorage= storage[i]+retval;
    return storage[i]+retval;
    }//for
    }//storage
    public static int[] find(String[] str){
    for(int i=0;i!=str.length;i++){
    if(str.equals (storage[i].substring(0,2))){
    return indexOf(str[i], str[i].length);
    else If(str[i].substring(indexOf(str[i]),str[i].length)>storage.substring(indexOf(storage[i]),storage[i].length)){
    return {0,0};
    };//elseif
    }//if
    }//for
    }//find
    }//StrStore

    Thanks got that part fixed and I even kinda learned how to make it so that I can establish the variable somewhere else lemme show you:
    public class StrStore
       private static String[] storage(String[] storage){
                for (int i=0; i!=storage.length; i++);
                  String retval="";
                  return storage[i] +retval;
               }//for
             }//storage
       public static String[] getStorageArray()
         String[] temp= new String[storage.length];
         for (int i=0; i!=storage.length; i++){
                  temp= storage[i];
    return temp;
    }//for
    }//getStorageArray
    public static int[] find(String[] str){
    for(int i=0;i!=str.length;i++){
    if(str[i].equals (storage[i].substring(0,2))){
    return {indexOf(str[i], str[i].length};
    else if(str[i].substring(indexOf(str[i]),str[i].length>storage.substring(indexOf(storage[i]),storage[i].length)){
    return {0,0};
    }//elseif
    }//if
    }//for
    }//find
    public static int[] encode(String str){
    for(int i=0;i!=str.length;i++){
    if(str[i].length>storage[i].length);
    return str[i]+storage[i];
    else{
    find(storage[i]);
    }//elseif
    }//if
    }//for
    }//encode
    public static Int[] decode(int[] code){
    for(int i=0;i!=str.length;i++){
    return find(storage[i]);
    }//for
    }//decode
    public static void main(String[] args)
    int[][] codes = new int[args.length][];
    for(int i=0;i!=args.length;i++){
    codes[i]=encode(args[i]);
    }//for
    storage(getstorage);
    System.out.println("storage = "+ getStorage);
    for(int i=0;i!=args.length;i++){
    System.out.println(decode(codes[i]));
    }//for
    }//main()
    }//StrStore
    however Im still coming up with 5 errors now one is stating that in this section:
    public static String[] getStorageArray()
         String[] temp= new String[storage.length];
         for (int i=0; i!=storage.length; i++){
                  temp= storage[i];
    return temp;
    }//for
    }//getStorageArray
    that a class is expected but I thought I had the class defined? I get that also here:
       public static int encode(String str){
               for(int i=0;i!=str.length;i++){
                 if(str.length>storage[i].length);
    return str[i]+storage[i];
    else{
    find(storage[i]);
    }//elseif
    }//if
    }//for
    }//encode
    but instead of the beginning I get it at the very last line of that snippet
    then I get that these two variables are incompatible
    private static String[] storage(String[] storage){
                for (int i=0; i!=storage.length; i++);
                  String retval="";
                  return storage[i] +retval;
               }//for
             }//storage

  • What am I doing wrong with this filter (counter/frequency issue), probably another newb question.

    I extracted the part of my VI that applies here.  I have a 6602 DAQ board reading a counter for frequency, using a Cherry Corp proximity sensor.  Getting a lot of noise and errant ridiculously high readings.  Speed of shaft which it's measuring is currently 2400rpm with one pulse per revolution so 40hz. 
    Trying to use the express filter VI to clean up the signal and ignore anything over, say, 45hz and under 35hz.  No matter what setting I choose I continually get the  20020 error, Analysis:  The cut-off frequency, fc, must meet:  0 <= fc <= fs/2.  I know this relates to sample period somehow, but for the life of me I can't understand what I'm doing wrong. 
    I used this VI without filtering on bench tests with a hand-drill and got perfect output every time.  Now it's on the machine and being erratic.  Any help here will ease my stress level significantly, thanks.
    VI attached
    Still confused after 8 years.
    Attachments:
    RPM.vi ‏92 KB

    Hello Ralph,
    I'm not sure about mounting your sensor to your rig, but I can provide a couple ideas about the filtering. Depending on the type of noise, the digital filters on the PCI-6602 could help eliminate the behavior you are seeing. If the noise manifests as a "glitches" or a bouncing signal, you could use another counter with a minimum period to help eliminate the noise. This concept is discussed in greater detail in this KnowledgeBase. I noticed that you are using NI-DAQmx; the practical application of the digital filters on the PCI-6602 in NI-DAQmx is discussed in this KnowledgeBase. A more detailed description of the behavior of these filters is provided in the NI-DAQmx Help (Start>>All Programs>>National Instruments>>NI-DAQ) in the book entitled "Digital Filtering Considerations for TIO-Based Devices".
    I also wanted to comment on your original post and explain why you were receiving error -20020. For convenience, I have copied the text of the error code below.
    Error -20020 occurred at an unidentified location
    Possible reason(s):
    Analysis:  The cut-off frequency, fc, must meet:  0 <= fc <= fs/2.
    I think you may have misunderstood exactly what the Filter express VI does. The Filter express VI takes a series of values in a waveform and performs filtering on those signals. So, it will look at a waveform made up of X and Y values and apply the defined filter to this waveform. Specifically in your application, the cut-off frequency (fc) is the Upper Cut-Off level that you specified in the Filter express VI; any frequency components of the waveform outside of the range you have defined will be filtered. The fs is the sample rate based on the data that you wire to the Signal input of the Filter express VI. In your VI, this data is coming from the DAQ Assistant. So, fs will be the sample rate of the DAQ Assistant and is associated with the rate at which points are acquired. The sample rate does NOT relate to the bandwidth of the signal, except that the Nyquist theorem tells us that the sample rate must be at least twice the signal bandwidth in order to determine periodicity of the signal. So, in this case, the sample rate of the DAQ Assistant would need to be at least double the high cut-off frequency.
    However, you are performing a frequency measurement using a counter. I think this is where the confusion comes in. For the frequency measurement using a counter, the DAQ Assistant returns a decimal value which represents the rate of the pulse train being measured by the counter. It does not return the actual waveform that is being read by the counter. It is this waveform that would be band-pass filtered to eliminate frequency content outside of the filter's bandwidth. Instead of the Filter express VI, I would recommend that you simply discard values that are outside the range you specify. I have modified the code you posted earlier to perform this operation. The image below shows the changes that I made; rather than using the Filter express VI, I simply compare the frequency to the "Low Threshold" and "High Threshold". I use a Case structure to display the value on if it is within the limits. Otherwise, I display a "NaN" value. I have also attached the modified VI to this post.
    Message Edited by Matt A on 09-04-2007 07:58 PM
    Matt Anderson
    Hardware Services Marketing Manager
    National Instruments
    Attachments:
    RPM (Modified).JPG ‏17 KB
    RPM (modified).vi ‏72 KB

  • What am I doing wrong in actions? Please help.

    Hi,
    This is first time I'm using Flash Professional CC, so I'm complete newbie and I do not wish to continue to learn that particular program in the future, so please do not point me to the learning program videos.
    I'm trying to make simple presentation containing only 4 frames. For that purpose I followed that tutorial:
    How to Create an Adobe Flash Slide Show
    I'm positive that I made everything correctly to the point where Actions are made.
    I'm not a programmer and I have no idea about coding.
    When I put in actions:Frame 1 this:
    "stop();
    button1.addEventListener(MouseEvent.CLICK,showpic1);
    button2.addEventListener(MouseEvent.CLICK,showpic2);
    button3.addEventListener(MouseEvent.CLICK,showpic3);
    button4.addEventListener(MouseEvent.CLICK,showpic4);"
    The test gives me changing incredibly fast frames without end.
    After taking next step from that tutorial above:
    "stop();
    button1.addEventListener(MouseEvent.CLICK,showpic1);
    button2.addEventListener(MouseEvent.CLICK,showpic2);
    button3.addEventListener(MouseEvent.CLICK,showpic3);
    button4.addEventListener(MouseEvent.CLICK,showpic4);
    function showpic1(Event:MouseEvent):void{
    gotoAndStop("pic1");
    function showpic2(Event:MouseEvent):void{
    gotoAndStop("pic2");
    function showpic3(Event:MouseEvent):void{
    gotoAndStop("pic3");
    function showpic4(Event:MouseEvent):void{
    gotoAndStop("pic4");
    I'm getting only first frame and nothing more happens.
    Could you please help me straighten up my code?
    Thanks,
    Ania

    the double quotes before stop() and the double quotes at the end after gotoAndStop("pic4");} should be removed.
    test.

  • What am I doing wrong with this simple array?

    I have an array that I need to add single characters to slowly.
    So the array is wordToCheck and I have some "drop places" to check and see if a letter has been "dropped off." Each drop point is assigned an index and I just want to add the letter to the proper index of the array so that I can push it into a string.
    This is my code:
    wordToCheck[currentBlank.register] = currentLetter.letter.toLowerCase();
    So you can see that if "A" was dropped at the blank spot with the register 2 it would return "- - A".
    The problem is that it's deleting it every time I add a letter. So if I put "A" in register 2 and then "M" in register 3 it returns "- - - M".
    How do I get it to not override itself each time?

    I tried making it an object but I guess I'm confused how that is supposed to work.
    When I tried to parse my array to a string it had a bunch of ","'s in it. So if I got it to be myArray["a" "b" "c"] it returns the string "a,b,c" instead of "abc."
    Why is that? Would using an object fix it? How is using an object different than using an array?
    I've read dozens of forums on this and I just can't figure out the difference except that in an object you are allowed to use a letter as the reference instead of a number.

  • What i'm doing wrong in this small pl/sql statement ?

    Hi All,
    I'm happy to write in this forum for the first time. Can anyone help me to show What i'm doing wrong in this small statement :
    create or replace procedure augmente_salaire(p1 IN employees.employee_id%type, p2 IN number(3))
    is
    update employees set salary = salary + salary*p2/100 where employee_id=p1;
    end  augmente_salaire;
    begin
    augmente_salaire(1001,20);
    end;
    I'm using pl/sql developer.
    Any help would be much appreciated.
    Best Regards.

    Welcome to the forum!!
    Point 1:
    > create or replace procedure augmente_salaire(p1 IN employees.employee_id%type, p2 IN number(3))
    The code in red is the one causing trouble. You cant specify LENGTH for the data type in parameter of a Procedure/Function. Oracle will define it based on the passing value.
    So your code must be just.
    create or replace procedure augmente_salaire(p1 IN employees.employee_id%type, p2 IN number)
    Point 2:
    BEGIN is missing after the IS key word.
    Following is a corrected code.
    create or replace procedure augmente_salaire
        p1 IN employees.employee_id%type
      , p2 IN number
    is
    begin
       update employees
          set salary = salary + salary*p2/100
        where employee_id=p1;
    end  augmente_salaire;
    show err

  • HT201209 I'm new to this an yesterday I bought 65$ worth of iTunes music using a iTunes gift card. Then I got these emails saying I am being billed again????? What do I do???? I'm very frustrated with this. Please help me

    yesterday I bought 65$ worth of iTunes music using a iTunes gift card. Then I got these emails saying I am being billed again????? What do I do???? I'm very frustrated with this. Please help me

    What e-mail are you talking about?
    What exactly did it say?
    Are you sure that the e-mail was not your receipt?

  • Hello I am using Ipad 4 and its charger is not working while I was using it few days before and it was working properly now it says that the cable does not support this Ipad Please Help me out.

    Hello I am using Ipad 4 and its charger is not working while I was using it few days before and it was working properly now it says that the cable does not support this Ipad Please Help me out.

    Try a reset:
    - Hold the home button and sleep/wake button down at the same time. When the Apple logo appears release both buttons then try and charge again.
    If issue persists try:
    - Another known working cable
    - Check the charging port for any damage or debris
    - You could also use a dry soft bristle toothbrush and gently brush it on the port to clean it of any debris that could be in there

  • What am I doing wrong on this interactive SVG? Please help.

    I watched the tutorial on youtube on creating the svg and making an interactive color changing character. I have tried to implement it but I’m not doing something right and am a little lost on the code.  I was wondering if anyone could tell me what I am doing wrong.
    The SVG File
    Has 18 groups that can color change each in a different layer but not grouped within the layers
    The layer names are as follows
    Owl_Wing_Spots
    Owl_Wings
    Owl_Belly
    Owl_Body
    Trunk
    Leaf_Outline
    Leaf_1
    Leaf_2
    Leaf_3
    E2_Ear_Spots
    E2_Ear_Tail
    E2_Body
    E1_Ear_Spots
    E1_Ear_Tail
             15.  E1_Body
         16. Wall_Color
         17. Bird_Body
         18.   Bird_Butterfly_Wing
    I put the notify(this, "select"); on each layer
    I referenced http://cdn.edgecommons.org/an/1.0.0/js/min/EdgeCommons.js for the javascript file in AI and I also created a js file that is the same as the one in the video named svg.js (but neither made a difference)
    The Edge Animate File
    I added the SVG file named “elephant_tree2” and then added the following code to the CompositionReady Area
    // Load Edge Commons
    yepnope({
    load: "http://cdn.edgecommons.org/an/1.0.0/js/min/EdgeCommons.js",
    complete: function() {
                            // Enable SVG access
                            EC.accessSVG(sym.$("elephant_tree2")).done(
                                            function(svgDocument){
                                                            // add event listener
                                                            svgDocument.addEventListener("select", function(event) {
                                                                            // Remember selected part
                                                                            sym.setVariable("selectedPart", event.target);
                                                                            // show the id of the selected part in the textfield
                                                                            sym.$("selectedPartTxt").html( event.target.id );
    // insert code to be run when the composition is fully loaded here
    I added a selectedPartTxt text box and named it that too.
    None of the groups on the SVG are recognized and the selectedPartTxt does not change.  I suspect it may have something to do with the fact there are groups instead of one part but I don’t know how to fix it.
    I was also wondering if someone could tell me how to use an SVG for the color chart too instead of recreating it in Edge Animate.  I haven't tried to to the color part of the SVG because I still can't get the mouse click to work when on a group that changes.
    Any help would be appreciated.
    Thanks!
    Cherie

    Hi, I had a similar problem and this fixed it.
    You know how in the illustrator file, you need to reference a file called svg.js from the edge commons library? Download that file, or write the code in a text editor and save it in a .js file and then make sure that the file is in the same folder as your images called by the adobe edge file.
    I hope this works!
    Liz

  • What am I doing wrong with Export  w/ Action?

    OK, I am starting to love "stacking and virtual copys" of a combination of DNG,PSD,JPG ... all in the same folder.
    So, now I want to "stack" everthing that is generated from the original DNG file ... virtual copys, PSD & JPG. Much cleaner (thank's adobe!) and the Ctrl+E/stacking works like a charm, even with CS3 beta.
    Now, that I am loving "stacks" and having everything in a Day's shoot Folder (with NO sub-folders)... this is my problem:
    In CS3 I created a Action (converted to Droplet and put in LR actions folder) ... it's my usual Portrait plug-in and USM action ... the GOAL is to select all the DNG's in a Folder of the days shoot ... and Export it to PSD,16bit and RUN the action.
    In theory I should end up with all the PSD's in the same folder ... and be able see and "stack" these to the matching DNG's.
    * But, nooo ... when I run the export ... the PSD are in the same folder ... but, I cannot import it back into the Libary??? strange.
    LR tells me it's there ... but shows me the DNG (not the PSD)
    * What am I doing wrong?
    fyi: if you want to know what my goal is ... well, all I want to do is run the action ... and end up with a "stacked"
    1) DNG original
    2) PSD after the action is done (I have got to this point ... but it is not stacked and is not viewed in the LRv1 Library. (nor can it be imported) ... guess this is my biggest problem, right now.
    3) JPG that is converted to my Lab ICC profile .. generated from the PSD. (what I was going to do here is just select all the PSD files and Export and run another action)
    4) WEB JPG from my PSD.
    * note: after I generate a PSD ... I really want to get all my jpg's from the PSD files ... at that point.
    Since Adobe LR has got me HOOKED on using "Stacks" and virtual copys in LR ... I would like to run ALL my actions from LRv1 and after the Export+action is done, have the results back in the same folder "STACKED" to it's DNG file.
    * Now, THAT'S what I call POWERFUL! ... running an export+action and having the "result" back in the same folder "stacked" to it's DNG!!!
    So, there's a great function that will make LR the "killer app" (for me) ... have LR "image process" from the DNG or PSD and have it come back to the same folder "STACKED"!
    (so now ... everyone that wants that power will need to buy both CS3 & LR ... sounds like it's good for me and good for Adobe)
    Did I make this post too long? lol HG

    Thanks H-G.
    It won't stack automatically but perhaps autostack by capture time might work for most of them. You may need to sort out a few but most should work given the right timing (like 1 sec or something maybe)
    I try with the site, but the problem is that Lightroom for most people is a completely new way of doing things and people don't want to get their heads around this. I've been in since I saw a post on B1 in the Rob Galbraith news page the day after it was released. So I've grown with it.
    It's not feature complete, but then neither is V10 of Photoshop! It's still really good for a v1 tool though. Like someone else said, it's not a religious icon, but if it works for us great. I'm happy with it. I still use both PS CS and PSE as well, just not as much.
    Keep looking at lightroom-news.com too. We've a bunch of stuff planned.

  • What am I doing wrong with my form - XML schema producing inconsistent results

    I have an interactive dynamic form built in LCD 8.2.  The idea is that users fill in the form to indicate any fields that they want to update on our directory.
    We do not have the necessary plumbing to get it to feed directly to the directory so the workaround is that the form generates an XML file.  These files are then imported into Excel and then that file is submitted as a bulk update request.
    I have a schema that I have embedded in the form using the Data Connection
    <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:element name="MySite">
      <xsd:complexType>
       <xsd:sequence>
        <xsd:element minOccurs="0" maxOccurs="unbounded" name="general">
         <xsd:complexType>
          <xsd:all>
           <xsd:element minOccurs="0" maxOccurs="1" name="FullName" />
           <xsd:element minOccurs="0" maxOccurs="1" name="StaffNumber" />
           <xsd:element minOccurs="0" maxOccurs="1" name="JobTitle" />
           <xsd:element minOccurs="0" maxOccurs="1" name="Responsibilities" />
           <xsd:element minOccurs="0" maxOccurs="1" name="LineManager" />
           <xsd:element minOccurs="0" maxOccurs="1" name="LMStaffNumber" />
           <xsd:element minOccurs="0" maxOccurs="1" name="AltContact" />
           <xsd:element minOccurs="0" maxOccurs="1" name="AltSE" />
           <xsd:element minOccurs="0" maxOccurs="1" name="Unit" />
           <xsd:element minOccurs="0" maxOccurs="1" name="TelExt" />
           <xsd:element minOccurs="0" maxOccurs="1" name="WorkMobile" />
           <xsd:element minOccurs="0" maxOccurs="1" name="OutHoursTel" />
          </xsd:all>
         </xsd:complexType> 
        </xsd:element>
       </xsd:sequence>
      </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    I use this same schema in Excel and then generate a test file from my form and then import it.  All goes well.
    I then try it again or get someone else to try it and it fails.  What am I doing wrong?  I thought that embedding the schema into the form would mean that it would become part of the form but I keep getting an error message saying it cannot find an XML map that corresponds to the data. 

    Thanks for your reply.
    The form is fine and no error messages are evident until I attempt to import an xml file into Excel.  The schema is very, very basic and no validation has been applied.
    I've looked at the form today to investigate what the problem may be and have discovered three issues.
    I tried with two different versions of the form to try and work out why one version worked and the other did not.  The only obvious difference between them was that one had been Reader Enabled and it was this form that did not work.
    The non-enabled form produced this output:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <MySite>
    - <general>
    <FullName>th</FullName>
    </general>
    </MySite>
    The enabled form produced something different.
    <?xml version="1.0" encoding="UTF-8" ?>
    - <xfa:data xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">
    - <MySite>
    - <general>
    <FullName>gt</FullName>
    </general>
    </MySite>
    <MySite />
    </xfa:data>
    Files with this extra line of code would fail to be imported into the Excel file.
    Another issue was that the Reader Enabled form had a completely different file path for the embedded schema.  In the non-enabled version the path pointed to the correct location on my personal drive.  The Reader Enabled version could not find the schema as the path was incorrect and was pointing to a folder on the temporary drive.  At no point had I manually amended this path to point to there!
    The non-enabled form allowed me to import an xml file whereas the enabled form gave me an error message stating that:
    "The document restricts some Acrobat features to allow for extended features in Adobe Reader.  To create a copy of the document that is not restricted (and has no extended features in Adobe Reader), click Save a Copy."
    Are these expected behaviours or is there something wrong?

  • What am I doing wrong with emails and reviewing attachments?

    I want to like my iPhone, I do. However, it seems I must be doing something wrong becuase in order for view an attachment from and email and make comments about it back in a reply to an email seems exceptionally painful. Right now I have to open the email, open the attachment, read what I want to read in the attachment, then "close" the attachment, then go back to a reply for the email and type my response, then I have to re-open the attachment, find where I was in reviewing it then go back to the email and keep typing again. This just goes on an on. What am I doing wrong? I would expect that the attachment would stay open and I could "flip" back and forth between a reply email and the attachment. Can someone make my life easier? I can no longer be productive at work unless I have my computer with me.
    (I have a separate post for the fact that I can't save a draft more than one time)

    Some links I've saved... a few may help you get started
    HTML and/or DW Tutorials
    http://www.htmlcodetutorial.com/
    http://www.htmldog.com/guides/
    http://www.adobe.com/cfusion/designcenter/search.cfm?product=Dreamweaver&go=Go
    http://livedocs.adobe.com/
    http://www.projectseven.com/tutorials/index.htm
    http://www.w3schools.com/
    http://alistapart.com/topics/code
    http://lynda.com/ Hours of videos.
    (must pay)
    http://www.macromedia.com/devnet/mx/dreamweaver/css.html
    http://www.macromedia.com/devnet/dreamweaver/articles/tableless_layout_dw8.html
    http://www.macromedia.com/devnet/dreamweaver/articles/css_concepts.html
    http://www.adobe.com/devnet/dreamweaver/?navID=gettingstarted
    http://www.adobe.com/devnet/dreamweaver/articles/understanding_css.html
    http://www.adobe.com/devnet/dreamweaver/articles/css_page_layout_basics.html
    Customizing the layouts that come with CS3 (VIDEO)
    http://www.adobe.com/designcenter/video_workshop/?id=vid0155
    Community MX
    http://www.communitymx.com/abstract.cfm?cid=3D074
    Installing PHP and MySQL on Windows XP
    http://www.webassist.com/professional/products/solutionrecipes.asp
    PDF Adobe DW Users Guide - save for easy searching (23MB)
    http://livedocs.adobe.com/en_US/Dreamweaver/9.0/dreamweaver_cs3_help.pdf

  • What am I doing wrong with my recorded actions?

    I'm trying to set up Photoshop to create a bunch of thumbnail images. I've got actions to select various preset sizes with the marquee tool, and then one action that copies, creates a new document using the clipboard preset, pastes, and then resizes the image to 150 x 150 px.
    The problem is that the resizing seems to have a mind of its own. Sometimes in the new image I get the selected area with a big blank space surrounding it, and sometimes most of it gets pasted outside the canvas so only a small part is visible. What am I doing wrong?

    No, sorry, it's CS1.

  • What am I doing wrong with the _ visibility property?

    I have an object that is a movie clip, and I want this object to disappear when you click on him, but also the button that makes the object to appear to make also the object to disappear.Either way, when you click on the object or on the button the second time, the same object to disappear.  I managed to do that, but the first time when you click the button in order to make the object appear it dosen't work, you have to click twice.What am I doing wrong? The object it's a movie clip named frez1, and the button is named fr1. I put this codes in the main timeline:   for the movie clip :           frez1.onPress = function(){                                      _root.frez1.gotoAndStop(2);                                      _root.frez1.gotoAndStop(1);                                           }  for the button:          frez1._visible = false;                                     fr1.onRelease = function(){                                  frez1._visible = !frez1._visible;                              }   The button and the object are on different layers.  Thank you for your help.

    Oh sorry, only now I have seen how it has been displayed. The codes are like this:  for the movie clip:  frez1.onPress = function(){                                     
                                                                                                                                                                _root.frez1.gotoAndStop(2);
                                                                                                                                                                _root.frez1.gotoAndStop(1);   
                                                                                                                                      for the button:   frez1._visible = false;                                   
                                                                                                                                                             fr1.onRelease = function(){                                 
                                                                                                                                                             frez1._visible = !frez1._visible;                             
    Yes the movie clip switching between frames and 1-2 it is turning  him invisible.
    So in order to make him go between this two frames I have to put  the visibity property and not the root ?
    Thank you

  • What the he** is wrong with this code?

    Hi,
    I have 2 tables. Primary table "resease" and secondary table (containing the foreign key) "kunden".
    Selecting a release (dropdownlist), will show you the corresponding entry of kunden (datatable).
    I added buttons to the datatable for deleting certain rows. This all works fine so far.
    But as you are going to delte the last entry of table kunden, I want to delte the corresponding entry of the table release as well. And by trying to do so, I get an exception telling in line "dataTable1Model.commit();"
    "java.sql.SQLException: Lock time out; try later."
    The exception disappears by deleting the inner try-catch block.
    So what is wrong with this code?
    Thank,
    Mark.
    PS: If you need the database-schema or anything else, let me know....
    public String delete_action() {
            try {
             //returns -1, so I can't use it     
                int rowCount = dataTable1Model.getRowCount();          
             //get affected row     
                com.sun.jsfcl.data.DataCache.Row row =
                dataTable1Model.getDataCache().get(dataTable1Model.getRowIndex());
                row.setDeleted(true);
                try {
                    //New RowSet for getting FK of affected line
                    JdbcRowSetXImpl pkRowSet = new JdbcRowSetXImpl();
                    pkRowSet.setDataSourceName("java:comp/env/jdbc/AVT");
                    pkRowSet.setCommand("SELECT fk_idrelease FROM kunden " +
                    "where fk_idrelease = ?");
                    //Convert Row into string
                    String myRow = row.toString();
                    //Getting the index of the first "=" (it's before the FK)
                    int index = myRow.indexOf("=")+1;
                    //Getting the number (FK) out of the string an casting it to int
                    int fk = Integer.parseInt(myRow.substring(index,(index+1)));
                    //Saving the FK in SessionBean1, so I can use it a parameter of
              //the setObject(int, Object)-method
                    getSessionBean1().setFk(fk);
                    //this will give me a RowSet of all lines containing the FK of
              //the affected row
              pkRowSet.setObject(1, getSessionBean1().getFk());
                    pkRowSet.execute();
                    pkRowSet.last();
                    int numRow = pkRowSet.getRow();
              //If the numRow (numbers of rows) is 1, go to cascade_delte
              //and delte the entry with primary key as well
                    if (numRow == 1) {
                        cascade_delete(); //not implemented yet
                }catch (Exception ex) {
                    error("Error counting affected rows: " + ex);
                dataTable1Model.commit();
                dataTable1Model.execute();
                info("Deleting row OK!");
            }catch (Exception e) {
                log("Page 1: Row delete exception: ", e);
                error("Error during deleting: " + e);
            } // end try catch
          return null;
        }

    just a guess - perhaps call pkRowSet.close() at the end of your try/catch?
    v

Maybe you are looking for

  • Will Graphics Card Help Aperture on Mac Pro?

    I've been using Aperture for many years on a variety of Mac hardware. I have 5 or 6 image libraries, ranging in size from 50gb to 250gb. I have no referenced images, do not use "faces" or other CPU-intensive features, and often perform tasks which re

  • How do i know if my iphone was reported stolen

    how can I find out if my I phone was reported stolen?

  • NPE from AutoRegisterActionServlet

    Not sure if this is a Workshop or Server-related question, but here goes. In the log file below, it appears that perhaps a module in our enterprise app has undeployed itself. Does this cause, or is it caused by, the deserialization error reported nex

  • I need help in using PrintJob!

    I am a newcomer of java programming and I met a problem when I use PrintJob in the following code. 1. PrintJob pj = Toolkit.getDefaultToolkit().getPrintJob(this,"JNPJob",null); 2. Graphics g = pj.getGraphics(); The matter is I got a NullPointerExcept

  • Sim tray stuck iphone 3g, sim tray stuck iphone 3g

    Hello ! i enter the sim tray in the wrong side in iPhone 3G now,  i don't know how to get it out. it stuck ! please help me! Thanks in advance, Shlomi