FBL5N : problem with Match-code
Hi,
In Tcode FBL5N i click on match-code of Customer Account's field to choose a Customer, in the first table (Customers by company code) when Ii click on one customer the list of customers is closed but i get nothing in Customer Account's field (it is empty)
Please how to resolve this problem ?
Regards.
Edited by: jehade el aoumari on Jan 20, 2010 9:28 AM
Hi ,
I had the same issue with FBL1N and I managed to solve it.
1. Open SE11
2. Select radio button search Help
3. Enter DEBI
4. Click on change
5. Choose Maint. in logon lang.
6. Go to tab Included search help
7. Select line DEBID
8. Click on Param. assignment
9. On the 1st line enter KUNNR C KUNNR
10. On the 2nd line enter BUKRS C BUKRS
11. Save
This should solve your issue.
Regards,
Ben
Similar Messages
-
What is the problem with the code?
Hello, the following is a segment of code that I have written recently:
IF DATA+1(5) <> TEXT-035.
CATCH SYSTEM-EXCEPTIONS WEIRD_ERROR = 4
OTHERS = 8.
END CATCH.
ENDIF.
When I tried to compile the code, it says:
Unable to interpret "SYSTEM-EXCEPTIONS". Possible causes: Incorrect spelling or comma error.
May I know where is the problem with this code? Thanks a lot!
Regards,
AnyiHere is a list of the system exceptions.
Alphabetical List of Catchable Runtime Errors
,,ADDF_INT_OVERFLOW
Overflow in addition with type I ( ADD ... UNTIL / ADD ... FROM ... TO)
,,ASSIGN_CASTING_ILLEGAL_CAST
The offset and type of the source field and the target type do not match exactly in the components that are strings, tables, or references.
,,ASSIGN_CASTING_UNKNOWN_TYPE
The type specified at runtime is unknown.
,,BCD_FIELD_OVERFLOW
Overflow in conversion or arithmetic operations (type P with specified length)
,,BCD_OVERFLOW
Overflow in conversion or arithmetic operation (type P)
,,BCD_ZERODIVIDE
Division by 0 (type P)
,,CALL_METHOD_NOT_IMPLEMENTED
Call of a non-implemented interface method
,,COMPUTE_ACOS_DOMAIN
Invalid call of mathematical function ACOS
,,COMPUTE_ASIN_DOMAIN
Invalid call of mathematical function ASIN
,,COMPUTE_ATAN_DOMAIN
Invalid call of mathematical function ATAN
,,COMPUTE_BCD_OVERFLOW
Overflow in arithmetic operation (all operands type P)
,,COMPUTE_COSH_DOMAIN
Invalid call of mathematical function COSH
,,COMPUTE_COSH_OVERFLOW
Overflow in mathematical function COSH
,,COMPUTE_COS_DOMAIN
Invalid call of mathematical function COS
,,COMPUTE_COS_LOSS
Result of COS function is inexact
,,COMPUTE_EXP_DOMAIN
Invalid call of mathematical function EXP
,,COMPUTE_EXP_RANGE
Over- or underflow in mathematical function EXP
,,COMPUTE_FLOAT_DIV_OVERFLOW
Overflow in division (type F)
,,COMPUTE_FLOAT_MINUS_OVERFLOW
Overflow in subtraction (type F)
,,COMPUTE_FLOAT_PLUS_OVERFLOW
Overflow in addition (type F)
,,COMPUTE_FLOAT_TIMES_OVERFLOW
Overflow in multiplication (type F)
,,COMPUTE_FLOAT_ZERODIVIDE
Division by 0 (type F)
,,COMPUTE_INT_ABS_OVERFLOW
Integer overflow when calculating the absolute value
,,COMPUTE_INT_DIV_OVERFLOW
Integer overflow in division
,,COMPUTE_INT_MINUS_OVERFLOW
Integer overflow in subtraction
,,COMPUTE_INT_PLUS_OVERFLOW
Integer overflow in addition
,,COMPUTE_INT_TIMES_OVERFLOW
Integer overflow in multiplication
,,COMPUTE_INT_ZERODIVIDE
Division by 0 (type I)
,,COMPUTE_LOG10_ERROR
Invalid call of the mathematical function LOG10
,,COMPUTE_LOG_ERROR
Invalid call of the mathematical function LOG
,,COMPUTE_MATH_DOMAIN
Invalid call of a mathematical function
,,COMPUTE_MATH_ERROR
Error executing a mathematical function
,,COMPUTE_MATH_LOSS
Result of a mathematical function is inexact
,,COMPUTE_MATH_OVERFLOW
Overflow of a mathematical function
,,COMPUTE_MATH_UNDERFLOW
Underflow in a mathematical function
,,COMPUTE_POW_DOMAIN
Invalid argument when raising powers
,,COMPUTE_POW_RANGE
Over- or underflow when raising powers
,,COMPUTE_SINH_DOMAIN
Invalid call of the mathematical function SINH
,,COMPUTE_SINH_OVERFLOW
Overflow in the mathematical function SINH
,,COMPUTE_SIN_DOMAIN
Invalid call of the mathematical function SIN
,,COMPUTE_SIN_LOSS
Result of the function SIN is inexact
,,COMPUTE_SQRT_DOMAIN
Invalid call of the mathematical function SQRT
,,COMPUTE_TANH_DOMAIN
Invalid call of the mathematical function TANH
,,COMPUTE_TAN_DOMAIN
Invalid call of the mathematical function TAN
,,COMPUTE_TAN_LOSS
Result of the function TAN is inexact
,,CONNE_IMPORT_WRONG_COMP_LENG
Import error: A component in a structured type in the dataset has an incorrect length
,,CONNE_IMPORT_WRONG_COMP_TYPE
Import error: A component of a structured type in the dataset has an incorrect length
,,CONNE_IMPORT_WRONG_FIELD_LENG
Import error: A field in the dataset has an incorrect length
,,CONNE_IMPORT_WRONG_FIELD_TYPE
Import error: A field in a dataset has the wrong type
,,CONNE_IMPORT_OBJECT_TYPE
Import error: Type conflict between simple and structured data types
,,CONNE_IMPORT_WRONG_STRUCTURE
Import error: Type conflict between structured objects
,,CONVT_HEX_CONFLICT
Conversion conflict (Type X)
,,CONVT_NO_NUMBER
Value for conversion cannot be interpreted as a number
,,CONVT_OVERFLOW
Overflow in conversion (all types except type P)
,,CREATE_DATA_NOT_ALLOWED_TYPE
The statement CREATE DATA cannot be executed with a generic type.
,,CREATE_DATA_UNKNOWN_TYPE
The statement CREATE DATA cannot be executed with an unknown type.
,,CREATE_OBJECT_CLASS_ABSTRACT
Attempt to instantiate an abstract class.
,,CREATE_OBJECT_CLASS_NOT_FOUND
The class specified with a dynamic CREATE OBJECT was not found.
,,CREATE_OBJECT_CREATE_PRIVATE
Attempt to create an object of a class defined as 'CREATE PRIVATE'.
,,CREATE_OBJECT_CREATE_PROTECTED
Attempt to create an object of a class defined as 'CREATE PROTECTED'.
,,DATA_LENGTH_NEGATIVE
Invalid subfield access: Negative length
,,DATA_LENGTH_0
Invalid subfield access: Length 0
,,DATA_LENGTH_TOO_LARGE
Invalid subfield access: Length too large
,,DATA_OFFSET_NEGATIVE
Invalid subfield access: Negative offset
,,DATA_OFFSET_TOO_LARGE
Invalid subfield access: Offset too large
,,DATA_OFFSET_LENGTH_TOO_LARGE
Invalid subfield access: Offset + length too large
,,DATA_OFFSET_LENGTH_NOT_ALLOWED
Invalid subfield access: Type not appropriate
,,DATASET_CANT_CLOSE
Unable to close file. There may be no space left in the file system
,,DATASET_CANT_OPEN
Unable to open file
,,DATASET_NO_PIPE
The FILTER addition to the OPEN DATASET statement is not supported on the current operating system
,,DATASET_READ_ERROR
Error reading a file
,,DATASET_TOO_MANY_FILES
Maximum number of open files exceeded
,,DATASET_WRITE_ERROR
Error writing to a file
,,DYN_CALL_METH_CLASSCONSTRUCTOR
Attempt to call the class constructor
,,DYN_CALL_METH_CLASS_ABSTRACT
Attempt to call an abstract method
,,DYN_CALL_METH_CLASS_NOT_FOUND
Attempt to call a method of a non-existent class
,,DYN_CALL_METH_CONSTRUCTOR
Attempt to call the instance constructor
,,DYN_CALL_METH_EXCP_NOT_FOUND
Attempt to catch an unknown exception
,,DYN_CALL_METH_NOT_FOUND
Attempt to call an unknown method
,,DYN_CALL_METH_NOT_IMPLEMENTED
Attempt to call a method that has not been implemented yet
,,DYN_CALL_METH_NO_CLASS_METHOD
Attempt to call an instance method via a class
Attempt to pass a parameter with an incorrect parameter type
,,DYN_CALL_METH_PARAM_LITL_MOVE
Attempt to pass a constant actual parameter to a formal EXPORTING, CHANGING or RETURNING parameter
,,DYN_CALL_METH_PARAM_MISSING
An obligatory parameter was not supplied.
,,DYN_CALL_METH_PARAM_NOT_FOUND
Attempt to pass an unknown parameter
,,DYN_CALL_METH_PARAM_TAB_TYPE
Attempt to pass a parameter with an incorrect table type
,,DYN_CALL_METH_PARAM_TYPE
Attempt to pass a parameter with an incorrect type
,,DYN_CALL_METH_PARREF_INITIAL
An initial data reference was passed for an mandatory parameter.
,,DYN_CALL_METH_PRIVATE
Attempt to call a private method from outside
,,DYN_CALL_METH_PROTECTED
Attempt to call a protected method from outside
,,DYN_CALL_METH_REF_IS_INITIAL
Attempt to call a method with an initial reference
,,EXPORT_BUFFER_NO_MEMORY
The EXPORT data cluster is too large for the application buffer
,,EXPORT_DATASET_CANNOT_OPEN
The IMPORT/EXPORT statement could not open the file
,,EXPORT_DATASET_WRITE_ERROR
The EXPORT statement could not write to the file
,,GENERATE_SUBPOOL_DIR_FULL
The system cannot generate any more temporary subroutine pools
,,IMPORT_ALIGNMENT_MISMATCH
Import error: Same sequence of components, but with type conflict or different alignment in structured data types
,,IMPORT_TYPE_MISMATCH
Import error: Only with IMPORT...FROM MEMORY | FROM SHARED BUFFER...
,,MOVE_CAST_ERROR
Type conflict when assigning between object and interface references (only MOVE...?TO... or operator ?=)
,,OPEN_DATASET_NO_AUTHORITY
No authorizatino to access the file
,,OPEN_PIPE_NO_AUTHORITY
No authorization to access the file (OPEN DATASET...FILTER...).
,,PERFORM_PROGRAM_NAME_TOO_LONG
Invalid program name with PERFORM statement
,,RMC_COMMUNICATION_FAILURE
Communication error with Remote Method Call
,,RMC_INVALID_STATUS
Status error with Remote Method Call
,,RMC_SYSTEM_FAILURE
System error with Remote Method Call
,,STRING_LENGTH_NEGATIVE
Invalid access with negative length to a string
,,STRING_LENGTH_TOO_LARGE
Invalid access to a string (length too large)
,,STRING_OFFSET_NEGATIVE
Invalid access with negative offset to a string
,,STRING_OFFSET_TOO_LARGE
Invalid access to a string (offset too large)
,,STRING_OFFSET_LENGTH_TOO_LARGE
Invalid access to a string (offset + length too large)
,,TEXTENV_CODEPAGE_NOT_ALLOWED
Character set is not released in the system (SET LOCALE...)
,,TEXTENV_INVALID
Error setting the text environment (SET LOCALE...)
,,TEXTENV_KEY_INVALID
With SET LOCALE...: Value of LANGUAGE, COUNTRY or MODIFIER that is not allowed in the system.
,,TEXTENV_LANGUAGE_NOT_ALLOWED
With SET LOCALE...: Invalid value of the LANGUAGE addition.
What version of SAP are you on? If on a newer version you may be able to create your own exception class.
Regards,
Rich Heilman -
Problem with php code. Please help!
Hello!
I'm using the following syntax to bring content into my
websites' layout template:
Code:
<?php //check in the root folder first
if(file_exists('./' . $pagename . '.php'))
include './' . $pagename . '.php';
//if it wasn't found in the root folder then check in the
news folder
elseif(file_exisits('./news/' . $filename . '.php'))
include './news/' . $pagename . '.php';
// if it couldn't be found display message
else
echo $pagename . '.php could not be found in either the root
folder or the news folder!';
} ?>
What it's essentially saying is, if you can't find the .php
file in the _root folder, look for it in the /news/ folder.
It works perfectly if loading something from the _root folder
but I get an error if I need to bring something from the /news/
folder.
Can anyone see any potential problems with my code?
Thank you very much and I hope to hear from you.
Take care,
MarkI've never seen the code written like that before, but I'm
assuming it's
legal?
Perhaps try:
<?php
$newsroot = $_SERVER['DOCUMENT_ROOT']."/news";
if (!file_exists("$pagename.php")) {
elseif (!file_exists("$newsroot/$pagename.php")) {
else
Or the other thing you can try is replacing the elseif
statement with:
elseif (!file_exists("news/$pagename.php"))
If not - I'm sure Gary will be on here soon...
Shane H
[email protected]
http://www.avenuedesigners.com
=============================================
Proud GAWDS Member
http://www.gawds.org/showmember.php?memberid=1495
Delivering accessible websites to all ...
=============================================
"Spindrift" <[email protected]> wrote in
message
news:e5mled$272$[email protected]..
> Hello!
>
> I'm using the following syntax to bring content into my
websites' layout
> template:
>
> Code:
>
> <?php //check in the root folder first
> if(file_exists('./' . $pagename . '.php'))
> {
> include './' . $pagename . '.php';
> }
> //if it wasn't found in the root folder then check in
the news folder
> elseif(file_exisits('./news/' . $filename . '.php'))
> {
> include './news/' . $pagename . '.php';
> }
> // if it couldn't be found display message
> else
> {
> echo $pagename . '.php could not be found in either the
root folder or
> the
> news folder!';
> } ?>
>
> What it's essentially saying is, if you can't find the
.php file in the
> _root
> folder, look for it in the /news/ folder.
>
> It works perfectly if loading something from the _root
folder but I get an
> error if I need to bring something from the /news/
folder.
>
> Can anyone see any potential problems with my code?
>
> Thank you very much and I hope to hear from you.
>
> Take care,
>
> Mark
> -
Please tell me what is the problem with this code
Hai,
Iam new to Swings. can any one tell what is the problem with this code. I cant see those controls on the frame. please give me the suggestions.
I got the frame ,but the controls are not.
this is the code:
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class ex2 extends JFrame
JButton b1;
JLabel l1,l2;
JPanel p1,p2;
JTextField tf1;
JPasswordField tf2;
public ex2()
setDefaultCloseOperation(EXIT_ON_CLOSE);
setTitle("Another example");
setSize(500,500);
setVisible(true);
b1=new JButton(" ok ");
p1=new JPanel();
p1.setLayout(new GridLayout(2,2));
p2=new JPanel();
p2.setLayout(new BorderLayout());
l1=new JLabel("Name :");
l2=new JLabel("Password:");
tf1=new JTextField(15);
tf2=new JPasswordField(15);
Container con=getContentPane();
con.add(p1);
con.add(p2);
public static void createAndShowGUI()
ex2.setDefaultLookAndFeelDecorated(true);
public static void main(String ar[])
createAndShowGUI();
new ex2();
}import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class ex2 extends JFrame
JButton b1;
JLabel l1,l2;
JPanel p1,p2;
JTextField tf1;
JPasswordField tf2;
public ex2()
setDefaultCloseOperation(EXIT_ON_CLOSE);
setTitle("Another example");
b1=new JButton(" ok ");
p1=new JPanel();
p1.add(b1);
p2=new JPanel();
p2.setLayout(new GridLayout(2,2));
l1=new JLabel("Name :");
l2=new JLabel("Password:");
tf1=new JTextField(15);
tf2=new JPasswordField(15);
p2.add(l1);
p2.add(tf1);
p2.add(l2);
p2.add(tf2);
Container con=getContentPane();
con.add(p1, BorderLayout.NORTH);
con.add(p2, BorderLayout.CENTER);
pack();
setVisible(true);
public static void createAndShowGUI()
ex2.setDefaultLookAndFeelDecorated(true);
public static void main(String ar[])
createAndShowGUI();
new ex2();
} -
Vector, what is the problem with this code?
Vector, what is the problem with this code?
63 private java.util.Vector data=new Vector();
64 Vector aaaaa=new Vector();
65 data.addElement(aaaaa);
74 aaaaa.addElement(new String("Mary"));on compiling this code, the error is
TableDemo.java:65: <identifier> expected
data.addElement(aaaaa);
^
TableDemo.java:74: <identifier> expected
aaaaa.addElement(new String("Mary"));
^
TableDemo.java:65: package data does not exist
data.addElement(aaaaa);
^
TableDemo.java:74: package aaaaa does not exist
aaaaa.addElement(new String("Mary"));Friends i really got fed up with this code for more than half an hour.could anybody spot the problem?I can see many:
1. i assume your code snip is inside a method. a local variable can not be declare private.
2. if you didn't import java.util.* on top then you need to prefix package on All occurance of Vector.
3. String in java are constant and has literal syntax. "Mary" is sufficient in most of the time, unless you purposly want to call new String("Mary") on purpose. Read java.lang.String javadoc.
Here is a sample that would compile...:
public class QuickMain {
public static void main(String[] args) {
java.util.Vector data=new java.util.Vector();
java.util.Vector aaaaa=new java.util.Vector();
data.addElement(aaaaa);
aaaaa.addElement(new String("Mary"));
} -
Facing problem with the code for sending an .xls attachment via email, a field value contains leading zeros but excel automatically removes these from display i.e. (00444 with be displayed as 444).kindly guide .
Hi Chhayank,
the problem is not the exported xls. If you have a look inside with Notepad or something like that, you will see that your leading zeros are exported correct.Excel-settings occurs this problem, it is all about how to open the document. If you use the import-assistant you will have no problems because there are options available how to handle the different columns.
Another solution might be to get familiar with ABAP2XLS-Project. I got in my mind, that there is a method implemented, that will help you solving this problem. But that is not a five minute job
~Florian -
Problem with character code NCR (example : cộng h�a x� hội)
Dear
I have problem with character code NCR when display this string "cộng h�a x� hội" on web page using JSF. I print out like this c & # 7897 ; ng h � a x � h & # 7897 ; i
Thanks for helpjverd wrote:
A better approach would be to take a char rather than a String in that method, since it's a better model for what you're converting. A char would also let you use switch statement.I was going to say this as well but you beat me to it.
@OP, you really should use char for this. You're unnecessarily taking each char, converting it to a string, and working with the single-character string. That's not very efficient. -
Why can't I receive help with my problems with Match? A service I pay for??
Why can't I receive help with my problems with Match? A service I pay for??
Hi,
THis is a user help forum. If you tell us what your issues are, maybe someone can offer advice. Otherwise, read this https://www.apple.com/uk/support/itunes/itunes-match/
JIm -
Problems with matcher.find()
Hi,
Here is what I'm trying to do. Read one (or more later) files...one line at a time and compare it with a regular expresion to extract email addresses.
Here is my code:
public final class RegExpressions {
private static String REGEX;
private static String INPUT;
private static BufferedReader br;
private static Pattern pattern;
private static Matcher matcher;
private static boolean found, b;
public static void main(String[] args) throws Exception {
initResources();
private static void initResources() {
try {
br = new BufferedReader(new FileReader("titleInfo.txt"));
catch (FileNotFoundException fnfe) {
System.out.println("Cannot locate input file! "+fnfe.getMessage());
System.exit(0);
try {
REGEX = "(((\\w)(.)*)+@)";
INPUT = null ;
INPUT = br.readLine();
pattern = Pattern.compile(REGEX);
while ((INPUT = br.readLine()) != null)
// Reset the matcher to begin its next match starting at
// the beginning of the newly-read line.
matcher.reset(INPUT);
matcher = pattern.matcher(INPUT);
// Search for a match. A Boolean true value returns if a
// match is found.
System.out.println("Current INPUT is: "+INPUT);
b = matcher.find();
System.out.println ("matcher.find() is: " +b);
if (matcher.find())
System.out.println (INPUT);
} catch(IOException ioe){}
catch(PatternSyntaxException pse) {
System.out.println("There is a problem with the regular expression!");
System.out.println("The pattern in question is: "+pse.getPattern());
System.out.println("The description is: "+pse.getDescription());
System.out.println("The message is: "+pse.getMessage());
System.out.println("The index is: "+pse.getIndex());
System.exit(0);
System.out.println("Current REGEX is: "+REGEX);
System.out.println("Current INPUT is: "+INPUT);
}The file I read in looks like this:
Integration of Scheduling and Replication in Data Grids
Anirban Chakrti Depak R.A. Shuhis Supta
Software Engineering and Technology Laboratory
Something Something Ltd.
My City, Horse Road
Bangalore 560 100, India
Tel: 91 80 852 0261
Fax: 91 80 852 0740
{an_chakrti, depak_ra, shuhis_supta }@address.com
Now what happens is that matcher.find() never finishes executing. Meaning my programs gets stuck at that particular line. I tested with Print statements before and after...etc. Can anyone help me with this problem? Thanksthe only problem is that some of the emails do not contain the full names. For example if from the text below I extract the email addresses...
Reckoning Legislative Compliances with Service Oriented Architecture
� A Proposed Approach1
Naveen N. Kulkarni K M Senthil Kumar Dr. Srinivas Padmanabhuni
Software Engineering and Technology Labs, Infosys Technologies Ltd., Bangalore, India.
{naveen_kulkarni,senthil_km,srinivas_p}@infosys.com
....and I'm also able to tokenize them (into naveen and kulkarni for example). How do I use this information to extract the names, which have me mentioned earlier on in the text. The format in which the names are written is not the same. ie it differs from paper to paper. Here is the idea I had....
it seems that the first part of the email address always exists as it in the full name. If I used that in a regular expression...and went through the text file again trying to match that reg exp...that should work shouldn't it?
here is my attempt...doesn't work though....any ideas...or an explanation why my code doesn't work?
private static void extractNames() {
try {
br = new BufferedReader(new FileReader("titleInfo.txt"));
catch (FileNotFoundException fnfe) {
System.out.println("Cannot locate input file! "+fnfe.getMessage());
System.exit(0);
try {
for (int i=0; i<emails.length;i++){
int index = emails.indexOf("_");
if (emails[i].indexOf("_") != -1){
StringBuffer firstName = new StringBuffer(temp.substring(0,index));
REGEX = "((.)[ ])*"+firstName+"((.)[ ])";
pattern = Pattern.compile(REGEX); // I get a null pointer exception on this line...?
while ((INPUT = br.readLine()) != null )
matcher = pattern.matcher(INPUT);
System.out.println("Current INPUT is: "+INPUT);
System.out.println ("Matche found? " +b);
if (matcher.find()){
System.out.println (INPUT);
System.exit(0);
} catch(IOException ioe){}
catch(PatternSyntaxException pse) {
System.out.println("There is a problem with the regular expression!");
System.out.println("The pattern in question is: "+pse.getPattern());
System.out.println("The description is: "+pse.getDescription());
System.out.println("The message is: "+pse.getMessage());
System.out.println("The index is: "+pse.getIndex());
System.exit(0);
System.out.println("Current REGEX is: "+REGEX);
System.out.println("Current INPUT is: "+INPUT);
Thanks! -
Can anyone say the problem with the attached code. When I run the program, only, maximize, minimize and close options are viewable and nothing else.
import java.awt.Color;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Graphics;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Image;
import java.awt.Insets;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.border.LineBorder;
* Created on Mar 24, 2008
* @author Anand
public class JBackGroundImageDemo extends JFrame
Container con = null;
JPanel panelBgImg;
public JBackGroundImageDemo()
setTitle("JBackGroundImageDemo");
con = getContentPane();
con.setLayout(null);
ImageIcon imh = new ImageIcon("aditi.jpg");
setSize(imh.getIconWidth(), imh.getIconHeight());
panelBgImg = new JPanel()
public void paintComponent(Graphics g)
Image img = new ImageIcon("aditi.jpg").getImage();
Dimension size = new Dimension(img.getWidth(null), img.getHeight(null));
setPreferredSize(size);
setMinimumSize(size);
setMaximumSize(size);
setSize(size);
setLayout(null);
g.drawImage(img, 0, 0, null);
con.add(panelBgImg);
panelBgImg.setBounds(0, 0, imh.getIconWidth(), imh.getIconHeight());
GridBagLayout layout = new GridBagLayout();
JPanel panelContent = new JPanel(layout);
GridBagConstraints gc = new GridBagConstraints();
gc.insets = new Insets(3, 3, 3, 3);
gc.gridx = 1;
gc.gridy = 1;
JLabel label = new JLabel("UserName: ", JLabel.LEFT);
panelContent.add(label, gc);
gc.gridx = 2;
gc.gridy = 1;
JTextField txtName = new JTextField(10);
panelContent.add(txtName, gc);
gc.insets = new Insets(3, 3, 3, 3);
gc.gridx = 1;
gc.gridy = 2;
gc.gridwidth = 2;
JButton btn = new JButton("Login");
panelContent.add(btn, gc);
panelContent.setBackground(Color.GRAY);
panelContent.setBorder(new LineBorder(Color.WHITE));
panelBgImg.add(panelContent);
panelBgImg.setLayout(new FlowLayout(FlowLayout.CENTER, 150, 200));
setResizable(false);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
public static void main(String[] args)
new JBackGroundImageDemo().setVisible(true);
Please help.
Regards,
AneesHere's you a little code example, it works, so take a look at it.
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.MediaTracker;
import java.awt.Toolkit;
import javax.swing.JFrame;
import javax.swing.JPanel;
public class Junk{
public Junk(){
public void makeFrame(){
JFrame j = new JFrame("Junk");
Toolkit t = Toolkit.getDefaultToolkit();
MediaTracker mt = new MediaTracker(j);
Image img = t.getImage("junk.jpg");
mt.addImage(img, 0);
try{
mt.waitForID(0);
}catch(InterruptedException e){
System.out.println("Hey, we were too impatient!");
myPanel p = new myPanel(img);
p.setPreferredSize(new Dimension(img.getWidth(null), img.getHeight(null)));
j.add(p);
j.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
j.pack();
j.setVisible(true);
public static void main(String[] args){
new Junk().makeFrame();
class myPanel extends JPanel{
Image img;
myPanel(Image img){
this.img = img;
public void paintComponent(Graphics g){
g.drawImage(img, 0, 0, this);
}BTW: your image should be in your project folder. -
Problem with JavaScript code in Page Attributes, modal popup...
Hello all!
I'm encountering a problem with a modal popup I wrote in JavaScript.
h3.
The situation*
A user sees an interactive report with rows that are clickable, so these rows are links. Upon clicking the name of something in a row, some items get a certain value and a modal popup shows on the screen. In this modal popup, there are details regarding that particular row the user has clicked, but the problem_ here is...
The modal popup closes itself only seconds after it has been opened.
This must be because I've probably made a mistake somewhere in my code, but I just can't figure out where... It also appears that when I click on a row link, the popup shows, but the progress bar of my toolbar seems to show a loading bar (as if I refreshed the page).
h3.
My code*
This code is located in the _"Function and Global Variable Declaration"_ part, under the _"JavaScript"_ tab. Code is in the _"Page Attributes"_ of my page 24.
function showhide(x){
$x('REGION1').style.display = ( x == 'REGION1') ? 'block' : 'none';
$x('REGION2').style.display = ( x == 'REGION2') ? 'block' : 'none';
$x('REGION3').style.display = ( x == 'REGION3') ? 'block' : 'none';
$( function(){
$('#ModalForm').dialog(
modal: true,
autoOpen: false,
width: 500,
height: 350,
buttons:{ Close: function(){closeForm();}
function openForm()
$('#ModalForm').dialog('open');
function closeForm()
$('#ModalForm').dialog('close');
$(document).ready(function() {
$('a.temppop').click(function() {
openForm();
});This code is located in the _"Header Text"_ part, under the _"Header"_ tab. Code is in the _"Page Attributes"_ of my page 24.
<link rel="stylesheet" href = "http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/base/jquery-ui.css" type="text/css" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js"> </script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.js"> </script>This code is located in the _"Column Link"_ part, you get there by going to the _"Report Attributes"_ of the region called _"Template overview"_ on page 24. This region is an interactive report.
Link Text: #FOODTEMPLATENAME#
Link Attributes: class="temppop"
Target: Page in this Application
Page: 24
Item 1, name: P24_MEALID; item 1, value: #MEALTYPEID#
Item 2, name: P24_TEMPLATEID; item 2, value: #FOODTEMPLATEID#So basically I call the function to open the modal popup by the class name. When a link with that class name in it is clicked, it opens the popup.
To remind you of the problem, the modal popup closes seconds after it has been opened. How do I fix this?
Thanks in advance.
(APEX version 4.1.1.00.23)Come on guys... I really need to know this. :(
-
Problem with the Code in exercise 1.2
In this exercise:
http://www.adobe.com/devnet/flex/pdfs/exercise1.2.pdf
the first part is easy. Then you are instructed to go to the
Debug
Perspective and set a breakpoint that is below the function
you defined, but
ahead of the variable array.
You are shown that the variables window is populated in debug
view ..but
this is just not true. I did this myself .. and then I did it
again by
copying and pasting the code directly from the PDF into the
application and
I got the same result. The application is halted with an
empty variables
window. The example says it should be populated.
I suspect the problem is that the breakpoint was set too
early .. but it is
where it is supposed to be. Is my problem the example (my
code is identical
.. has to be since the second try is copied) or is my problem
the debug
player? I have always had problems with debugging in Flex.
Thanks!
NancyHi,
Flex Builder 3 and Firefox 3 indeed do work together.
But there are some issues when certain extensions are used:
See
http://bugs.adobe.com/jira/browse/FB-13064
which led to a bug being filed against Firefox:
https://bugzilla.mozilla.org/show_bug.cgi?id=441424 -
Problem with ALT codes on Apple Wired Keyboard
May I just note, I have posted this in the "Boot Camp" forum, but run the normal Windows 7 on my computer. I was unable to find a forum purely for Apple hardware.
I am using a Apple Wired Keyboard (MB110B/B) -- British-bought -- on a Windows 7 PC, and I are having some issues with ALT codes. The array of symbols I have to type (pi, sigma, etc) becomes tiresome to insert via the Character Map (on Win7). Basically, entering "alt" (left handside) then 227 does not insert "π" but rather "Ò". alt + 228 (Σ) inserts õ
I don't know if this problem is common for Apple keyboard users on Windows, but is there a way to alter this.
Thanks, Jordan.For a third opinion, be cautious of using a dishwasher as the temperature can get pretty high. If the spill is on the 456 on the number pad, you can try holding the keyboard vertically, soak just that part in distilled water for several minutes to disolve the spill material. Run some denatured (rubbing) alcohol over the numpad, then dry with a hair dryer.
You could also try to remove the key caps...slip dental floss under the key caps in two loops, one from the top one from the bottom. Pull the key caps off one at a time, the wipe the area clean...see if there is any material sticking that needs to be cleaned off.
I do not know what keyboard you have or how it does the switching, but most keyboards today do not use mechanical switches. The switches are sealed capacitance switches so if you clean all the material from the keyboard it may work again.
Or, if you don't feel like going to this much trouble, a visit to your friendly Apple Retailer to purchase a new one may be a good idea. -
File transfer via socket problem (with source code)
I have a problem with this simple client/server filetransfer program. When I run it, only half the file is transfered via the net? Can someone point out to me why this is happening?
Client:
import java.net.*;
import java.io.*;
public class Client {
public static void main(String[] args) {
// IPadressen til server
String host = "127.0.0.1";
int port = 4545;
//Lager streams
BufferedInputStream fileIn = null;
BufferedOutputStream out = null;
// Henter filen vi vil sende over sockets
File file = new File("c:\\temp\\fileiwanttosend.jpg");
// Sjekker om filen fins
if (!file.exists()) {
System.out.println("File doesn't exist");
System.exit(0);
try{
// Lager ny InputStream
fileIn = new BufferedInputStream(new FileInputStream(file));
}catch(IOException eee) {System.out.println("Problem, kunne ikke lage fil"); }
try{
// Lager InetAddress
InetAddress adressen = InetAddress.getByName(host);
try{
System.out.println("- Lager Socket..........");
// �pner socket
Socket s = new Socket(adressen, port);
System.out.println("- Socket klar.........");
// Setter outputstream til socket
out = new BufferedOutputStream(s.getOutputStream());
// Leser buffer inn i tabell
byte[] buffer = new byte[1024];
int numRead;
while( (numRead = fileIn.read(buffer)) >= 0) {
// Skriver bytes til OutputStream fra 0 til totalt antall bytes
System.out.println("Copies "+fileIn.read(buffer)+" bytes");
out.write(buffer, 0, numRead);
// Flush - sender fil
out.flush();
// Lukker OutputStream
out.close();
// Lukker InputStrean
fileIn.close();
// Lukker Socket
s.close();
System.out.println("File is sent to: "+host);
catch (IOException e) {
}catch(UnknownHostException e) {
System.err.println(e);
Server:
import java.net.*;
import java.io.*;
public class Server {
public static void main(String[] args) {
// Portnummer m� v�re det samme p� b�de klient og server
int port = 4545;
try{
// Lager en ServerSocket
ServerSocket server = new ServerSocket(port);
// Lager to socketforbindelser
Socket forbindelse1 = null;
Socket forbindelse2 = null;
while (true) {
try{
forbindelse1 = server.accept();
System.out.println("Server accepts");
BufferedInputStream inn = new BufferedInputStream(forbindelse1.getInputStream());
BufferedOutputStream ut = new BufferedOutputStream(new FileOutputStream(new File("c:\\temp\\file.jpg")));
byte[] buff = new byte[1024];
int readMe;
while( (readMe = inn.read(buff)) >= 0) {
// Skriver filen til disken ut fra input stream
ut.write(buff, 0, readMe);
// Lukker ServerSocket
forbindelse1.close();
// Lukker InputStream
inn.close();
// flush - sender data ut p� nettet
ut.flush();
// Lukker OutputStream
ut.close();
System.out.println("File received");
}catch(IOException e) {System.out.println("En feil har skjedd: " + e.getMessage());}
finally {
try {
if (forbindelse1 != null) forbindelse1.close();
}catch(IOException e) {}
}catch(IOException e) {
System.err.println(e);
}Hi!!
The problem is at this line:
System.out.println("Copies "+fileIn.read(buffer)+" bytes");
Just comment out this line of code and see the difference. This line of code causes another "read" statement to be executed, but you are writing only the data read from the first read statement which causes approximately half the file to be send to the server. -
Problem With Match Transformation
Hi ,
I am using Match transformation to find the duplicates .
My input data like this
EMP NO ENAME SAL DEPTNO
10 SRIRAM MV 10000 100
11 MV SRIRAM 11000 100
12 SRIRAM PV 11000 100
13 SRIHARI 11000 100
14 SUBBIAH 11000 100
15 RAMANA 11000 100
Iam finding the duplicates on Ename .
My ename data like SRIRAM MV, MV SRIRAM like that data . both are duplicate records . for that iam using WORD SIMILARITY option instead of field similarity with match score is 100 and no match score is 99.
But i am getting all are unique records .
If i am using match score is 85 and no match score is 84 then iam getting the result like this .
EMP NO ENAME SAL DEPTNO GROUP_NUMBER MATCH_STATUS MATCH_SCORE
11 MV SRIRAM 11000 100 1 P 94
15 RAMANA 11000 100 U
13 SRIHARI 11000 100 U
10 SRIRAM MV 10000 100 1 D
12 SRIRAM PV 11000 100 1 P 88
14 SUBBIAH 11000 100 U
means MV SRIRAM,SRIRAM MV ,SRIRAM PV comes under one group number with SRIRAM MV as driver and MV SRIRAM as passenger with 94 similarity score and SRIRAM PV as passenger with 88 score.
While i am using the match score i need to get 100% per SRIRAM MV and MV SRIRAM . then whats the settings needed to get correct result. whats the problem with my settings.
Please help me out to solve the problem
Thanks&Regards,
Ramana.Ramana,
<<< My ename data like SRIRAM MV, MV SRIRAM like that data . both are duplicate records . for that iam using WORD SIMILARITY option instead of field similarity with match score is 100 and no match score is 99. >>>
You are looking for an exact match here, but MV SRIRAM and SRIRAM MV are not exactly the same. The characters MV are in different positions. The Word Similarity option compares words instead of the entire field, but the character position also affects the match score.
<<< While i am using the match score i need to get 100% per SRIRAM MV and MV SRIRAM . >>>
You cannot force the the match score to be a specific value. SRIRAM MV and MV SRIRAM are not a 100% match and never will be. What you need to do is adjust the match settings so that the dupe group includes SRIRAM MV and MV SRIRAM but excludes SRIRAM PV. Try Match Score = 90 and No Match Score = 89.
Maybe you are looking for
-
Dear All, We have create the two type of Sales Document 1) Regular Production Invoice 2) Job Work Invoice In this case there is no problem for Regular Invoice, but Job Work Invoice does create the excise document number because job work type of invoi
-
Error message 4000 - ??
I just bought & downloaded my first mp3 album from Amazon, into my itunes. the songs play fine on the computer, but I tried to burn them onto a cd (3 times) and received this message from itunes: attempt to burn disc failed. unknown error (4000). eac
-
Can i upgrade my dual 1.8 G5 processors?
was wondering if i can upgrade my dual 1.8 G5 processors to dual 2.5. is it something i can do or am i stuck with my current set up? if so what can i do to speed it up? i have 2GB ram. new 500GB HD with the current 80GB hard drive.
-
Macbookpro crash associated with Office software and scrolling mission control
Hello, I have been experiencing a crashing problem with my macbookpro. It happens when I work with Office software (Word/Excel) and it is triggered when I scroll the mission control to nevigate between pages. It occurs in ~30% of the times I scroll t
-
Smartview function to set text list measure
Hi All, In an adhoc analysis, I am able to set the text 'High' (ID = 3) to a member, on a seperate sheet, I am able to retrieve the text value of this member using HsGetValue. How do you set a text member using the HsSetValue function? entering a val