Paint program with save function

Anyone know a way to make a paint program in flash 8 with
save function?
The paint area should be quite large so the current jpg
saving methods don't seem to work.
Any solutions for this?

You probably have to specify what exactly is the problem. Are
you referring to the data size that has to be transfered to a
server?

Similar Messages

  • Problem with SaveAs function using random paths.

    The Setup:
    Part 1) I have a folder-level script that allows me to perform a SaveAs function from within forms. I do this as a way to save the document quietly in the background. The effect is that the file is overwritten by a copy of itself. The script is:
    var mySaveAs = app.trustedFunction( function(oDoc,cPath,cFlName)
        app.beginPriv();
        cPath = cPath.replace(/([^\/])$/, "$1/");
        try{
            oDoc.saveAs(cPath + cFlName);
        }catch(e){
            app.alert("Error During Save");
        app.endPriv();
    Part 2) From within my documents, I perform the save by calling the function below:
    function runSave()
    {if(typeof(mySaveAs) == "function") {
        var pathArray = this.path.split("/");
        var myFileName = pathArray[pathArray.length-1];
        var cPath = this.path.slice(0,myFileName);
        mySaveAs(this, cPath, myFileName);
    } else {
        app.alert("Missing Save Function\n" + "Please contact forms administrator");
    Part 3) I have several large forms that utilize an autosave to call the save function according to a time interval of 5 minutes, using:
    app.setInterval(runSave(), 300000);
    The Problem:
    Part 1) The autosave feature works fine and it works silently in the background. However, I start to experience problems when I have two forms open at the same time. If, for example, I have a form from one folder open, and open a form from a second folder, the save feature will sometimes save the active document to it's original folder (as intended, overwriting itself and creating an autosave) or sometimes save to the second document's original folder. This leaves me with an updated (autosaved) copy of the document in the wrong folder, and a non-updated copy in the original folder. This seems to vary depending on which document I opened last and/or which document is currently active. Though I can't seem to find the right combination.
    It's as thought the "this.path" is getting confused.
    Part 2) Worse still, if the two documents have the same name, as is often the case with these forms, any incorrect filing when saving causes an overwrite of the second document and loss of data.
    Part 3) To makes things maddening, this also happens at times when no second folder or second document is open. Instead, the misfiling saves the single, active document to a recently accessed folder. For example, I'll open a local folder and open a Word doc, close the doc and the folder, go to a different folder in a different root (a networked folder), open the form, and it autosaves to the local machine in the folder with the Word doc. So now not only do I have a non-updated copy in my correct folder, I have no idea where the updated copy was actually saved to until I come across it some time later.
    Part 4) Again, worse still, the previously accessed folder might happen to be one that contains a document with the same name, and that document gets overwritten by the autosave. I'll have no idea that the form has been overwritten until I happen to open it some time later and see that it contains data from a totally different form.
    What is going on and how do I stop it?
    Adobe Acrobat X Pro on a PC.

    Thank you, that is helpful to understand. I'd like to keep it as 3 parameters, as all my documents currently output 3 to the trusted function. And I'd still like to keep the error catch, but I'm not sure why the previous trusted function from the tutorial is no longer working, so I just want to run this by you:
    safeSaveAs = app.trustPropagatorFunction(function(theDoc,thePath,theFileName){
        app.beginPriv();
        var fullPath = (thePath + theFileName);  
        try {
            theDoc.saveAs({cPath:fullPath});
        } catch(e) {
            app.alert("Error During Save");
        app.endPriv();
    myTrustedSaveAs = app.trustedFunction(function(theDoc,thePath,theFileName){
            app.beginPriv();
            safeSaveAs(theDoc,thePath,theFileName);
            app.endPriv();

  • Recording midlet with save function

    Im making a midlet that records audio and saves it to phone's file system. I get the application to run in emulator but when in phone (Sony Ericsson V800) i immediately get error Cannot create a DataSource for: null. Here is the code i'm trying to get to work: (i tried to change the file:///test.wav to file:///e:/test.wav but it didn't help. Also i got a version of this code without the save function but it doesn't work in phone either, it just says error.
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    import javax.microedition.media.*;
    import javax.microedition.media.control.RecordControl;
    public class SaveCapturedAudioMIDlet extends MIDlet
    implements CommandListener {
    // the display items
    private Display display = null;
    private Alert alert = null;
    private Command exitCommand = null;
    // players and controls
    private Player capturePlayer = null;
    private Player playbackPlayer = null;
    private RecordControl rControl = null;
    private boolean error = false;
    public SaveCapturedAudioMIDlet() {
    // create the display
    display = Display.getDisplay(this);
    alert = new Alert("Message");
    alert.setTimeout(Alert.FOREVER);
    alert.setString("Capturing for 10 seconds. Say something intelligent!");
    exitCommand = new Command("Exit", Command.EXIT, 1);
    alert.addCommand(exitCommand);
    alert.setCommandListener(this);
    try {
    // create the capture player
    capturePlayer = Manager.createPlayer("capture://audio");
    if (capturePlayer != null) {
    // if created, realize it
    capturePlayer.realize();
    // and grab the RecordControl
    rControl = (RecordControl)capturePlayer.getControl(
    "javax.microedition.media.control.RecordControl");
    // set the alert as the current item
    display.setCurrent(alert);
    // if it is null throw exception
    if(rControl == null) throw new Exception("No RecordControl available");
    // and set the destination for this captured data
    rControl.setRecordLocation("file:///test.wav");
    } else {
    throw new Exception("Capture Audio Player is not available");
    } catch(Exception e) {
    error(e);
    public void startApp() {
    if(error) return;
    try {
    // first start the corresponding recording player
    capturePlayer.start();
    // and then start the RecordControl
    rControl.startRecord();
    // now record for 10 seconds
    Thread.sleep(10000);
    // stop recording after time is up
    rControl.stopRecord();
    // commit the recording
    rControl.commit();
    // stop the Player instance
    capturePlayer.stop();
    // and close it to release the microphone
    capturePlayer.close();
    // finally, create a Player instance to playback
    // check your device documentation to find out the root.
    // The following will work on devices that have the root
    // specified as shown
    playbackPlayer = Manager.createPlayer("file:///test.wav");
    // and start it
    playbackPlayer.start();
    } catch(Exception e) {
    error(e);
    public void pauseApp() {
    public void destroyApp(boolean unconditional) {
    if(capturePlayer != null) capturePlayer.close();
    if(playbackPlayer != null) playbackPlayer.close();
    public void commandAction(Command cmd, Displayable disp) {
    if(cmd == exitCommand) {
    destroyApp(true);
    notifyDestroyed();
    // general purpose error method, displays on screen as well to output
    private void error(Exception e) {
    alert.setString(e.getMessage());
    alert.setTitle("Error");
    display.setCurrent(alert);
    e.printStackTrace();
    error = true;
    }

    see this:
    http://www.hcilab.org/documents/tutorials/AudioTest/index.html
    I think the problem is the url passed to player "file:///test.wav"
    I think you must read the file from the filesystem with jsr 75 api (Fileconnection etc.) and then make a byte stream in order to pass it to the Manager.createPlayer().

  • Upgrade Program with other function

    hi disowned married woman i would like to know your name if
    you want to deepen our conversation with interesting solution you
    are for me a interesting subject to share my problem if is possible
    naturally.
    You are much kind one to respond answer to me a question
    about document class PuzzleMain but i can't focus your person so i
    can use your alias name >> " VarioPegged" <<
    I'm very tired because i tried a lot of times to resolve my
    problem but i recognize to have a low preparation to resolve these
    disputes.
    If i don't disturbe i would like to know how can create a
    method that return a object Bitmap because i would like to upgrade
    this program with other interesting modification like load
    dimension of image and analize pixel image.
    To realizate this modification i need to have object Bitmap
    and than i can load pixel image with specific methods and
    dimension.
    I propose to you this question because if i can capture two
    variable like dimension and resolution of image i can modify number
    of colons and rows of picture otherwise it would be optimal to
    resize images with fixed parameter so i can put in folder of images
    , other picture with other optimal subjects .
    Other question that i would like to propose to you is this,is
    possible to know where i can to operate a MovieClip that stay into
    another MovieClip.
    thanks a lot generous Californian married Woman
    kiss and Thanks a lot Luciano from Milano
    Text
    Text

    LOL! I don't think I've laughed this hard in a while. I'm
    sure the translation doesn't help the situation either :D
    Luciano ... here in the States:
    Guy = Man/Dude/Male
    I happen to be a man/dude/male.
    Now, what's a little disturbing (I think) is that you're
    sending kisses to what you believe is a married woman in a public
    Adobe forum!
    OK, I'll help you anyway. You can easily use the
    loader.content.width and
    loader.content.height information to get the dimensions of
    the image and then work from there.
    I don't follow your question about a nested(?) MovieClip
    though.
    TS

  • Help with "save" function??

    We are creating a fillable .pdf form for our company supervisors to use in the field as a daily report. My goal is to have a single Acrobat form that can be stored on their computer or on our FTP site that they can access to fill out a daily report. The issue we are having is that as soon as they start typing, the "save" button becomes active and if they are not super diligent they can end up overwriting the blank form. I need this to be bulletproof so we can get consistent reports each day.
    How can I set the form up so that there is no option to accidentally save a filled out form over our blank "template" form?
    Is there a way to add a button to the form and save it in a specific format while diabling any "save" functionality?
    Please help. Any input would be greatly appreciated.
    Thank you.

    Have you tried making the form Read-Only? Not sure that will do it, but worth a try. Actually I am not sure why the save is an issue, as long as they save to a new file name in the end. A filled out form can sometimes save time in terms of having name and such already filled in.

  • Problem with Save functionality for a Screen - Field

    Hi Experts,
    I  have included a custom field with list box option to an infotype. The new filed  displays the values based on the values selected in the standard field which has a list box option.
    Now if we enter the transaction in change mode and change the standard field value without pressing ENTER and click SAVE button, it gets saved with an improper value in the custom field. The reason being the custom field values with drop down list is retreived only after we press enter (POV is triggered) after selecting a standard field.
    Options tried:
    I have included an error message (in PAI)  to stop the values being saved, but the screen beomes disabled.
    I have done my validation only on the custom field as there is no other possibility to validate any other fields on the screen (all are standard). Here the error message pops up and the field is in the enable mode, but it does not retrieve the possible values for the custom field based on my earlier selection for the standard field.( Because as POV does not get triggered in this case)
    Ex.  Std field value = USA
           Custom field   =  United States of America
    I changed the value in Standard field to = UK and click SAVE - It get saved
    Now how to stop it from SAVING and let it know that there is an error in the custom field and it needs to select the right value from the list ie - United Kingdom.
    Lakshmi

    Perhaps a solution is to save the code value, not the text for the code, and only display the text.  In this way, the database would have UK and when you re-entered the screen, a PBO module could obtain the text for UK for display.
    Or, if you must store the text value instead of the code (seems redundant...you can look up the text anytime), an enhancement to the save to database logic to obtain the correct value from the current value of the code and save that to the database....

  • Need help with algorithm for my paint program

    I was making a paint program with using a BufferedImage where the user draws to the BufferedImage and then I draw the BufferedImage onto the class I am extending JPanel with. I want the user to be able to use an undo feature via ctrl+z and I also want them to be able to update what kind of paper they're writing on live: a) blank paper b) graph paper c) lined paper. I cannot see how to do this by using BufferedImages. Is there something I'm missing or must I do it another way? I am trying to avoid the other way because it seems too demanding on the computer but if this is not do-able then I guess I must but I feel I should ask you guys if what I am doing is logical or monstrous.
    What I am planning to do is make a LinkedList that has the following 4 parameters:
    1) previous Point
    2) current Point
    3) current Color
    4) boolean connectPrevious
    which means that the program would basically draw the instantaneous line using the two points and color specified in paintComponent(Graphics g). The boolean value is for ctrl+z (undo) purposes. I am also planning to use a background thread to eliminate repeated entries in the LinkedList except for the last 25 components of the LinkedList (that number might change in practice).
    What do you guys think?
    Any input would be greatly appreciated!
    Thanks in advance!

    Look at the package javax.swing.undo package - UndoableEdit interface and UndoManager class.
    Just implement the interface. Store all necessary data to perform your action (colors, pixels, shapes etc.). Add all your UndoableEdits in an UndoManager instance and call undo() redo() when you need.

  • LodePaint: Painting Program

    LodePaint is an open source painting program similar to (Kolour)Paint but with more advanced features, more filters, soft brushes, alpha channel support, some HDR image support, etc...
    The program is aimed mostly at pixel artists, icons, texture editing, "programmer's art", etc...
    It can be downloaded here: https://sourceforge.net/projects/lodepaint/files/
    Just unzip & run. It requires SDL, and hardware accelerated OpenGL to run.
    Please try it out!
    Last edited by aardwolf (2010-03-06 15:20:01)

    If you try compiling it for 64-bit, it'd be interesting to know if it worked.
    It did not. Using this PKGBUILD
    # Maintainer: Stefan Husmann <[email protected]>
    pkgname=lodepaint-svn
    pkgver=7
    pkgrel=1
    pkgdesc="Painting program with full SDL+OpenGL GUI."
    url="http://sourceforge.net/projects/lodepaint/"
    arch=('i686' 'x86_64')
    license=('GPL3')
    depends=('sdl')
    source=()
    md5sums=()
    _svntrunk=https://lodepaint.svn.sourceforge.net/svnroot/lodepaint
    _svnmod=lodepaint
    build() {
    cd "$srcdir"
    LANG=C
    if [ -d $_svnmod/.svn ]; then
    (cd $_svnmod && svn up -r $pkgver)
    else
    svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
    fi
    msg "SVN checkout done or server timeout"
    msg "Starting make..."
    rm -rf "$srcdir/$_svnmod-build"
    cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
    cd "$srcdir/$_svnmod-build/trunk"
    # BUILD
    g++ src/*.cpp src/lpi/*.cpp -o lodepaint -lSDL -lGL -W -Wall \
    -Wextra -pedantic -ansi -O2
    install -Dm755 lodepaint $pkgdir/usr/bin/lodepaint
    I get
    ==> Determining latest svn revision...
    -> Version found: 7
    ==> Making package: lodepaint-svn 7-1 x86_64 (So 7. Mär 13:25:31 CET 2010)
    ==> Checking Runtime Dependencies...
    ==> Checking Buildtime Dependencies...
    ==> Retrieving Sources...
    ==> Extracting Sources...
    ==> Removing existing pkg/ directory...
    ==> Entering fakeroot environment...
    ==> Starting build()...
    At revision 7.
    ==> SVN checkout done or server timeout
    ==> Starting make...
    src/paint_filter_plugin.cpp: In constructor 'FilterPlugin::FilterPlugin(const std::string&, GlobalToolSettings&, const lpi::gui::IGUIDrawer&)':
    src/paint_filter_plugin.cpp:52: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_filter_plugin.cpp:69: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_filter_plugin.cpp:82: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_filter_plugin.cpp:83: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_filter_plugin.cpp:85: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_filter_plugin.cpp:86: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_filter_plugin.cpp:87: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_filter_plugin.cpp:88: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_filter_plugin.cpp:96: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_filter_plugin.cpp:97: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_filter_plugin.cpp:98: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_filter_plugin.cpp:99: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_filter_plugin.cpp:100: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_filter_plugin.cpp:101: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_filter_plugin.cpp:102: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_filter_plugin.cpp:103: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_filter_plugin.cpp:104: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_filter_plugin.cpp:105: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_filter_plugin.cpp:106: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_filter_plugin.cpp:107: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_filter_plugin.cpp:108: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_filter_plugin.cpp: In constructor 'FilterPlugin::FilterPlugin(const std::string&, GlobalToolSettings&, const lpi::gui::IGUIDrawer&)':
    src/paint_filter_plugin.cpp:52: warning: dereferencing pointer 'p_getLodePaintPluginType.174' does break strict-aliasing rules
    src/paint_filter_plugin.cpp:52: note: initialized from here
    src/paint_filter_plugin.cpp: In constructor 'FilterPlugin::FilterPlugin(const std::string&, GlobalToolSettings&, const lpi::gui::IGUIDrawer&)':
    src/paint_filter_plugin.cpp:52: warning: dereferencing pointer 'p_getLodePaintPluginType.174' does break strict-aliasing rules
    src/paint_filter_plugin.cpp:52: note: initialized from here
    src/paint_imageformats.cpp: In constructor 'ImageFormatPlugin::ImageFormatPlugin(const std::string&)':
    src/paint_imageformats.cpp:403: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_imageformats.cpp:422: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_imageformats.cpp:435: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_imageformats.cpp:442: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_imageformats.cpp:449: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_imageformats.cpp:456: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_imageformats.cpp:463: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_imageformats.cpp:464: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_imageformats.cpp:465: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_imageformats.cpp:466: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_imageformats.cpp:468: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/paint_imageformats.cpp: In constructor 'ImageFormatPlugin::ImageFormatPlugin(const std::string&)':
    src/paint_imageformats.cpp:403: warning: dereferencing pointer 'p_getLodePaintPluginType.203' does break strict-aliasing rules
    src/paint_imageformats.cpp:403: note: initialized from here
    src/paint_imageformats.cpp: In constructor 'ImageFormatPlugin::ImageFormatPlugin(const std::string&)':
    src/paint_imageformats.cpp:403: warning: dereferencing pointer 'p_getLodePaintPluginType.203' does break strict-aliasing rules
    src/paint_imageformats.cpp:403: note: initialized from here
    src/lpi/lpi_imageformats.cpp: In function 'bool lpi::decodeImageFile(std::string&, std::vector<unsigned char, std::allocator<unsigned char> >&, int&, int&, const unsigned char*, size_t, lpi::ImageFormat)':
    src/lpi/lpi_imageformats.cpp:795: error: no matching function for call to 'CBitmap::GetBits(unsigned char*, size_t&, int)'
    src/lpi/lpi_imageformats.cpp:593: note: candidates are: bool CBitmap::GetBits(void*, unsigned int&)
    src/lpi/lpi_imageformats.cpp:607: note: void* CBitmap::GetBits()
    src/lpi/lpi_imageformats.cpp:614: note: bool CBitmap::GetBits(void*, unsigned int&, unsigned int)
    src/lpi/stb_image.cpp: In function 'stbi_uc* stbi_tga_load_from_memory(const stbi_uc*, int, int*, int*, int*, int)':
    src/lpi/stb_image.cpp:2866: warning: 'trans_data$3' may be used uninitialized in this function
    src/lpi/stb_image.cpp:2866: note: 'trans_data$3' was declared here
    src/lpi/stb_image.cpp:2866: warning: 'trans_data$2' may be used uninitialized in this function
    src/lpi/stb_image.cpp:2866: note: 'trans_data$2' was declared here
    src/lpi/stb_image.cpp:2866: warning: 'trans_data$1' may be used uninitialized in this function
    src/lpi/stb_image.cpp:2866: note: 'trans_data$1' was declared here
    src/lpi/stb_image.cpp:2866: warning: 'trans_data$0' may be used uninitialized in this function
    src/lpi/stb_image.cpp:2866: note: 'trans_data$0' was declared here
    install: cannot stat `lodepaint': No such file or directory
    ==> ERROR: Build Failed.
    Aborting...
    Process makepkg exited abnormally with code 2
    the relevant error seems to be in
    src/lpi/lpi_imageformats.cpp:795:error: no matching function for call to 'CBitmap::GetBits(unsigned char*, size_t&, int)'
    src/lpi/lpi_imageformats.cpp:593: note: candidates are: bool CBitmap::GetBits(void*, unsigned int&)
    src/lpi/lpi_imageformats.cpp:607: note: void* CBitmap::GetBits()
    src/lpi/lpi_imageformats.cpp:614: note: bool CBitmap::GetBits(void*, unsigned int&, unsigned int)
    Last edited by Stefan Husmann (2010-03-07 12:39:07)

  • 'Save' function inactive in user defined PF for CL_SALV*

    Hello,
    I've implemented OOPS ALV using CL_SALV* classes and defined a PF Status with 'Save' functionality copied from the Standard PF Status SALV_TABLE_STANDARD of the function group SALV_METADATA_STATUS.
    However, the said SAVE function button is not active on execution of the report. I've checked the activation/visibility of the function using methods get_function(), is_active() and is_visible () but everything seems fine.
    Please help.
    Thanks,
    Shalabh Jain

    I don' think anything wrong with SALV Class.  I tried the same by copying standard GUI Status "SALV_TABLE_STANDARD" to a Z GUI Status and it worked perfectly.  I followed below steps
    - Copy standard GUI status "SALV_TABLE_STANDARD" to "ZSALV_TABLE_STANDARD"
    - Changed the Function code of SAVE button to "SAVE"
    - Activated GUI Status.
    - Attached the GUI status to the Z program
    - Call method SET_SCREEN_STATUS
    DATA : lv_sypfkey  TYPE sypfkey.
        lv_sypfkey = 'ZSALV_TABLE_STANDARD'.
        TRY.
            lr_table->set_screen_status(
              EXPORTING
                report        = sy-repid
                pfstatus      = lv_sypfkey
                set_functions = lr_table->c_functions_all ).
          ENDTRY.
    Regards, Vinod

  • Small paint program

    hi guys
    I'm having some trouble making a small paint program with swing. It needs the following functions:
    - choose a shape from a combobox(only line, rectangle or circle).
    - set the filled checkbox to on or off
    - choose a color with the JColorChooser when you click on the colorLabel
    Then you can start drawing the shape you selected on the JPanel.
    Could someone help me out ? I would really appreciate that :-)
    Greetz

    noah.w's PaintLike2 program might get you what you want
    http://forum.java.sun.com/thread.jspa?forumID=256&threadID=476969
    there is a PaintLike3 (also from noah.w) in the forums somewhere,
    but I couldn't find it

  • I want to save with alt s in the program Exact Online. This function is not working. this is the first time that i use this program with firefox.

    Question
    I want to save with <nowiki><alt><s></nowiki> in the program Exact Online. This function is not working. this is the first time that i use this program with firefox.
    '''edit''', mod escaped the '''<nowiki><s></nowiki>''' to prevent line through question

    Submitted too soon... To change your accelerator key for accesskeys to Alt alone (or a different combination), you can change a setting using Firefox's about:config preferences page.
    (1) In a new tab, type or paste '''about:config''' in the address bar and press Enter. Click the button promising to be careful.
    (2) In the filter box, type or paste '''ui.k''' and pause while the list is filtered
    (3) Make sure '''ui.key.generalAccessKey''' is set to its default value of -1 (or right-click and choose Reset if it is not).
    (4) Double-click '''ui.key.contentAccess''' to open a dialog box to change the value from its current default (on Windows, 5) to your choice of the following:
    * 2 = '''Ctrl''' (Fx default on Mac thru Fx13)
    * 3 = Ctrl + Shift
    * 4 = '''Alt''' (IE/Chrome/Safari default on Win/Linux)
    * 5 = '''Alt + Shift''' (Fx default on Windows & Linux)
    * 6 = '''Ctrl + Alt''' (Fx default on Mac from Fx14) (Chrome/Safari default on Mac)
    * 7 = Ctrl + Alt + Shift
    This should take effect as soon as you OK the dialog, so you can experiment in a separate tab. Other combinations are available if you want to try them. See http://kb.mozillazine.org/Ui.key.contentAccess (inaccessible at the moment?)

  • Help with Paint program.

    Hello. I am somewhat new to Java and I was recently assigned to do a simple paint program. I have had no trouble up until my class started getting into the graphical functions of Java. I need help with my program. I am supposed to start off with a program that draws lines and changes a minimum of 5 colors. I have the line function done but my color change boxes do not work and I am able to draw inside the box that is supposed to be reserved for color buttons. Here is my code so far:
    // Lab13110.java
    // The Lab13 program assignment is open ended.
    // There is no provided student version for starting, nor are there
    // any files with solutions for the different point versions.
    // Check the Lab assignment document for additional details.
    import java.applet.Applet;
    import java.awt.*;
    public class Lab13110 extends Applet
         int[] startX,startY,endX,endY;
         int currentStartX,currentStartY,currentEndX,currentEndY;
         int lineCount;
         Rectangle red, green, blue, yellow, black;
         int numColor;
         Image virtualMem;
         Graphics gBuffer;
         int rectheight,rectwidth;
         public void init()
              startX = new int[100];
              startY = new int[100];
              endX = new int[100];
              endY = new int[100];
              lineCount = 0;
              red = new Rectangle(50,100,25,25);
              green = new Rectangle(50,125,25,25);
              blue = new Rectangle(50,150,25,25);
              yellow = new Rectangle(25,112,25,25);
              black = new Rectangle(25,137,25,25);
              numColor = 0;
              virtualMem = createImage(100,600);
              gBuffer = virtualMem.getGraphics();
              gBuffer.drawRect(0,0,100,600);
         public void paint(Graphics g)
              for (int k = 0; k < lineCount; k++)
                   g.drawLine(startX[k],startY[k],endX[k],endY[k]);
              g.drawLine(currentStartX,currentStartY,currentEndX,currentEndY);
              g.setColor(Color.red);
              g.fillRect(50,100,25,25);
              g.setColor(Color.green);
              g.fillRect(50,125,25,25);
              g.setColor(Color.blue);
              g.fillRect(50,150,25,25);
              g.setColor(Color.yellow);
              g.fillRect(25,112,25,25);
              g.setColor(Color.black);
              g.fillRect(25,137,25,25);
              switch (numColor)
                   case 1:
                        g.setColor(Color.red);
                        break;
                   case 2:
                        g.setColor(Color.green);
                        break;
                   case 3:
                        g.setColor(Color.blue);
                        break;
                   case 4:
                        g.setColor(Color.yellow);
                        break;
                   case 5:
                        g.setColor(Color.black);
                        break;
                   case 6:
                        g.setColor(Color.black);
                        break;
              g.setColor(Color.black);
              g.drawRect(0,0,100,575);
         public boolean mouseDown(Event e, int x, int y)
              currentStartX = x;
              currentStartY = y;
              if(red.inside(x,y))
                   numColor = 1;
              else if(green.inside(x,y))
                   numColor = 2;
              else if(blue.inside(x,y))
                   numColor = 3;
              else if(yellow.inside(x,y))
                   numColor = 4;
              else if(black.inside(x,y))
                   numColor = 5;
              else
                   numColor = 6;
              repaint();
              return true;
         public boolean mouseDrag(Event e, int x, int y)
              int Rectheight = 500;
              int Rectwidth = 900;
              currentEndX = x;
              currentEndY = y;
              Rectangle window = new Rectangle(0,0,900,500);
              //if (window.inside(Rectheight,Rectwidth))
                   repaint();
              return true;
         public boolean mouseUp(Event e, int x, int y)
              int Rectheight = 500;
              int Rectwidth = 900;
              startX[lineCount] = currentStartX;
              startY[lineCount] = currentStartY;
              endX[lineCount] = x;
              endY[lineCount] = y;
              lineCount++;
              Rectangle window = new Rectangle(0,0,900,500);
              if (window.inside(Rectheight,Rectwidth))
                   repaint();
              return true;
         public void Rectangle(Graphics g, int x, int y)
              g.setColor(Color.white);
              Rectangle screen = new Rectangle(100,0,900,600);
    }If anyone could point me in the right direction of how to go about getting my buttons to work and fixing the button box, I would be greatly appreciative. I just need to get a little bit of advice and I think I should be good after I get this going.
    Thanks.

    This isn't in any way a complete solution, but I'm posting code for a mouse drag outliner. This may be preferable to how you are doing rectangles right now
    you are welcome to use and modify this code but please do not change the package and make sure that you tell your teacher where you got it from
    MouseDragOutliner.java
    package tjacobs.ui;
    import java.awt.BasicStroke;
    import java.awt.Color;
    import java.awt.Component;
    import java.awt.Container;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.Point;
    import java.awt.Stroke;
    import java.awt.event.*;
    import java.util.ArrayList;
    import java.util.Iterator;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.SwingUtilities;
    * See the public static method addAMouseDragOutliner
    public class MouseDragOutliner extends MouseAdapter implements MouseMotionListener {
         public static final BasicStroke DASH_STROKE = new BasicStroke(1.0f, BasicStroke.CAP_SQUARE, BasicStroke.JOIN_BEVEL, 10.0f, new float[] {8, 8}, 0);
         private boolean mUseMove = false;
         private Point mStart;
         private Point mEnd;
         private Component mComponent;
         private MyRunnable mRunner= new MyRunnable();
         private ArrayList mListeners = new ArrayList(1);
         public MouseDragOutliner() {
              super();
         public MouseDragOutliner(boolean useMove) {
              this();
              mUseMove = useMove;
         public void mouseDragged(MouseEvent me) {
              doMouseDragged(me);
         public void mousePressed(MouseEvent me) {
              mStart = me.getPoint();
         public void mouseEntered(MouseEvent me) {
              mStart = me.getPoint();
         public void mouseReleased(MouseEvent me) {
              Iterator i = mListeners.iterator();
              Point end = me.getPoint();
              while (i.hasNext()) {
                   ((OutlineListener)i.next()).mouseDragEnded(mStart, end);
              //mStart = null;
         public void mouseMoved(MouseEvent me) {
              if (mUseMove) {
                   doMouseDragged(me);
         public     void addOutlineListener(OutlineListener ol) {
              mListeners.add(ol);
         public void removeOutlineListener(OutlineListener ol) {
              mListeners.remove(ol);
         private class MyRunnable implements Runnable {
              public void run() {
                   Graphics g = mComponent.getGraphics();
                   if (g == null) {
                        return;
                   Graphics2D g2 = (Graphics2D) g;
                   Stroke s = g2.getStroke();
                   g2.setStroke(DASH_STROKE);
                   int x = Math.min(mStart.x, mEnd.x);
                   int y = Math.min(mStart.y, mEnd.y);
                   int w = Math.abs(mEnd.x - mStart.x);
                   int h = Math.abs(mEnd.y - mStart.y);
                   g2.setXORMode(Color.WHITE);
                   g2.drawRect(x, y, w, h);
                   g2.setStroke(s);
         public void doMouseDragged(MouseEvent me) {
              mEnd = me.getPoint();
              if (mStart != null) {
                   mComponent = me.getComponent();
                   mComponent.repaint();
                   SwingUtilities.invokeLater(mRunner);
         public static MouseDragOutliner addAMouseDragOutliner(Component c) {
              MouseDragOutliner mdo = new MouseDragOutliner();
              c.addMouseListener(mdo);
              c.addMouseMotionListener(mdo);
              return mdo;
         public static interface OutlineListener {
              public void mouseDragEnded(Point start, Point finish);
         public static void main(String[] args) {
              JFrame f = new JFrame("MouseDragOutliner Test");
              Container c = f.getContentPane();
              JPanel p = new JPanel();
              //p.setBackground(Color.BLACK);
              c.add(p);
              addAMouseDragOutliner(p);
              f.setBounds(200, 200, 400, 400);
              f.addWindowListener(new WindowClosingActions.Exit());
              f.setVisible(true);
    }

  • Cant open PC Paint files with Appleworks paint program

    I have been using the very simple Paint program that comes with windows. I have finally made the move and ditched the PC for something more stable.
    When I try to import my .bmp pictures I used to work on into Appleworks it insists on opeing the Drawing program that has no "fill" etc. Even when I open the Paint program and then "force" it to open a .bmp only part of the picture is shown. I thought that a .bmp is pretty basic and common file type.
    Does anyone know if Appleworks can handle .bmp files and if not what are other options. I didn't really feel the need to have a $170 paint program for what I am doing.
    Hope you can help.
    Michael

    Dale,
    Thanks for your reply.
    The problem is that I need to use the "fill" in the paint program.
    I have actually just been able to get the file to load into Appleworks paint after reading about using the .pict save. All looked good untill I tried to fill. What happens now is that the fill is very chunky and does not bleed thru at all. This makes it pretty useless at the moment.
    Same problem, with a twist now.
    Looking forward to any further ideas.
    Michael

  • I have a site I do business with. They do not authorize passwords unless a dealer. I do no have on an auto save function, as I want to type my passwords in ea

    I have a site I do business with. They do not authorize passwords unless you are a dealer. I do not have passwords on an auto save function, as I want to type my passwords in each time for security. My password for this site will only work a short WHILE, AND THEN it will not be recognized by the site and I cannot get in.
    Then I must contact the company to reset or clear it manually on their end so it can be reset. They always give me the SAME SETUP PASSWORD to use. I use it, then I RESET PASSWORD on my end. The computer seems to remember my user NAME AT least on my computer as it comes up once I start typing the username in. They SAY IT is a settings issue on my end. I do not have this problem on any other site even THOSE WITH higher SECURITY. I need to FIX the issue OR may LOSE ACCESS To the site as is very aggravating for them and they say other have had the problem but usually with chrome but never constantly.I am not that computer literate ,but my husband is an IT Security professor and textbook writer but says doesn't really know Firefox. I do not really want to store passwords on computer as have been hacked several times. He and I do not understand some of the terms mentioned. since it is not a problem with other sites it should be fixable. Please me help using terms I or my husband can understand without having to give Firefox all my passwords. I would be happy to set up something different just for this one site if I need to but need easy instructions. Have cleared the cookies before but it still happens. What setting do I need to change or set to fix this? the other questions that come up seem very different and do not apply. FF 22 now but happened w other FF versions.

    I'm having a little trouble understanding the part about your password having to be reset. Why is that happening??
    Let's start with Firefox's settings:
    (1) You can configure the password manager feature on this tab:
    orange Firefox button (or Tools menu) > Options > Security
    There is a checkbox to enable/disable the feature.
    There also is a "Saved Passwords" button to review and remove any passwords you do not want Firefox to keep.
    That tab also has a feature to set a Master Password so that no one can use your saved passwords without knowing the Master Password. You may need to exit Firefox in order for Firefox to ask for that again.
    Related articles:
    * [[Password manager - Remember, delete and change saved passwords in Firefox]]
    * [[Use a Master Password to protect stored logins and passwords]]
    (2) Site-specific permissions
    If you want to use the password manager for other sites but NOT a particular site, you can configure that in the Permissions Manager.
    In a new tab, type or paste '''about:permissions''' in the address bar and press Enter.
    After the page loads, use the search box in the upper left corner to narrow down the list to the site you want to configure. Highlight the site on the left side, and on the right side, choose Block under Store Passwords.
    (3) Form autocomplete suggestions
    Separate from passwords, Firefox remembers entries you've made into forms (in most cases) and lists the matching ones below the form field in a drop-down.
    To clear a suggestion, press the down arrow key to highlight it and press the Delete key.
    To turn off this feature, see this article: [[Control whether Firefox automatically fills in forms with your information]].
    To review and selectively edit or delete form history entries, you need an add-on. For example, you could try this one: https://addons.mozilla.org/firefox/addon/form-history-control/

  • How to open labview program with Quit Labview function inside?

    Hi Any idea how to open labview program with  Quit Labview function inside?
    I forgot to add and set the condition of the type for this program.
    If the program is an application, it would close straight away.
    If it is still labview work, it will go straight to editing program without closing.
    So I need to recover, open it and make some changes.
    Clement
    Solved!
    Go to Solution.

    Put the VI in a project and open it from there, then it shouldn't autorun. You can use App.kind property of application to decide whether to close or not.
    /Y
    LabVIEW 8.2 - 2014
    "Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
    G# - Free award winning reference based OOP for LV

Maybe you are looking for