Very simple java project (help please)
Hello. For a project I have to somehow use MouseListener to make something. My idea was to have a rectangle in which a circle (hockey puck) follows the user's mouse and whenever the user places the circle into a certain area the count goes up by one (like a game of hockey). If someone could give me some idea as to where I should start it would be greatly appreciated.
My thanks
This is alwyas [a good place to start|http://java.sun.com/developer/onlineTraining/] when you don't have a clue what's going on, and here if you need specifics on MouseListener. And to get movement, then you'll probably want to look here.
Once you have some code and specific questions, literally almost everyone on here will be willing to help you further along the way. When you post code, please use code tags.
Similar Messages
-
Simple java question, help please
please help
-i am just starting out in java and im havin an early problem. Im trying to run a small java script from a commant prompt but im getting the following error after i enter this command at my prompt
c:\javatest>javac HelloARP.java
javac is not as an internal or external command, operable program or batch file.
when i enter
c:\java -version
i get the following message: registry key software\javasoft\java runtime enviornment\current version has value of 1.1 but 1.4 is requiured
error: could not find java.dll
error: could not find java 2 runtime enviornment
-im sure this is a simple error on my part. all im trying to do is run my first lil program that i saved in notepad, its only 5 lines long. here is the lil test program im trying to execute
class HelloARP {
public static void main (String[] arguments) {
System.out.println("What's good ARP?");
- all responses and help are welcomed. Thank you ahead of time for anyone that can help me get started.Hi
First of all uninstall your current JDK installation, if you can get to the registry delete the registry entries for the old version of java which was there on your machine.
Now do a fresh install of your j2sdk1.4.1, make sure that you will install the JRE with the J2SDK1.4.1.
Once you are done, set your classpath in autoexec.bat if you are using Windows 95/98
or set your environment variables if you are using Win NT/2000/XP.
If using solaris or other unix flavors see the included installation instructions provided.
Let me if you face the same problem.
Thanks
Swaraj -
after mixing a project i select bounce and burn the disc that is burned plays on any cd player but when i try to burn the wav or mp3 file that was created the resulting disc will only play in a computer this also happens with video projects help please are there any settings i need to alter as it seems the wav or mp3 file i ceated is being converted to a data file somewhere between the folder and disc drive
Same thing for a movie file.. If you want to play back the movie via a DVD and a DVD player you must create a Movie DVD and not just burn files to a data DVD... as Data DVDs are just storage devices for files and therefore will only work with computers...
Movie DVDs are special formats that include things like menus and special file formats.. so they can playback via a DVD Player...
You will need a 3rd party DVD Burning app like Toast which is what i actually use.... or the more popular DVD Creator app...to create and then burn a Movie DVD that will playback on a DVD Player....
https://answers.yahoo.com/question/index?qid=20101220205435AA70beb -
Very Simple Problem-- Need help in method selection process
Hello,
It's difficult to explain the background of the program I am making-- but I am stuck at a very simple problem, that I can only solve with a very long block of if statements:
I have 3 possible numbers-- 1, 2, or 3.
Imagine two numbers are already taken-- say 1 and 2. I want a variable to set itself to the number that's not taken (3).
So, again: If two numbers were taken say 2 or 3-- I want the variable to be sent to the other one that isn't taken-- 1.
Thank you for your help,
Evan.Actually, I'll just tell you the context of the program-- here is what I have so far:
This program is meant to simulate Monty Hall Problem:
http://en.wikipedia.org/wiki/Monty_Hall_problem
The program sets up an array of three possible values. Each one of those values represents a door with either a goat or a car behind it. It then randomly sets one of those values to 1 (in order to represent a car as per the Monty Hall problem), and 0's represent goats.
The user, which is simulated by the program (does not involve actual interaction), chooses a door initially.
The game show hosts then reveals a door that is not the users initial choice, but IS a goat ( an array value of 0).
For example if the array was [0][0][1]
The user could pick door one (array position 0). Which is a goat.
The game show host then reveals a goat that is not the users choice-- which would be array position 1.
After the game show host reveals the goat-- I want the user to always switch his decision to the only other remaining door that was not his first choice.
Then I wanted the computer to test to see if his final choice is the one with a car. And to tally up the amount of times he got it right.
--Sorry that was long winded:
import TerminalIO.*;//imports TerminalIO package for system.out.println
import java.util.*;//import java.util for random
public class Monty_Problem
int doors[]= {0,0,0};
Random rand= new Random();
double wins,totals=0;
public void carAssignment()
int car_door= rand.nextInt(3);
doors[car_door]=1;
public int judgesChoice(int judgeDoor, int initialChoice)
if(judgeDoor != initialChoice && doors[judgeDoor]!=1)
return judgeDoor;
else
return judgesChoice(rand.nextInt(3), initialChoice); //infinite loop right here that I cannot remedy. I want the program to have the judge pick a location that is not occupied by a '1' and is not the user's choice.
public void gamePlaySwitches()
int initialChoice= rand.nextInt(3);
int judgeDoor = 0;
int secondChoice= 0;
judgeDoor= judgesChoice(rand.nextInt(3), initialChoice);
//This part is meant to have the user switch choices from his initial choice
// to the only other choice that hasn't been revealed by the judge.
while(secondChoice == initialChoice || secondChoice== judgeDoor)
secondChoice++;
if(doors[secondChoice]==1)
wins++;
totals++;
else
totals++;
public static void main(String [] args)//creates the main menu
Monty_Problem a= new Monty_Problem();
int games=0;
while(games!=100)
a.carAssignment();
a.gamePlaySwitches();
games++;
System.out.println(a.wins/a.totals);
}Edited by: EvanD on Jan 11, 2008 4:17 PM -
Video stutter in very simple video project
My very simple 20 minute travel video, made in iMovie 4.0.1, with less than 10 transitions and extracted audio clips, freezes, stutters, and is impossible to edit. It's my first project in this version of iMovie. I got the program, along with Quicktime 7.11, when I upgraded to OSX 10.3.9.
I've posted before, and added RAM as recommended. Now my computer meets the specs for iMovie 4. It's used for very little else. No external hard drive, no bookmarks, and very few audio clips and transitions. Also tried downloading the updated Quicktime 7.13. Same problem.
When I remove audio clips, stuttering is almost all gone.
I would think this program would be able to handle such a simple project.
Any advice you might have would be appreciated. Should I go back to earlier versions of the programs? Operating system? If so, how do I do that?Using old hardware with iMovie is a crapshoot, especially with QT 7. On my G4, I had to downgrade to QT 6.5.2 as someone else suggested. I also ran into the problem you did in trying to downgrade. Here is the solution that got me by:
1. Download Pacifist (http://versiontracker.com/dyn/moreinfo/macosx/12743). This will allow you to bypass the downgrade error you received in running the Reinstaller.
2. First run the QT 7.0.1 Reinstaller (this is where Pacifist came in handy).
NOTE: It may be hard to finder this Reinstaller. If you have problems, first try step 3 below using Pacifist, but if that does not work, I can find a way to get you the 7.0.1 Reinstaller.
3. Next run the QT 6.5.2 Reinstaller.
(http://www.apple.com/support/downloads/quicktime652reinstallerforquicktime701.ht ml)
That should allow your project to run smoothly again. Our machines video cards just don't do well with QT 7.
NOTE: Some people don't have the problem we had. I believe our problems are made worse by incremental upgrades of QT.
I hope this helps! -
BB gone very slow ...help please
I live in a rural area, am about 3 miles from the exchange, so I'm used to not having a fast service, however my speed often runs around 1.22Mb/s download and 0.38Mb/s upload. But yesterday it dropped to very slow. I just decided to leave it for 24 hours to see if it sorted itself out. Well it didn't and I'm here now looking for some help please!
I have checked my local exchange, no problems reported.
I have worked through the BT BB Speed Wizard thing.
I did the Speedtester and these are the results
FAQ
Test1 comprises of Best Effort Test: -provides background information.
Download Speed
107 Kbps
0 Kbps
250 Kbps
Max Achievable Speed
Download speedachieved during the test was - 107 Kbps
For your connection, the acceptable range of speeds is 50-250 Kbps.
Additional Information:
Your DSL Connection Rate :1600 Kbps(DOWN-STREAM), 448 Kbps(UP-STREAM)
IP Profile for your line is - 135 Kbps
If you wish to discuss these results please contact your ISP.
If you are experiencing problems with specific applications, servers or websites please contact your ISP for assistance.
Your test has completed please close this window to exit the performance tester.
I've changed all the filters and I reset the Home Hub a couple of hours ago. Nothing...
THis is the info from my Home Hub:
ADSL line status
Connection Information
Line state
Connected
Connection time
0 days, 03:49:10
Downstream
1,600 Kbps
Upstream
448 Kbps
ADSL Settings
VPI/VCI
0/38
Type
PPPoA
Modulation
G.992.1 Annex A
Latency type
Interleaved
Noise margin (Down/Up)
7.3 dB / 19.0 dB
Line attenuation (Down/Up)
62.9 dB / 31.5 dB
Output power (Down/Up)
2.5 dBm / 1.5 dBm
Loss of Framing (Local/Remote)
0 / 0
Loss of Signal (Local/Remote)
0 / 0
Loss of Power (Local/Remote)
0 / 0
FEC Errors (Down/Up)
245 / 7
CRC Errors (Down/Up)
324 / 11
HEC Errors (Down/Up)
4266 / 39
Error Seconds (Local/Remote)
23 / 7Noticed it was back to normal speed again just now, so I did another speed test.
Results
Test1 comprises of Best Effort Test: -provides background information.
Download Speed
1130 Kbps
0 Kbps
2000 Kbps
Max Achievable Speed
Download speedachieved during the test was - 1130 Kbps
For your connection, the acceptable range of speeds is 400-2000 Kbps.
Additional Information:
Your DSL Connection Rate :1600 Kbps(DOWN-STREAM), 448 Kbps(UP-STREAM)
IP Profile for your line is - 1250 Kbps
Obviously I'm pleased that it's back to normal but confused as to what caused the problem - 24 hours of extremely slow connection and then it's normal again. ANy ideas? -
Error when running a very simple java program
java.lang.NoClassDefFoundError: HelloWorldApp
Exception in thread "main"
Tool completed successfully
I am getting the above error. I just downloaded java standard edition 1.4 sdk. I compiled the program with no errors. But when I run it . I get the above error. Is it something related to finding the package java.lang?
Please let me know.
Thanks.I have the same problem but in a different way. I download/installed jdk1.4 and J2me. I was able to run j2me without any problem following their tutorial.
I set my config.sys to:
PATH=C:\j2sdk1.4.0\bin;C:\j2me\j2me_cldc\bin;C:\j2me\midp1.0.3fcs\bin;
I did compile and ran couple of programs with no problems at all, for some reason some of them give me error ex: Exception in thread "main" java.lang.NoClassDefFoundError: NamofFile
I read couple of posting about setting the CLASSPATH, is that maybe the source of the problem if so how I can do so given that I�m using win2000. Any Ideas !!! -
VERY slow download, need help please!
Hello there, we recently moved house and have just had our internet and broadband activated, probobly 2-4 weeks ago, today i was downloading an update of my Xbox for a game, now bearing in mind i am directly connected through a wire to the homehub (BT HomeHub 3), it is a 2.07gb update, the first 75% went rather quickly(2-3 hours) i recently got home to find it was on 77%, this was an hour later, and 2 hours have passed now and it has only just reached 78%, which of my calculations are correct is less than 0.3KBS, which would put the completeion time around next week, i have tried unplugging the cable and restarting the HomeHub and nothing has worked(also whenever i do this the download skips back to 44% and spend 20 minutes befor jumping to 56% and then 40 mins befor going back to 78%. If anyone could help me i would be most gracious.
Jacobwelcome to the forum
in order for the forum members to help please can you post the adsl stats from your router may need to 'show detail' to get all stats (if hub enter 192.168.1.254 in your browser and navigate to adsl or use a-z, if netgear enter 192.168.0.1) and run btspeedtester (MAC users may have problems) BT Speedtester and post the results .
are you connected directly to the NTE5 master or test socket or to somewhere else? Is the master the only phone socket in your home?
Have you tried the quiet line test? - dial 17070 option 2 - should hear nothing - best done with a corded phone. if cordless phone you may hear a 'dull hum' which is normal
Someone may then be able to offer help/assistance/suggestions to your problem
If you like a post, or want to say thanks for a helpful answer, please click on the Ratings star on the left-hand side of the post.
If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’. -
At a loss with some simple java classwork. Please help.
Hello. I'm having a problem with some work that I wasn't able to finish in class. I am not very good at java AT ALL, and I'm really at a loss on how to finish up the program and get it to print what I want it to.
My task is:
"Write a program that asks for two words and then eliminates the second word from the first word.
For example:
forgot - go = fort
bedevil - bed = evil
bedevil - evil = bed
stupid - is = Hey, is is not found in stupid."
This is my code so far:
public class wordSubtraction
public static String big = "bedevil";
public static String small = "bed";
public static void main(String[] args)
elimWord(String big, String small);
public static void elimWord(String big, String small)
if(big.indexof(small)==-1)
System.out.println(small + " isn't found in " + big);
else
big.substring(0, indexOf(small));
small.substring(indexOf(small)+small.length());
System.out.println(small + " + " + small.substring + " = " + big);
I keep getting this error:
/Users/mewmew/Desktop/wordSubtraction.java:8: ')' expected
elimWord(String big, String small);
^
1 errorI don't understand what this error means or how to fix it, it looks like I have all the parenthesis in there to me. Deleting or adding semi-colins, parethesis, brackets, or curly brackets just seems to give me more errors.
Any help is appreciated!No it's not JJEdit. The errors are a good thing -
and each one has to be
dealt with. When you call a String method various
things have to be
correct:
(1) The name of the method - case is important.
(2) The arguments - the things in the parentheses -
have to be exactly
the sort of thing that the method expects. For
example if the method
expects an int argument and you give it a String
there will be problems
(3) The methods must be called using a String
variable and a dot. If
you just say "substring(whatever)" that's an error.
The compiler is
saying "substring of what?" You have to write
"something.substring(whatever)"
Also - because it will be important later - both
substring() and indexOf()
return a value. It is up to you to do something with
that value. Usually
you assign it to a variable.
Just for the record I got the follow from the String
API doumentation here:
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Stri
ng.html
public int indexOf(String str) Returns the index
within this string of the
first occurrence of the specified substring.
public String substring(int beginIndex) Returns a new
string that is a
substring of this string. The substring begins with
the character at the
specified index and extends to the end of this
string.
public String substring(int beginIndex, int
endIndex)Returns a new
string that is a substring of this string. The
substring begins at the
specified beginIndex and extends to the character at
index endIndex - 1.
I would suggest you write elimWord() along these
lines:public static void elimWord(String big,
String small)
int pos = // find the index of small in big
if(pos == -1)
System.out.println(small + " isn't found in "
und in " + big);
else
String before = // find the bit before small
re small in big
String after = // find the bit after small in
small in big
System.out.println(big + " - " + small + " =
ll + " = " + before + after);
Thank you! That's very helpful and I feel that I'm THAT much more on my way to understanding what the heck I'm doing.
I'm trying, though...
Now I just gotta find out how to get the bits before and after small in big and solve these errors:
/Users/audreyeckel/Desktop/wordSubtraction.java:24: '.class' expected
int pos = big.substring(0, int indexOf(small));
^
/Users/audreyeckel/Desktop/wordSubtraction.java:24: ')' expected
int pos = big.substring(0, int indexOf(small));
^
2 errorsI just hope I can finish it before it gets TOO late...it's about 2:26 AM here and this is due...TODAY! -
My simple file is uploading very slow.. help please..
i have a SWF file - 220KB
and the motions are simple too.
whay the browser loading it so slow?!? (5-10 sec.)
(i checked on 7 computers)
is anyone can check the FLA file please?
it's very important..
TNXWhat does that have to do with uploading a file? If you are talking about downloading to one's browser to be viewed, if I look at the page you identified the Flash content loads almost immediately, even before the background image. Chances are it is a service issue at your end as it has nothing to do with the Flash file.
-
I grab a null frame. Can a Java genious help, please?
Hello. I am a high school student working on a science fair project. Right now I am using JMF to grab a frame from my ATI TV Wonder USB. The code below accesses the TV Wonder but it seems like I get a null frame because I have put a if statement in the code and it says I have a null image there. Can someone please help me. Thank you in advance
import java.awt.*;
import java.awt.event.*;
import java.awt.image.*;
import java.text.*;
import java.util.*;
import javax.swing.*;
import javax.swing.event.*;
import javax.media.*;
import javax.media.format.*;
import javax.media.util.*;
import javax.media.control.*;
import javax.media.protocol.*;
import javax.media.control.FormatControl;
public class Cell extends JApplet implements ActionListener{
JLabel welcomeLabel;
JTextArea output;
JButton close;
String display = "";
String exit = "The video capture buffer has been terminated.";
String problem = "";
String videoDevice = "vfw:Microsoft WDM Image Capture (Win32):0";
public static Player player = null;
public Buffer buf = null;
public Image img = null;
public VideoFormat vf = null;
public BufferToImage btoi = null;
public MediaLocator ml = null;
public CaptureDeviceInfo di = null;
public void init()
Container c = getContentPane();
c.setLayout( new FlowLayout() );
welcomeLabel = new JLabel("Welcome to Adam's Cell Analyzer");
c.add(welcomeLabel);
output = new JTextArea(6, 60);
output.setFont( new Font("Courier", Font.PLAIN, 12) );
c.add(output);
close = new JButton("End Analyze Program");
close.addActionListener(this);
c.add(close);
display = "Starting...\n\n";
output.setText(display);
di = CaptureDeviceManager.getDevice(videoDevice);
ml = di.getLocator();
try {
player = Manager.createRealizedPlayer(ml);
player.start();
Component comp;
catch (Exception e) {
problem += "An Exception has occured.";
output.setText(problem);
FrameGrabbingControl fgc = (FrameGrabbingControl)
player.getControl("javax.media.control.FrameGrabbingControl");
buf = fgc.grabFrame();
btoi = new BufferToImage((VideoFormat)buf.getFormat());
img = btoi.createImage(buf);
display += "The video capture card is currently working properly\n";
display += "and is sending a video feed to the image buffer.\n\n";
output.setText(display);
if(img==null){
problem += "The frame is null.";
output.setText(problem);
else
imageEnhancement(img);
public void actionPerformed(ActionEvent e)
output.setText(exit);
player.close();
player.deallocate();
private void imageEnhancement(Image img)
//Nothing now
}I decided to post my program on here because I remember how hard it was to get it to work, and I don't want people to go through the same problems... just don't use it to compete against me in the Intel Science and Engineering Fair and/or the Intel Science Talent Search ;-) then I'll be mad. Other than that, have fun!
~Adam Georgas
import java.awt.*;
import java.awt.Dimension;
import java.awt.event.*;
import java.awt.Image.*;
import java.awt.image.renderable.*;
import java.io.*;
import java.text.*;
import java.util.*;
import javax.swing.*;
import javax.swing.event.*;
import javax.media.*;
import javax.media.format.*;
import javax.media.format.VideoFormat;
import javax.media.util.*;
import javax.media.util.BufferToImage;
import javax.media.control.*;
import javax.media.protocol.*;
import javax.media.control.FormatControl;
public class Cell extends JApplet implements ActionListener{
JLabel welcomeLabel;
JTextArea output;
JButton begin;
JButton end;
String display = "";
String problem = "";
String exit = "The video capture buffer has been terminated.";
String videoDevice = "vfw:Microsoft WDM Image Capture (Win32):0";
public static Player player = null;
public Buffer buf = null;
public MediaLocator ml = null;
public CaptureDeviceInfo di = null;
public BufferToImage btoi = null;
public Image frameImage = null;
public VideoFormat vf = null;
public PlanarImage src = null;
private ImageEncoder encoder = null;
private JPEGEncodeParam encodeParam = null;
int error = 0;
public void init()
Container c = getContentPane();
c.setLayout( new FlowLayout() );
welcomeLabel = new JLabel("Welcome to Adam's Cell Analyzer");
c.add(welcomeLabel);
output = new JTextArea(6, 60);
output.setFont( new Font("Courier", Font.PLAIN, 12) );
c.add(output);
begin = new JButton("Begin Analyze Program");
begin.addActionListener(this);
c.add(begin);
end = new JButton("End Analyze Program");
end.addActionListener(this);
c.add(end);
di = CaptureDeviceManager.getDevice(videoDevice);
ml = di.getLocator();
try {
player = Manager.createRealizedPlayer(ml);
player.start();
catch (Exception b) {
JOptionPane.showMessageDialog(this, b.toString(),
"An Exception has occured", JOptionPane.ERROR_MESSAGE);
display = "Welcome\n\n";
output.setText(display);
public void actionPerformed(ActionEvent e)
JComponent j = (JComponent) e.getSource();
if (j == end){
player.close();
player.deallocate();
output.setText(exit);
if (j == begin){
display += "Starting...\n\n";
output.setText(display);
Control[] controls = player.getControls();
FrameGrabbingControl fgc = (FrameGrabbingControl)
player.getControl("javax.media.control.FrameGrabbingControl");
if (fgc == null) {
error = 1;
problem(error);
buf = fgc.grabFrame();
btoi = new BufferToImage((VideoFormat)buf.getFormat());
if (btoi == null){
error = 2;
problem(error);
VideoFormat format = (VideoFormat)buf.getFormat();
Dimension size = format.getSize();
if(format == null) {
error = 3;
problem(error);
frameImage = btoi.createImage(buf);
if(frameImage == null) {
error = 4;
problem(error);
else{
display = "";
display = "The video system is working correctly and grabbing frames.\n\n";
output.setText(display);
public void imageEnhancement()
//Top Secret :-)
public void problem(int error)
switch(error) {
case 1:
JOptionPane.showMessageDialog(this, "The frame grabbing control is null.",
"A problem has occured", JOptionPane.ERROR_MESSAGE);
break;
case 2:
JOptionPane.showMessageDialog(this, "The buffer to image conversion did not occur properly.",
"A problem has occured", JOptionPane.ERROR_MESSAGE);
break;
case 3:
JOptionPane.showMessageDialog(this, "The image format queries did not occur properly.",
"A problem has occured", JOptionPane.ERROR_MESSAGE);
break;
case 4:
JOptionPane.showMessageDialog(this, "The buffer to image did not occur properly.",
"A problem has occured", JOptionPane.ERROR_MESSAGE);
break;
case 5:
JOptionPane.showMessageDialog(this, "Java AWT Image to JAI Image did not occur properly.",
"A problem has occured", JOptionPane.ERROR_MESSAGE);
break;
default:
JOptionPane.showMessageDialog(this, "An unknown problem has occured.",
"A problem has occured", JOptionPane.ERROR_MESSAGE);
} -
Suddenly my-phone will NOT ring! I have been through all the settings but am unable to see anything wrong.
IT is working perfectly well otherwise. It will vibrate if I change the setting to VIBRATE ON SILENT, but how
have I made it Silent please.
very frustrating I'm sure it is something simple- BUT WHAT!
help pleaseDon't feel silly! Lots of people miss that.
-
Simple java applet help needed
hi, im having trouble with an applet im developing for a project.
i have developed an applet with asks the user for simple information( name,address and phone) through textfields, i wish for the applet to store this information in an array when an add button below the textfeilds is pressed.
client array[];
array=new client[];//needs to be an infinate array!
I have created the client class with all the set and get methods plus constructors needed but i dont know how to take the text typed into the textfields by the user and store them in the array.
i also need to save this info to a file and be able to load it back into the applet.
Could some please help! Thank you for your time.Better maybe redefine the idea using an data structure :
public class client{
private char name[];
private char address[];
private int phone;
public class vector_clients{
private client vect[];
// methods for vect[]
What is your opinion about ??? -
Hi all,
I need help with java code please.
My source is a csv file and target is multiple idocs.
Source file structure is as follows:
Header (field 1, field 2, ........ field 10)
Item 1a (field 1, field 2, field 3, ......... field 180)
Item 1b (field 1, field 2, field 3, ......... field 180)
Item 2a (field 1, field 2, field 3, ......... field 180)
Item 2b (field 1, field 2, field 3, ......... field 180)
Item na (field 1, field 2, field 3, ......... field 180)
Item nb (field 1, field 2, field 3, ......... field 180)
First line is header. Second is VAT line. Third is Price line for that VAT. Now VAT and Price lines repeat. There need not be VAT line for non-European countries. So a VAT line may or may not preceed a Price line.
For example: the lines can be like:
Header
VAT1
Price1
VAT2
Price2
Price3
1) Now, it should produce 3 idocs like:
Header, VAT1, Price1
Header, VAT2, Price2
Header, Price3
2) One idoc should be created per a pair of VAT and Price lines and they will be identified by a co-relation of a particular field. So first I have to sort all the lines based on this field value. Then I have to read the lines in pairs. If no Vat line, I should just read the Price item and produce an idoc.
Can you please help me with the java code for this?
Many thanks in advance.
Ramesh.Many thanks Ram.
The reason for thinking to go for java mapping is that there is no keyfield for price line. The source file is a pipe delimited csv file. There is a keyfield for VAT line. The same field will be empty for the Price line. I am trying to ask them to at least provide a space for that field between the pipes for price line so that I can use in FCC. It looks like they can't modify the source file.
Any inputs please?
Regards.
Ramesh. -
Can't open my project, help please...
I've spent hours and hours on my wedding video project... When I was working on it, iMove suddenly crashed and then I can't open the project any more...
I can't open, edit, duplicate and export the project. It allows me to play it in full screen but the content is incomplete.
My other two projects are fine.
I tried to reinstall iMovie (delete the program and com.apple.pkg.iMovieXXXX files, and reinstall and update) but it didn't help...
I tried to repair the disk permissions but it didn't help...
Could anyone please save me and my project..
I was using Lion and iMovie 11 with the latest updates. My labtop is MBP 15'' mid-2010.
Thanks!Anyone could help me please ???
Maybe you are looking for
-
Book module LR 5.7 adding photos and putting text in spine
I'm creating a book in the book module of Lightroom. I imported photos from a collection and used auto layout. I wish to add two more photos. I've added them to the collection, but I can't add them to the book I'm creating. i haven't yet clicked on c
-
Flex 2 14 Battery Level Dropped from 57 to 7 in seconds
I've been using my Flex 2 14 for around 3 months. However, recently I've encounter a situation whereby my battery level had dropped from 57% to 7% in split second when I'm not plugged in. I was wondering could it be an manufacturing defect and what s
-
My widgets and dock don't function like it used to - no ⊗
My dock no longer has a ⊗ next to it and I cannot access my widgets unless I goto home/library/widgets and click on the only widget listed there (business.wdgt). Once I click on that, all of my widgets show as does the ⊗ but once I click back on anot
-
Hi All PLease see below a query which used to return the result in ascending order of date in Oracle 9i. After an upgrade from Oracle 9i to Oracel10g, the result returned ,is as shown below where date is not in order. Is this a bug in oracle 10g? Can
-
Lumia 900 update error 80070424
I have just bought Nokia Lumia 900, and everything works and looks very well. But the phone won´t update its firmware (current version is the factory preset of 2175.2101.8779.12201). ZUNE update procedure keeps bombarding me with 80070424 error. Alre