Is it possible to make a code editor in Java?

I'm new to java and so i'd like to know if it would be possible to make a simple code editor for Mobile Phones with Java.
The code editor will be for GML.
I'd like to make it so that the code can be easily edited on a wide range Mobile phones (not necissarily smart phones).
If this is possible, I would greatly appreaciate any help or advice. Thanks.
skinnyeddy

TuringPest wrote:
Hippolyte wrote:
skinnyeddy wrote:
"first list the areas in which you are proficient" - I'm not. I thought it would be easy to make a simple text/code editor in java without any experience. That was a bit of a mistake. Looks like I'll have to learn the hard way :SIMHO, one should woodshed it, work on programming basics and object-oriented programming fundamentals, in Java for at least one year before attempting to write any GUI code. Even day in this forum we see what code looks like when this advice is not followed.my first java code 5 years ago was an applet with a changing 2d function being animated.
it worked after 2 grueling days and i was so happy because visual feedback was my only motivation.
so its hard to say. granted, my code was awful for a long time.I'm thinking of the guy last week who had Swing+JDBC code and kept pestering for help on an obvious syntax error (he was invoking a method with no arguments when it was defined to take a String array) and for the life of him, he couldn't see the error or understand the error message. Posters kept telling him to learn the fundamentals first, but he was stubborn and kept demanding someone fix his syntax error...

