Any alternative for JDIC WebBrowser in Java 6

I have moved to java 6 and dont want to you jdic .Can anyone suggest any new alternative for this Java 6.
Thanks

Hi,
are u sure to put dll & exe files (ieEmbed.exe, tray.dll ...) at the same place u have ur jdic.jar file?
if it's ok, look used port and found which app use the 3379 one (before launch your app)
I hope that will help you
Regards
Sylvain

Similar Messages

  • Are there any alternatives for iphone backup extractor?

    Hi all,
    I find that the 'iphone backup extractor' program is very useful, however it is quite annoying that they limit the extraction to 4 files at a time and that we have to pay in order to get our own data files propperly. :S
    When I restore my old backup from iTunes, every new thing is gone, when I restore the backup I just made, the old backup stuff has gone. It just replaces each other.
    Apple should have their own software like this where you can extract what ever you want from your old backups and transfer it on to your phone, such as contacts for example.
    Anyway, I was wondering if there is any alternatives for this program, or any other way I can extract my backup files ?

    If you're on a Mac, there is a "free" iPhone backup extractor, but none that I know of for Windows. You could always code your own program, that would be free.
    Apple doesn't provide a mechanism to do this for the simple reason they don't want users screwing with the iPhone backup. Thus, none of these third-party programs are supported.

  • Hi I have recentrly bought IPAD AIR , is there any flash version supporting this model or is there any alternative for flash siles to open ?

    Hi,
    I have recently bought IPAD AIR , is there any flash version supporting this model or is there any alternative for flash sites to open ?

    iPad do not support Flash
    However Skyfire, Photon, iSwifter, Browse2Go and Puffin Web Browser will provide limited Flash capability

  • Any alternative for Visual Composer?

    Dear all,
    The new version of Visual Composer are very attractive due to the use of Macromedia Flex technology. However, it seems still not avaliable now. So, I would like to ask if there is any alternative to Visual Composer that:
    a) has an attractive user interface, and
    b) able to get realtime data from, for example, BW by means of connector?
    Please help me....THANKS A LOT!
    Best regards,
    Marcus

    Hi Ignacio,
    Thanks for your reply!
    BI Java Connector can only extract real time information from BW.
    However, what I want is an applcation which I can extract real time information from BW and then can generate some financial reports (through some pre-configuration) using those extrected information.
    Visual Composer (VC) can do so with very attractive output (i.e. the financial report). However, VC is not mature enough and that's why I would like to look for some other mature alternative.
    Is there any application can achieve such purpose?
    Thanks and best regards,
    Marcus

  • Are there any alternatives for mseg and mkpf

    I had to display from table S032...following fields.
    S032-LETZTABG --> Date: last (i.e. most recent) goods issue
    S032-LETZTVER --> Date: last (i.e. most recent) consumption
    However the data was not properly filled in s032 table.  So I went for mseg and mkpf table to get budat based on moment types.
        SELECT   MSEG~MATNR
                 MSEG~WERKS
                 MSEG~LGORT
                 MSEG~BWART
                 MKPF~BUDAT
                 INTO TABLE IT_MSEG
                 FROM MKPF AS MKPF  INNER JOIN MSEG AS MSEG
                 ON
                     MKPFMBLNR  =  MSEGMBLNR  AND
                     MKPFMJAHR  =  MSEGMJAHR
                 FOR ALL ENTRIES  IN  T_OUT_TMP
                WHERE MSEG~MATNR  EQ  T_OUT_TMP-MATNR
                  AND MSEG~WERKS  EQ  T_OUT_TMP-WERKS.
    Are there any other alternative table for mseg and mkpf...
    Because my above coding  ( which includes above  SELECT of mseg and mkpf )got performance issue...
    Could you please suggest me anyu other alternative for mseg and mkpf ...

    Try to include the BUDAT in the selection of the MKPF.. if you don't have any restriction in MKPF than just pass an empty range.
    RANGES: S_BUDAT FOR MKPF-BUDAT.
    SELECT
    MKPF~BUDAT   "<<<
    MSEG~MATNR
    MSEG~WERKS
    MSEG~LGORT
    MSEG~BWART
    INTO TABLE IT_MSEG
    FROM MKPF AS MKPF INNER JOIN MSEG AS MSEG
    ON
    MKPF~MBLNR = MSEG~MBLNR AND
    MKPF~MJAHR = MSEG~MJAHR
    FOR ALL ENTRIES IN T_OUT_TMP
    WHERE
    MKPF~BUDAT IN S_BUDAT   " <<<
    MSEG~MATNR EQ T_OUT_TMP-MATNR
    AND MSEG~WERKS EQ T_OUT_TMP-WERKS.
    Regards,
    Naimesh Patel

  • Any alternatives for dbms_utility.format_call_stack?

    For the freaks out there:
    isn't there an alternative for dbms_utility.format_call_stack, since this will not work in server-side pl/sql when called from Oracle Forms. I'm searching something like a Data Dictionary View where I can retrieve this kind of information.
    Regards, Roel

    I am having the same problem.
    I need a way to trace the path, even when the code is called from Forms.
    Any ideas??

  • Is there any alternative for OVS ?

    Hi All,
        I am looking for alternative method to implement help option to multiple input fields. So, I wanted to ask memebers of this forum if there is any alternative approach to achieve this functionality as I find implementing OVS is very confusing and time consuming.
    Kindly suggest me if there is any alternate option if available. I tried Hotel Reservation example and flight reservation examples.
    Kindly suggest me any new methods.
    Thanks
    Uday

    I would first develop a view which will act as your value selector (I would use a table UI element with filtering capabilities)
    Then embed this view in a window so it can be shown as a popup using code in the onEnter event, like
    IWDWindowInfo winInfo = (IWDWindowInfo)wdComponentAPI.getComponentInfo().findInWindows("YourValueSelectorWindow");
    IWDWindow     win     = wdComponentAPI.getWindowManager().createModalWindow(winInfo);
    win.setWindowPosition (<left_relativ_to_your_inputfield>, <top_relative_to_your_inputfield>);
    win.setWindowSize (<width>,<height>);
    win.show();
    In this window bind your table UI element to the context of your source data, implement filtering capabilities, and upon selection pass the desired value back to the parent inputfield and closing the popup window.

  • Handango - Any alternatives for software?

    Are there any alternatives to Handango for purchasing software for my Curve 8310? Handango stinks.
    1. Purchased 2 software titles there today. Downloaded to PC. Went to Unzip and received WinZip error message.. "Cannot open file: it does not appear to be a valid archive".
    - Deleted from desktop and tried 2 more times. Same message.
    - Tried to Open from the Order form. Same message.
    2. Handango's website continually crashes when trying to navigate (Page not found)... forced to keep trying.. sometimes the link goes through.
    Couldn't seem to find any forum or support group for Handango.
    BTW, I'm using WinZip 9.0 SR-1.
    Left an e-mail about this with their Customer Support, but I hate relying on others to get back to me. I will GLADLY PAY for long-distance costs.. just give me a telephone number.
    No telephone number to call.. Took some searching to find a telephone number. When you do call their Corporate offices for support, you get a message they're only open 9-5 CST M-Th and 9-12 CST F. Well, duh.. some of us work during the week.
    Message Edited by KGlennCole on 11-08-2008 02:23 PM
    Message Edited by KGlennCole on 11-08-2008 02:54 PM
    Solved!
    Go to Solution.

    Hi,
    Crackberry.com has a reputable store.
    I haven't had a problem with Handango, and many on the forums see to like them as well.
    You may have encountered a "black hole" in their operations!
    Thanks,
    Please remember to resolve your thread. Put the check mark in the green box that contained your answer! Thanks
    Click Accept as Solution for posts that have solved your issue(s)!
    Be sure to click Like! for those who have helped you.
    Install BlackBerry Protect it's a free application designed to help find your lost BlackBerry smartphone, and keep the information on it secure.

  • Any alternatives for email client for iPad?

    The app that comes installed with the iPad is not really much of an email reader. I can't find any alternative apps in the app store. Suggestions/tips?

    If you own your own domain and don't want to use say... squirrel mail or whatever sh1tty webmail client your host provides, gmail isn't really an option.
    Plus, not everyone wants to give ALL their data to gmail. It shouldn't be the answer to every problem... APPLE!
    I manage 7-10 domains at any one time, and some of them are open due to the way I handle subscriptions and memberships. I filter my mail easily on the OSX native mail app, but on the ipad client it's a joke. I get to read (and delete) my spam ALL OVER again. What's the point of not allowing preferences like filters to cross over to the mail app?
    Just opening the mail app is a hassle. If I want to peek at an old message, I have to wait for it to download to all my accounts an I can't stop it. If I'm offline and I want to read a message, I have to wait for eight error messages to pop up telling me that mail can't connect.
    What a joke. This is why websites like gmail and facebook are going to continue to rule. At least I can get messages there while on the road.
    Apple just fuels the competition by making such crap software for its pretty new products.

  • Any alternative for PS6500?

    Is there any alternative in Dell storage for Equalogic PS6500 series? Want to set up an environment with two-linux systems doing HA in a simple fashion and share storage between two systems.
    Also any system which could handle HA failover in iSCSI directly so don't have to use Equallogic7610?
    Would appreciate any inputs on this.
    Regards!

    Hello,
    Regardless of the vendor,  direct storage.  iSCSI, SAS, infinniband, Fibre Channel, etc  HA is not a native feature of storage.   That relies on the host operating system to deal with the common storage.
     A 7610 being a NAS device, using a network sharing protocol, where the NAS device handles the filesystem is very different from a SAN.
    You would either need a cluster aware filesystem, like GFS, or a cluster solution that insures that a resource is only active on one node at a time.
    Regards,
    Don

  • Is there any alternative for Evaluate function

    Hi all
    Can anybody tell me the alternative for evaluate function. i have to use a SQL Function and execute it from obiee

    Agreed with John. You best create a view in the DB or - if you don't have the rights - you can just put this SQL code in the physical layer as a physical table object of table type "Select".
    In UDML:
    DECLARE TABLE "ABC".."SH"."test" AS "test" UPGRADE ID 1 NOT CACHEABLE NO INTERSECTION
         TABLE TYPE SELECT DATABASE MAP (
               {DefaultMulDB}  AS {select a.job_id,
         a.name title,
         flsa.meaning flsa,
         eeo.meaning eeo_category,
         a.attribute1 job_family,
         c.name grade
    from per_jobs a,
         (select * from per_valid_grades where sysdate between date_from and nvl(date_to, sysdate + 1)) b,
         (select * from per_grades where sysdate between date_from and nvl(date_to, sysdate + 1)) c,
         (select lookup_code, meaning from hr_lookups where lookup_type like 'US_EXEMPT_NON_EXEMPT') flsa,
         (select lookup_code, meaning from hr_lookups where lookup_type like 'US_EEO1_JOB_CATEGORIES') eeo,
         (select lookup_code, meaning from hr_lookups where lookup_type like 'ALB_HR_JOB_FAMILY') jf
    where sysdate between a.date_from and nvl(a.date_to, sysdate + 1) and
         b.job_id (+) = a.job_id and
         c.grade_id(+) = b.grade_id and
         flsa.lookup_code (+) = a.job_information3 and
         eeo.lookup_code (+) = a.job_information1 and
         jf.lookup_code (+) = a.attribute1}  )
         PRIVILEGES ( READ);Cheers,
    C.

  • Is there any alternative for adding servlet name in Web.xml?

    Hi,
    I am new to Weblogic and I have an application(Ear file) which was developed
    in Websphere and I am trying to install in weblogic 8.1. I have installed my application
    in Websphere without adding servlet entries in Web.xml and it was working fine.
    I have installed the same Ear file in Tomcat and added the
    following to make all my all servlets work.
    <servlet-mapping>
    <servlet-name>invoker</servlet-name>
    <url-pattern>/servlet/*</url-pattern>
    </servlet-mapping>
    Is there any alternative of doing like that in WebLogic instead of adding each
    and every servlet entry in web.xml because my application has around 200 servlets
    Thanks&Regards,
    Gopi.

    Is Servlet servlet same as weblogic.servlet.ServletServlet?
    Deepak
    Rob Woollen <[email protected]> wrote:
    Yes, you could register weblogic.servlet.ServletServlet.
    -- Rob
    Gopi Krishna wrote:
    Hi,
    I am new to Weblogic and I have an application(Ear file) whichwas developed
    in Websphere and I am trying to install in weblogic 8.1. I have installedmy application
    in Websphere without adding servlet entries in Web.xml and it was workingfine.
    I have installed the same Ear file in Tomcat and added the
    following to make all my all servlets work.
    <servlet-mapping>
    <servlet-name>invoker</servlet-name>
    <url-pattern>/servlet/*</url-pattern>
    </servlet-mapping>
    Is there any alternative of doing like that in WebLogic instead ofadding each
    and every servlet entry in web.xml because my application has around200 servlets
    Thanks&Regards,
    Gopi.

  • We have "dbbackup.exe" in SqlAnywhere in BI 4.1 for running the transaction log truncation/backup. This wasn't present in BOXI 3.1. Any alternative for 3.1?

    1) OS version:
    OS Name : Windows Server 2008 R2
    2) BO version:
        BusinessObjects XI 3.1 SP05.
    3) My question:
        We have “dbbackup.exe” utility in SqlAnywhere in BI 4.1 for running the transaction log ( CMS and Audit) truncation/backup. But the same utility was not present in BOXI 3.1 SP05 for backup.
       Is there an equivalent/alternative utility in BOXI 3.1 SP05 for the same purpose? We use the command below for BI 4.1 Transaction Log truncation/backup:
    E:\Program Files\SAP BusinessObjects\sqlanywhere\BIN64>dbbackup.exe -c "dsn=<System DSN>;uid=< SQL_AW_DBA_UID>;pwd=< SQL_AW_DBA_PASSWD>;host=localhost:2638" -t -x -n "E:
    \Transaction_log_backup\CMS"  
    Any help or clarification on this issue would be greatly appreciated.
    Thanks in advance.
    Conor.

    Hi Conor,
    BOXI 3.1 SP05 does not include the dbbackup utility.  Instead, you issue SQL statements to create the backup.  We published a paper on the subject:
    http://scn.sap.com/docs/DOC-48608
    The paper uses a maintenance plan to schedule regular backups, but you don't need to do that if you want to simply create a backup when required.  To do that (along with transaction log truncation), you run the SQL statement:
    BACKUP DATABASE DIRECTORY 'backup-dir'
    TRANSACTION LOG TRUNCATE;
    For complete details about the BACKUP statement, have a look here:
    http://dcx.sap.com/index.html#1201/en/dbreference/backup-statement.html
    You'll need to execute the statement inside a SQL console - the paper above describes how to get that.
    I hope this helps!
    José Ramos
    Product Manager
    SAP Canada

  • Is there any alternative for FileConnection in j2me

    hi,
    i want to read and write images from phone memory.i use the Fileconnection for that the pbm for using FileConnection v need the support of JSR-75 in mobile.only few mobiles have the support of JSR-75.Is there any possible way to read and write images from phonememory other than FileConnection and also theRMS .
    thanx a lot

    Hi im write this code to open the image file and show that in canvas :
    as a class
    FileBrowser.java as a example on wtk 2.2 with modification
    import java.util.*;
    import java.io.*;
    import javax.microedition.io.*;
    import javax.microedition.io.file.*;
    import javax.microedition.lcdui.*;
    * Demonstration MIDlet for File Connection API. midlet MIDlet implements simple
    * file browser for the filesystem avaliable to the J2ME applications.
    class FileBrowser implements CommandListener {
        private String currDirName;
        private Command view = new Command("View", Command.ITEM, 1);
        private Command creat = new Command("New", Command.ITEM, 2);
        private Command creatOK = new Command("Oke", Command.OK, 1);
        private Command prop = new Command("Properti", Command.ITEM, 2);
        private Command back = new Command("Kembali", Command.BACK, 2);
        private Command exit = new Command("Batal", Command.EXIT, 3);
        private Command cmOpenCrop = new Command("Open File To Crop", Command.ITEM, 1);
        private TextField   nameInput;  // Input field for new file name
        private ChoiceGroup typeInput;  // Input fiels for file type (regular/dir)
        private Midlet midlet;
        private final static String[] attrList = { "Baca", "Tulis", "Sembunyikan" };
        private final static String[] typeList = { "File Biasa", "Direktori" };
        private final static String[] monthList = { "Jan", "Feb", "Mar", "Apr",
        "May", "Jun", "Jul", "Aug",
        "Sep", "Oct", "Nov", "Dec" };
        private Image dirIcon, fileIcon, photoIcon;
        private Image[] iconList;
        /* special string denotes upper directory */
        private final static String UP_DIRECTORY = "..";
        /* special string that denotes apper directory accessible by midlet browser.
         * midlet virtual directory contains all roots.
        private final static String MEGA_ROOT = "/";
        /* separator string as defined by FC specification */
        private final static String SEP_STR = "/";
        /* separator character as defined by FC specification */
        private final static char   SEP = '/';
        public FileBrowser(Midlet midlet) {
            this.midlet = midlet;
            currDirName = MEGA_ROOT;
            try {
                dirIcon = Image.createImage("/icons/dir.png");
            } catch (IOException e) {
                dirIcon = null;
            try {
                photoIcon = Image.createImage("/icons/photo.png");
            } catch (IOException e) {
                photoIcon = null;
            try {
                fileIcon = Image.createImage("/icons/file.png");
            } catch (IOException e) {
                fileIcon = null;
            iconList = new Image[] { fileIcon, dirIcon};
            new Thread(new Runnable() {
             public void run(){
               RunAplikasi(); }
            }).start();
        public void RunAplikasi() {
            try {
                showCurrDir();
            } catch (SecurityException e) {
                Alert alert = new Alert("Error",
                    "You are not authorized to access the restricted API",
                    null, AlertType.ERROR);
                alert.setTimeout(Alert.FOREVER);
                Form form = new Form("Cannot access FileConnection");
                form.append(new StringItem(null,
                    "You cannot run midlet MIDlet with the current permissions. "
                    + "Sign the MIDlet suite, or run it in a different security domain"));
                form.addCommand(exit);
                form.setCommandListener(this);
                Display.getDisplay(midlet).setCurrent(alert, form);
            } catch (Exception e) {
                e.printStackTrace();
        public void commandAction(Command c, Displayable d) {
            if (c == view) {
                List curr = (List)d;
                final String currFile = curr.getString(curr.getSelectedIndex());
                new Thread(new Runnable() {
                    public void run() {
                        if (currFile.endsWith(SEP_STR) || currFile.equals(UP_DIRECTORY)) {
                            traverseDirectory(currFile);
                        } else {
                            // Show file contents
                            showFile(currFile);
                }).start();
            } else if (c == prop) {
                List curr = (List)d;
                String currFile = curr.getString(curr.getSelectedIndex());
                showProperties(currFile);
            } else /*if (c == creat) {
                 //createFile();
            } else if (c == creatOK) {
                String newName = nameInput.getString();
                if (newName == null || newName.equals("")) {
                    Alert alert = new Alert("Error!",
                    "File Name is empty. Please provide file name",
                    null,
                    AlertType.ERROR);
                    alert.setTimeout(Alert.FOREVER);
                    Display.getDisplay(midlet).setCurrent(alert);
                } else {
                    // Create file in a separate thread and disable all commands
                    // except for "exit"
                    executeCreateFile(newName, typeInput.getSelectedIndex() != 0);
                    Display.getDisplay(midlet).getCurrent().removeCommand(creatOK);
                    Display.getDisplay(midlet).getCurrent().removeCommand(back);
            } else*/ if (c == back) {
                showCurrDir();
            } else if (c == exit) {
               midlet.SelesaiAplikasi();
            } else if (c == cmOpenCrop) {
               List curr = (List)d;
               String currFile = curr.getString(curr.getSelectedIndex());
               midlet.SelesaiOpen("file:///"+ currDirName + currFile,0,0);
        //Starts creatFile with another Thread
        private void executeCreateFile(final String name, final boolean val) {
            new Thread(new Runnable(){
                public void run(){
                    createFile(name, val);
            }).start();
         * Show file list in the current directory .
        void showCurrDir() {
            Enumeration e;
            int Panjang,Count,AdaEkstensi,IndexConcat = 0;
            String SimpanEkstensi,SaveTemp;
            char str[] = new char[10];
            Boolean Ketemu = new Boolean(false);
            FileConnection currDir = null;
            List browser;
            try {
                if (MEGA_ROOT.equals(currDirName)) {
                    e = FileSystemRegistry.listRoots();
                     browser = new List(currDirName, List.IMPLICIT);
                } else {
                    currDir = (FileConnection)Connector.open("file://localhost/" +
                                currDirName);
                    e = currDir.list();
                     browser = new List(currDirName, List.IMPLICIT);
                      // not root - draw UP_DIRECTORY
                     browser.append(UP_DIRECTORY, dirIcon);
                     browser.setSelectCommand(view);
                while (e.hasMoreElements()) {
                    String fileName = (String)e.nextElement();
                    if (fileName.charAt(fileName.length()-1) == SEP) {
                        // midlet is directory
                        browser.append(fileName, dirIcon);
                        browser.setSelectCommand(view);
                    } else {
                        // midlet is regular file
                        //cari tahu si ekstensi jika ada
                        Panjang = fileName.length();                
                        Count = 0;
                        AdaEkstensi = 0;
                        while (Count < Panjang && AdaEkstensi == 0)
                          if (fileName.charAt(Count) == '.')
                            AdaEkstensi = 1;
                            IndexConcat = Count+1;
                          Count++;
                        if (AdaEkstensi == 1)
                          //cari tahu apakah si ekstensi gambar atau bukan
                          SimpanEkstensi = new String("");
                          //SimpanEkstensi.concat(fileName.substring(IndexConcat,Panjang));
                          fileName.getChars(IndexConcat,Panjang,str,0);
                          if (str[0] == 'p' && str[1] == 'n' && str[2] == 'g'){
                             browser.append(fileName, photoIcon);
                             browser.addCommand(cmOpenCrop);
                             browser.setSelectCommand(view);
                          } else
                          if (str[0] == 'j' && str[1] == 'p' && str[2] == 'g'){
                             browser.append(fileName, photoIcon);
                             browser.addCommand(cmOpenCrop);
                             browser.setSelectCommand(view);
                          } else {
                             browser.append(fileName, fileIcon);
                             browser.setSelectCommand(view);
                        } else
                          browser.append(fileName, fileIcon);
                          browser.setSelectCommand(view);
                browser.addCommand(prop);
                //Do not allow creating files/directories beside root
                if (!MEGA_ROOT.equals(currDirName)) {
                    //browser.addCommand(creat);
                browser.addCommand(exit);
                browser.setCommandListener(this);
                if (currDir != null) {
                    currDir.close();
                Display.getDisplay(midlet).setCurrent(browser);
            } catch (IOException ioe) {
                ioe.printStackTrace();
        void traverseDirectory(String fileName) {
        /* In case of directory just change the current directory
         * and show it
            if (currDirName.equals(MEGA_ROOT)) {
                if (fileName.equals(UP_DIRECTORY)) {
                    // can not go up from MEGA_ROOT
                    return;
                currDirName = fileName;
            } else if (fileName.equals(UP_DIRECTORY)) {
                // Go up one directory
                // TODO use setFileConnection when implemented
                int i = currDirName.lastIndexOf(SEP, currDirName.length()-2);
                if (i != -1) {
                    currDirName = currDirName.substring(0, i+1);
                } else {
                    currDirName = MEGA_ROOT;
            } else {
                currDirName = currDirName + fileName;
            showCurrDir();
        void showFile(String fileName) {
            try {
                FileConnection fc = (FileConnection)
                    Connector.open("file://localhost/" + currDirName + fileName);
                if (!fc.exists()) {
                    throw new IOException("File does not exists");
                InputStream fis = fc.openInputStream();
                byte[] b = new byte[1024];
                int length = fis.read(b, 0, 1024);
                fis.close();
                fc.close();
                TextBox viewer = new TextBox("View File: " + fileName, null, 1024,
                TextField.ANY | TextField.UNEDITABLE);
                viewer.addCommand(back);
                viewer.addCommand(exit);
                viewer.setCommandListener(this);
                if (length > 0) {
                    viewer.setString(new String(b, 0, length));
                Display.getDisplay(midlet).setCurrent(viewer);
            } catch (Exception e) {
                Alert alert = new Alert("Error!",
                "Can not access file " + fileName
                + " in directory " + currDirName
                + "\nException: " + e.getMessage(),
                null,
                AlertType.ERROR);
                alert.setTimeout(Alert.FOREVER);
                Display.getDisplay(midlet).setCurrent(alert);
        void showProperties(String fileName) {
            try {
                if (fileName.equals(UP_DIRECTORY)) {
                    return;
                FileConnection fc = (FileConnection)Connector.open("file://localhost/"
                                    + currDirName + fileName);
                if (!fc.exists()) {
                    throw new IOException("File does not exists");
                Form props = new Form("Properties: " + fileName);
                ChoiceGroup attrs = new ChoiceGroup("Attributes:", Choice.MULTIPLE,
                attrList, null);
                attrs.setSelectedFlags(new boolean[] {fc.canRead(),
                fc.canWrite(),
                fc.isHidden()});
                props.append(new StringItem("Location:", currDirName));
                props.append(new StringItem("Type: ", fc.isDirectory() ?
                "Directory": "Regular File"));
                props.append(new StringItem("Modified:",myDate(fc.lastModified())));       
                props.append(attrs);
                props.addCommand(back);
                props.addCommand(exit);
                props.setCommandListener(this);
                fc.close();
                Display.getDisplay(midlet).setCurrent(props);
            } catch (Exception e) {
                Alert alert = new Alert("Error!",
                "Can not access file " + fileName
                + " in directory " + currDirName
                + "\nException: " + e.getMessage(),
                null,
                AlertType.ERROR);
                alert.setTimeout(Alert.FOREVER);
                Display.getDisplay(midlet).setCurrent(alert);
        void createFile() {
            Form creator = new Form("New File");
            nameInput = new TextField("Enter Name", null, 256, TextField.ANY);
            typeInput = new ChoiceGroup("Enter File Type", Choice.EXCLUSIVE,
            typeList, iconList);
            creator.append(nameInput);
            creator.append(typeInput);
            //creator.addCommand(creatOK);
            creator.addCommand(back);
            creator.addCommand(exit);
            creator.setCommandListener(this);
            Display.getDisplay(midlet).setCurrent(creator);
        void createFile(String newName, boolean isDirectory) {
            try {
                FileConnection fc = (FileConnection) Connector.open("file:///" +
                currDirName +
                newName);
                if (isDirectory) {
                    fc.mkdir();
                } else {
                    fc.create();
                showCurrDir();
            } catch (Exception e) {
                String s = "Can not create file '" + newName + "'";
                if (e.getMessage() != null && e.getMessage().length() > 0) {
                    s += "\n" + e;
                Alert alert = new Alert("Error!", s, null, AlertType.ERROR);        
                alert.setTimeout(Alert.FOREVER);
                Display.getDisplay(midlet).setCurrent(alert);
                // Restore the commands that were removed in commandAction()
                Display.getDisplay(midlet).getCurrent().addCommand(creatOK);
                Display.getDisplay(midlet).getCurrent().addCommand(back);
        private String myDate(long time) {
            Calendar cal = Calendar.getInstance();
            cal.setTime(new Date(time));
            StringBuffer sb = new StringBuffer();
            sb.append(cal.get(Calendar.HOUR_OF_DAY));
            sb.append(':');
            sb.append(cal.get(Calendar.MINUTE));
            sb.append(':');
            sb.append(cal.get(Calendar.SECOND));
            sb.append(',');
            sb.append(' ');
            sb.append(cal.get(Calendar.DAY_OF_MONTH));
            sb.append(' ');
            sb.append(monthList[cal.get(Calendar.MONTH)]);
            sb.append(' ');
            sb.append(cal.get(Calendar.YEAR));
            return sb.toString();
        public void view_image(String FileName)
    }and show it on class ClipCanvas
    Class ClipCanvas
    Merupakan Class yang di gunakan untuk membuat area
    Clip Mata
    import javax.microedition.lcdui.*;
    import java.util.*;
    import java.io.*;
    import java.lang.Math.*;
    import javax.microedition.io.file.*;
    import javax.microedition.io.*;
    class ClipCanvas extends Canvas implements CommandListener, Runnable
      private  Command cmSave = new Command("Save Image Area Crop",Command.SCREEN,1);
      private  Command cmSendMMS = new Command("Send MMS",Command.SCREEN,1);
      private  Command cmHelp = new Command("Help",Command.SCREEN,1);
      private  Command cmExit = new Command("Keluar", Command.SCREEN, 1);
      private Midlet midlet;      // Main midlet
      private Image im,ImageCrop,TempImage = null; // Image to display
      //private Graphics TempGraphics;
      private Random random;    // Get random number
      private int clipx = 0,  clipy = 0,  // View port
                  clipw = 200, cliph = 200; // (clipping region)
      private int old_clipx = 0, old_clipy = 0; // Last clipping region
      private int awalx,awaly;
      private String NamaFile;
      //konstruktor
      public ClipCanvas(Midlet midlet,final String NamaFile,int awalx,int awaly)
        this.midlet = midlet;
        this.NamaFile = NamaFile;
        // Create exit command & listen for events
        this.addCommand(cmSave);
        this.addCommand(cmSendMMS);
        this.addCommand(cmHelp);
        this.addCommand(cmExit);
        // Get random values for starting point
        random = new java.util.Random();
        // Make sure the entire clipping region is
        // visible on the display 
           this.clipx = Math.min((getWidth() - clipw),
                         (random.nextInt() >>> 1) % getWidth());
           this.clipy = Math.min((getHeight() - cliph),
                         (random.nextInt() >>> 1) % getHeight());
          // Create immutable image
               new Thread(new Runnable() {
               public void run(){
               //String NamaFile = NamaFile1;
               InputConnection fileConn = null;
               DataInputStream dis = null;
               try{
               fileConn = (InputConnection)Connector.open(NamaFile,Connector.READ);
               dis = fileConn.openDataInputStream();
               im = Image.createImage(dis); 
               TempImage = Image.createImage(im.getWidth(),im.getHeight());
               dis.close();
                catch (java.io.IOException e)
                  System.err.println("Unable to locate or read .png file");
                  e.printStackTrace();
            }).start();
          this.awalx = awalx;
          this.awaly = awaly;
        setCommandListener(this);
      protected void paint(Graphics g)
        if (im != null)
          //putihin layar
          g.setColor(0xFFFFFF);
          g.fillRect(0,0,getWidth(),getHeight());
          // Clear only the previous clipping region
          g.setColor(255, 255, 255);
          g.fillRect(old_clipx, old_clipy, clipw, cliph);     
          g.drawRect(old_clipx, old_clipy, clipw-1, cliph-1);
          g.drawRect(old_clipx+92, old_clipy+92, 8,8);
          // Set the new clipping region
          g.setColor(255, 255, 255);
          g.setClip(clipx, clipy, clipw, cliph);
          // Draw image 
          g.drawImage(im, awalx, awaly, Graphics.LEFT | Graphics.TOP);
          //draw si rectangle kecil
          g.setColor(0xFF001E);
          g.drawRect(clipx,clipy,clipw-1,cliph-1);
          g.drawRect(clipx+92,clipy+92,8,8);
          Graphics TempGraphics = TempImage.getGraphics();
          TempGraphics.drawImage(im,awalx, awaly,Graphics.LEFT | Graphics.TOP);
        } else
          //putihin layar
          g.setColor(0xFFFFFF);
          g.fillRect(0,0,getWidth(),getHeight());
          //draw si rectangle kecil
          g.setColor(0xFF001E);
          g.drawString("Tekan Tombol Arah !",clipx,clipy,Graphics.LEFT | Graphics.TOP);
      public void commandAction(Command c, Displayable d)
        if (c == cmExit)
          midlet.SelesaiAplikasi();
        else
        if (c == cmSave){
          try {
             ImageCrop = Image.createImage(TempImage,clipx,clipy,clipw,cliph,0);
          } catch(NullPointerException ioe){
            System.err.println("Halo !!!!!");
            return;
          midlet.SaveImage(ImageCrop,NamaFile,awalx,awaly);
      protected void keyPressed(int keyCode)
        // Save the last clipping region
        old_clipx = clipx;
        old_clipy = clipy;
        switch (getGameAction(keyCode))
          case UP:
            // Move clipping region up 3 pixels
            if (clipy > 0)
              clipy = Math.max(0, clipy - 3);
            else
              if (awaly+3 <=0)
                 awaly += 3;
            break;
          case DOWN:
            // Move clipping region down 3 pixels     
            if (clipy + cliph < getHeight())
              clipy = Math.min(getHeight(), clipy + 3);
            else
            if (im.getHeight() > getHeight()){
              if (awaly-3 >=(-1*(im.getHeight()-getHeight())))
                 awaly -= 3;
            break;
          case LEFT:
           // Move clipping region left 3 pixels
           if (clipx > 0)
              clipx = Math.max(0, clipx - 3);
            else
                 if (awalx + 3 <=0)
                   awalx += 3;
          break;
          case RIGHT:
            // Move clipping region right 3 pixels     
            if (clipx + clipw < getWidth())
              clipx = Math.min(getWidth(), clipx + 3);
         else
              if (im.getWidth() > getWidth()){
             if (awalx - 3 >= -1*(im.getWidth()-getWidth()))
               awalx -= 3;
           break;
          case FIRE:
          try {
             ImageCrop = Image.createImage(TempImage,clipx,clipy,clipw,cliph,0);
          } catch(NullPointerException ioe){
            System.err.println("Halo !!!!!");
            return;
          midlet.SaveImage(ImageCrop,NamaFile,awalx,awaly);       
          break;
        repaint();
      public void run(){
    }

  • Any Comments for Somebody returning to Java after 4 Years.

    I am and was a very good loover of Java. I have been working on Microsoft platform from last 4 Years. I dont know some thing came in my mind and wanted to update my skills of Java again.
    Is there any one who can recommend me that how I can have a complete review of Java from the Last 4 Years.Help much appreciated.

    u specify that u r in .net platform,
    nice..
    so u know the basic concepts of oops .
    so u just refer core java , its related to c#,Since the OP also specified that he was already a Java developer 4 years ago. I'm pretty sure he knew the basics of OOP before starting .NET.
    then u go for j2ee (jsp,servlets, etc....)
    some what different ,
    its also easy to learn.. if u know asp.net , jsp is
    very easy ...
    then struts framework
    or
    ejb
    after finishing this .. u to member of java...JSP/servlets are Web components and hence their use does not make sense outside of a Web environment , Struts is kind of pass?, and EJBs are business components which have their use only under specific conditions.
    All of the above isn't Core Java, and Java is not limited to the above.

Maybe you are looking for

  • Install R12  on Windows XP

    Gurus- I have a Windows XP sp2 , 1gb RAM and 40 GB internal HD with 500 gb External HDD. Trying to install R12 on windows. Also I have all the set of CDs/DVDs sent by Oracle. Please advice on below items 1. What are the required CDs?DVDS that I need

  • ORA-6502 - Help!

    I keep receiving this error: ORA-6502 - PL/SQL: numeric or value error: character string buffer is too small Listed below is the code: Error lines are Line 1 and 12. create or replace function overpunch (ora_val in varchar2) return varchar2 is result

  • Low performances when querying data dictionary Oracle 11g

    Query: SELECT ucc_fk.column_name FK_COLUMN_NAME, ucc_pk.table_name PK_TABLE_NAME, ucc_pk.column_name PK_COLUMN_NAME FROM user_constraints uc_fk INNER JOIN user_cons_columns ucc_fk ON (ucc_fk.constraint_name = uc_fk.constraint_name) INNER JOIN user_co

  • Preview messages in taskbar

    Hi, with the latest update 7.1.0.105 preview incoming messages are appearing in the taskbar (not always, but from time to time). Looking at settings, I have this switched off (on general and on notification Preferences). How do I fix that ?  Br, N So

  • I have a 2004 Mac Mini. Can I convert it to just a a storage drive?

    I now have a Mac Book Pro and i want to use my old Mac Mini as a storage device. Has anyone done this?