Similar Messages

  • Is it possible to write an HTML editor using Java?

    I have this final year project (for my degree), where I need to use Java to write an HTML editor.
    It doesn't have to be fancy or anything, just need to be able to generate HTML files from the GUI frontend where text, images and tables will be created.
    I'm new to Java, and I'm having problem with it.
    Please help, I only need to know whether it's possible, and possible a little guideline on how to go about it, please?
    Terry

    http://www.hexidec.com/ekit.php

  • Is it possible to make an Autostart application in Java?

    Hi,
    I have some stuff that I would like to burn on a CD and I thought that it would be very nice if I could put an autostart application on the same CD which would start as soon as I put this CD in CD-drive. I dont know whether this can be done in Java. I am using Excelsior Jet so I would make this as an usual autostart.exe application.
    Thanx

    The only thing you have to do, is to put the JRE on the CD as well. Say in sub-directory jre (you can copy the jre folder from your JDK installation)
    I'm not sure how the autostart stuff works, but as far as I can remember it's just the name of an exe. So you could put someting like
    jre\javaw.exe -jar MyApplication.jar
    into the autostart definition

  • Is it possible to make non-virtual calls in Java?

    Hi all,
    I'd like to hear some expert's opinion about this: if I mark a class as final, its method call will not be virtual? that is, there won't be "late binding" in the Virtual Machine? or still the JVM binds its calls at runtime ??
    I'm asking this because I had a long discussion with a guy programming in C++ that claims that ALL java calls are virtual, while on the other hand in C++ ONLY those declared as "virtual" are in fact virtual call.
    So he says that this is the reason why Java will be always slower then C++.
    I'd like to hear your opinion/feedback
    Regards
    Francesco

    About this being "the reason" why C++ will
    always be faster than Java: it's not. The main reason
    C++ is faster than Java is that Java needs to run its
    code through the virtual machine...No, that's not a reason for Java to be slower. In practice, Java code is compiled to native code on the fly, so it does not "run its code through the virtual machine."
    One main reason why Java is slower than C++ is that it keeps all objects on the heap instead of on the stack. Take a look at this article on optimizing code: http://www.pgh.net/~newcomer/optimization.htm Less than halfway through the article, the author describes a performance bottleneck in a memory allocation routine. By changing the memory to be allocated on the stack instead of on the heap, the program ran about twice as fast.
    Allocating memory on the heap is one of the slowest operations in Java. Programs that allocate lots of objects are going to be slow.

  • Is it possible to make wrap up codes mandatory?

    All,
    Is it possible to make wrap up codes mandatory as reason codes? What I mean is, when users have to change their status to 'Not Ready' they HAVE to set a reason code for...now, is it possible to do the same with wrap up codes?
    THanks,
    Thiago

    Hi Thiago,
    Assigning Wrap-up Data Descriptions
    Wrap-up data descriptions can be assigned at the global and at the work flow group level. Global wrap-up data descriptions are available to all agents. Work flow group level wrap-up data descriptions are available only to the agents in that specific work flow group.
    Please refer the section "Wrap-up Data" from page 54 onwards in the below link,
    http://www.cisco.com/en/US/docs/voice_ip_comm/cust_contact/contact_center/crs/express_9_0/user/guide/cda90ccxug.pdf
    Hope this helps.
    Anand
    Please rate helpful posts !!

  • Is it possible to make department field mandatory in T.code KS01

    Hi all,
    I need to make Department field mandatroy in Transaction 'KS01' Create cost center
    Is it possible to make department field mandatory.
    Pls suggest me if any possibilities.
    Thanks & Regards
    Bhaskar

    Hi,
    To add to above, Just check this point:
    SAP does not support implementation of new fields exits from ECC 6.0. It will still support the existing field exits in the system
    Also check if you can create the field exits from program RSMODPRF..
    Regards
    Shiva

  • Is it possible to make an interactive symbol?

    I'm trying to make a relay for use in multisim, and I don't quite understand how the symbol editor works, but is it possible to make an interactive symbol, like a switch that opens/closes ?
    I think I should be able to use spice data from a relay(modified) to get mine to work?
    [CODE]
    * !!!BEGIN-INTERACT
    *  : Ion           0.0048   ;
    *  : Ioff           0.0016 ;
    *  0        constant  S_OFF
    *  1        constant  S_ON
    *  0.0      VARIABLE   r1Cur
    *  .( Loading the relay 1B form ... ) cr
    *  : PWR_OFF
    *      S_OFF  ==>_*animation_state
    *  : PWR_ON
    *      S_ON   ==>_*animation_state
    *  PWR_OFF
    *  :BEGIN_PLOT
    *     PWR_OFF
    *  UT_DATA
    *     GET_INSTANCE Vsource ::V V  i  ==>_*r1Cur
    *      Ion    *r1Cur    f.<=   if
    *         PWR_ON
    *     else   Ioff *r1Cur  f.>=   if
    *         PWR_OFF
    *     endif endif
    * : BEGIN_ANALYSIS UPDATE_SETTINGS;
    * !!!END-INTERACT
    .SUBCKT DPDT_RELAY C1 C2 NO1 COM1 NC1 NO2 COM2 NC2 PARAMS: RCOIL=500 LCOIL=0.048 RON=1m
    RC C1 C3 RCOIL
    LC C3 C4 LCOIL
    XK4 C4 C5 COM2 NC2 RELAY (RON={RON} ROFF=1E12)
    XK2 C5 C6 COM1 NC1 RELAY (RON={RON} ROFF=1E12)
    XK3 C6 C7 NO2 COM2 RELAY (RON=1E12 ROFF={RON})
    XK1 C7 C2 NO1 COM1 RELAY (RON=1E12 ROFF={RON})
    .ENDS
    .SUBCKT RELAY 1 2 3 4 PARAMS: RON=1m ROFF=1E12
    V 1 2 0
    W0 3 4 V NC_contact
    .MODEL NC_contact ISWITCH (Ion=0.0048 Ioff=0.0016 Ron={RON} Roff={ROFF})
    .ENDS[/CODE]

    Thats precisely what I did, and made a symbol for it but it isn't working quite right so maybe the spice data is wrong.
    I originally made a circuit using 2xSPDT NO and 2xSPDT NC relays to make a DPDT. I used that spice data and had someone help me cut it down into a single model.
    This is what I ended up with.
    *## Multisim Component U1 ##*
    * !!!BEGIN-INTERACT
    *  2.0 constant high
    *  0.0 constant low
    *  2   constant max_states
    *  low VARIABLE volt
    *  :MAP_KEYBOARD_INPUT ++++K1 1 ++++k1 -1 ;
    *  : UPDATE_SETTINGS
    *     *animation_state max_states  low  high  STATE  volt
    *     GRADUAL_CHANGE_AT_RUN  
    *  :KEYBOARD_INPUT locals| shift_state |
    *     shift_state *animation_state max_states NEXT_STATE_WRAP
    *                                             ==>_*animation_state
    *     UPDATE_SETTINGS
    *  :GRADUAL_CHANGE_AT_RUN locals| ref value |
    *     value  SET_INSTANCE Vsource ::V  V2 dc
    *  :BEGIN_PLOT
    *     UPDATE_SETTINGS
    *  : INIT_IMOUSE_OPTION
    *    1 0 4 IMOUSE_SET
    *  : GET_IMOUSE_SUBCOMPS ( -- [iIdxN ... iIdx1] )
    *    1
    *  : ON_SUBCOMP_IMOUSE_EVENT locals| eEventType nOptions iSubCompIdx |
    *    eEventType 2 = if
    *      -1
    *      -1 KEYBOARD_INPUT
    *    else
    *      0
    *    endif
    *  ( Initialize the settings )
    *   UPDATE_SETTINGS
    *   INIT_IMOUSE_OPTION
    *  :BEGIN_ANALYSIS
    *    UPDATE_SETTINGS
    * !!!END-INTERACT
    .SUBCKT DPDT_Relay  COIL+ COIL- NO1 COM1 NC1 NO2 COM2 NC2 PARAMS: RCOIL=500 LCOIL=0.048 RON=1m
    RC C1 C3 RCOIL
    LC C3 C4 LCOIL
    XK4 C4 C5 COM2 NC2 RELAY (RON={RON} ROFF=1E12)
    XK2 C5 C6 COM1 NC1 RELAY (RON={RON} ROFF=1E12)
    XK3 C6 C7 NO2 COM2 RELAY (RON=1E12 ROFF={RON})
    XK1 C7 C2 NO1 COM1 RELAY (RON=1E12 ROFF={RON})
    .ENDS
    .SUBCKT RELAY 1 2 3 4 PARAMS: RON=1m ROFF=1E12
    V 1 2 0
    W0 3 4 V NC_contact
    .MODEL NC_contact ISWITCH (Ion=0.0048 Ioff=0.0016 Ron={RON} Roff={ROFF})
    .ENDS

  • How to change background color in code editor?

    Hi. Some of the pre-selectable Schemes under Tools->Preferences->Code Editor->PL/SQL Syntax Color (e. g. Ocean) have a "global" default background color that applies to all styles. How can I edit this color for my own color scheme?
    (SQL Developer version 3.1.07)

    Jeff,
    if you try to change all the plsql keywords to the same background color (that is not either white or black or blue) via the options panel in SQL Developer (Code Editor > PLSQL syntax colors), you will get the new background color in the worksheet only for the areas with plsql text, while the areas without any text will have the same background color as the base color scheme you started with. This means that there is no way to change the "general background" color via the options panel, but you have to use the same background color of one of the predefined color schemes.
    This seems to me a bug, but probably it's not considered high priority, so it will not be fixed for the time being.
    I would like to stress the fact that being able to change the color scheme of the development environment that you use every day about 8 hours a day can make quite a difference on your eyes at the end of the day.
    Thanks,
    Paolo

  • How do I make this code generate a new pro when the "NEXT" button is pushed

    How do I make this code generate a new set of problem when the "NEXT" Button is pushed
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    /* Figure out how to create a new set of problms
    * Type a list of specifications, include a list of test cases
    * DONE :]
    package javaapplication1;
    import java.awt.GridLayout;
    import java.awt.Window;
    import javax.swing.*;
    import java.awt.event.*;
    * @author Baba Akinlolu -
    class Grid extends JFrame{
        int done = 0;
        final int score = 0;
        final int total = 0;           
            //Create Panels
            JPanel p2 = new JPanel();
            JPanel p3 = new JPanel();
            final JPanel p1 = new JPanel();
            //Create Radio buttons & group them
            ButtonGroup group = new ButtonGroup();
            final JRadioButton ADD = new JRadioButton("Addition");
            final JRadioButton SUB = new JRadioButton("Subtraction");
            final JRadioButton MUL = new JRadioButton("Multiplication");
            final JRadioButton DIV = new JRadioButton("Division");
            //Create buttons
            JButton NEXT = new JButton("NEXT");
            JButton END = new JButton("End");
            //Create Labels
            JLabel l1 = new JLabel("First num");
            JLabel l2 = new JLabel("Second num");
            JLabel l3 = new JLabel("Answer:");
            JLabel l4 = new JLabel("Score:");
            final JLabel l5 = new JLabel("");
            JLabel l6 = new JLabel("/");
            final JLabel l7 = new JLabel("");
            //Create Textfields
            final JTextField number = new JTextField(Generator1());
            final JTextField number2 = new JTextField(Generator1());
            final JTextField answer = new JTextField(5);
        Grid(){
            setLayout(new GridLayout(4, 4, 2 , 2));
            p2.add(ADD);
            p2.add(SUB);
            group.add(ADD);
            group.add(SUB);
            group.add(MUL);
            group.add(DIV);
            p2.add(ADD);
            p2.add(SUB);
            p2.add(DIV);
            p2.add(MUL);
            //Add to panels
            p1.add(l1);
            p1.add(number);
            p1.add(l2);
            p1.add(number2);
            p1.add(l3);
            p1.add(answer);
            p1.add(l4);
            p1.add(l5);
            p1.add(l6);
            p1.add(l7);
            p3.add(NEXT);
            p3.add(END);
            //Add panels
            add(p2);
            add(p1);
            add(p3);
            //Create Listners
            Listeners();
    void Listeners(){
          NEXT.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent e) {
             int answer1 = 0;
             //Grab the numbers entered
             int numm1 = Integer.parseInt(number.getText());
             int numm2 = Integer.parseInt(number2.getText());
             int nummsanswer = Integer.parseInt(answer.getText());
             //Set the score and total into new variabls
             int nummscore = score;
             int nummtotal = total;
             //Check if the add radio button is selected if so add
             if (ADD.isSelected() == true){
                 answer1 = numm1 + numm2;
             //otherwise check if the subtract button is selected if so subtract
             else if (SUB.isSelected() == true){
                 answer1 = numm1 - numm2;
             //check if the multiplication button is selected if so multiply
             else if (MUL.isSelected() == true){
                 answer1 = numm1 * numm2;
             //check if the division button is selected if so divide
             else if (DIV.isSelected() == true){
                 answer1 = numm1 / numm2;
             //If the answer user entered is the same with th true answer
             if (nummsanswer == answer1){
                 //add to the total and score
                 nummtotal += 1;
                 nummscore += 1;
                 //Convert the input back to String
                 String newscore = String.valueOf(nummscore);
                 String newtotal = String.valueOf(nummtotal);
                 //Set the text
                 l5.setText(newscore);
                 l7.setText(newtotal);
             //Otherwise just increase the total counter
             else {
                 nummtotal += 1;
                 String newtotal = String.valueOf(nummtotal);
                 l7.setText(newtotal);
      //Create End listener
    END.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent e) {
            // get the root window and call dispose on it
            Window win = SwingUtilities.getWindowAncestor(p1);
            win.dispose();
    //new Grid();
    String Generator1(){
         int randomnum;
         randomnum = (1 + (int)(Math.random() * 100));
         String randomnumm = String.valueOf(randomnum);
         return randomnumm;
    public class Main {
         * @param args the command line arguments
        public static void main(String[] args) {
            // TODO code application logic here
            JFrame frame = new Grid();
            frame.setTitle("Flashcard Testing");
            frame.setSize(500, 200);
            frame.setLocationRelativeTo(null);
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setVisible(true);
    }Edited by: SirSaula on Dec 7, 2009 10:17 AM

    Not only are you continuing to post in the wrong forum but now you are multiposting: [http://forums.sun.com/thread.jspa?threadID=5418935]
    If people haven't answered you other posting its probably because we don't understand the question. Quit cluttering the forum by asking the same question over and over and then next time you have a new question post it in the proper forum. Your first posting was moved becuase you didn't post it properly.

  • Is it possible to make an OSB Proxy service offline/online based on BS

    JMS QUEUE
    |
    |_____ Proxy Service <-------->Business Service <---------> External System URL
    I have a configuration as shown above.
    There is a way to make the Business Service offline/online based on the External system URL being offline/online by setting the
    Business service-> Operational Settings->Offline Endpoint URIs with a timesatmp.
    Is it possible to make the state of the proxy service to enabled/disabled based on this state of BS based on external enpoint URI?
    This is a requirement such that the messages in the JMS queue doesnot get lost or consumed when the external system is offline.
    Thanks in Advance!

    I have thought about this. There are some problems here....
    I cannot use the same proxy to invoke the java callout and then based on the code or handler disable it, since
    1) i would have no way to enable back the proxy again.
    2) Also there is some amount of message loss.
    So i will have to use another proxy to do the same, but in this case
    1) what would be the trigger to this proxy?
    2) And how often do i invoke the java callout to see if the URI is up or not? (wouldnt that affect the performance?)
    I am just wondering why did they give an offline URI option in the business service and no similar option in the proxy service, Any Idea?
    Thanks

  • Is it possible to make an iWeb site accessible to mobile phones? (in Japan)

    Is it possible to make an iWeb site accessible to mobile phones? (I'm in Japan)
    I've tried making a tiny site but my own phone (au A5516T by Toshiba) can't display it.
    The URL is accepted but displays just a white blank screen.
    I can't see anything about it in this iWeb forum or iWeb Help. Which I guess means that either it's impossible or that it's so elementary I shouldn't have to ask!
    Is there some special code involved?
    Any hints much appreciated. Thanks.
    Simon

    Try these articles: Put Your Content in My Pocket -- "While these articles are specifically targeted at the iPhone, many of the ideas and concepts I’m presenting can be useful and effective with other mobile devices."...
    http://alistapart.com/articles/putyourcontentinmypocket
    http://www.alistapart.com/articles/putyourcontentinmypocketpart2/
    By the way, you can read that "Apple Meets With DoCoMo, Softbank On Launching iPhone in Japan" here:

  • Help selecting non-continuous text in code editor, please?

    I'm editing a list... I want to make a lot of selections at once and  edit them at the same time.  You know how you can go through files in  windows and ctrl+click/select files to move around?  I could do this in Notepad++ so I guess I could switch back and forth but that would be a big pain.  Any ideas?

    Depending on what the edit is, you could use the Find & Replace (CRTL+F) to just click your way through the list items. If the list is all different items, you'll probably have to do it in a word processor. I don't know any way to do it in the code editor.

  • Few featues in JDev 10.1.3 code editor

    Few code editor feautes I would like to see in JDev 10.1.3
    Reference : http://help.eclipse.org/help30/topic/org.eclipse.jdt.doc.user/whatsNew/jdt_whatsnew.html
    1) a method parameter, to assign it to a new field
    2) a method declaration. to create the method in a supertype
    3) highlight source code according to its semantics (for example: static fields, local variables, static method invocations
    4) Highlight method exit points (really helps)
    5) Mark locations of thrown exceptions (Easy look up of exceptions)
    6) Parameter mismatches in constructors or methods
    ex: Quick fixes offerd to cast, swap, add, or remove arguments or method parameters.

    project properties -> run debug configuration-> tools settings -> Make project when run

  • Is it possible to make a fillable form have variable fields - so if you select a radio button it triggers a different form field to be seen depending on which radio button is selected??

    Is it possible to make a fillable form have variable fields - so if you select a radio button it triggers a different form field to be seen depending on which radio button is selected??

    Yes, one needs to use some custom JavaScript code to control the other fields' properties.
    Disabling (graying-out) Form Fields by Thom Parker

  • SQL Developer 3.0.03  Code Editor Save Actions missing from menu

    I had just gotten a new notebook and installed latest version of Oracle SQL Developer 3.0.03. Seems Auto Save settings are enabled by default. I am prompted each time I switch off from SQL Dev to another app or window to Save the SQL code I am testing. I don't want to necessarily save it each time so I have to save or cancel each time I switch windows. I checked the documentation Help menu and it directed me to the Code Editor section > Save Actions menu to adjust settings. This category does not exist (or is not visible for me) to check settings and make changes. I am Admin on machine and installer of the app so not sure if it is some security setting I am not aware of. Or is this the wrong Help documentation for this version?
    This version is much different from older version I was using. Any thougts on this before I remove and re-install an older version?
    Thanks,
    Joe

    many thanks for your reply jim. i see the settings for 'prompt for save file on close'. this is checked by default and that is fine. if i have a sql worksheet open, as soon as i switch to another window (i.e. visual studio app), i get prompted to save the file. that is the strange behavior i've been seeing with this version.
    i will try to update to 3.0.04 and see if that resolves. i appreciate your help.

Maybe you are looking for