BorderLayout Problems - URGENT
I am writing an applet and am having some problems with the borderlayout. My applet is set to use a GridBagLayout for the applet container. With in the GridBag is another panel called viewer. This panel is set to use the BorderLayout. With in the viewer panel, I am placing a Panel in the NORTH portion and another Panel in the CENTER. However, when I do this, the CENTER panel overlaps the NORTH panel. It gets even worse in that when I try moving them around with in the BorderLayout, both panels always appear the same way no matter where I place them. If I put the panel originally in the NORTH in the WEST and the CENTER panel in the EAST, they both still overlap each other in the NORTH. Has anyone seen anything like this before? Any suggestions?
Thanks,
JD
Hi James!
I don't know exactly what happens but I think that there isn't enough space to proper display both panels, then layout manager (BorderLayout) try to adjust as possible...
Try the same scheme with more space, then reduce till possible.
Another try: for the row containing the BorderLayout assign gbc.gridheight = 2 or more!?! (where gbc is a GridBagConstraint variable)
I have two free open source (not about layout) using a variety of layout managers, they could help!
Go to http://www.lazydog.hpg.com.br/ and download those source.
I hope it helps.
Similar Messages
-
J2EE StartUp Problem, URGENT.
Hi all!
I'm having a problem since friday with the J2EE Engine Startup. The problem is that MMC says me that the server is running but i can access to the server by anyway. The developer trace of the jcontrol process is:
[Thr 2968] Tue Aug 09 13:59:50 2005
[Thr 2968] JControlICheckProcessList: process server0 started (PID:1544)
JStartupStartJLaunch: program = C:\usr\sap\J2E\JC00/j2ee/os_libs/jlaunch.exe
-> arg[00] = C:\usr\sap\J2E\JC00/j2ee/os_libs/jlaunch.exe
-> arg[01] = pf=C:\usr\sap\J2E\SYS\profile\J2E_JC00_toshiba-user
-> arg[02] = -DSAPINFO=J2E_00_sdm
-> arg[03] = -file=C:\usr\sap\J2E\JC00\SDM\program\config\sdm_jstartup.properties
-> arg[04] = -nodeName=sdm
-> arg[05] = -nodeId=2
-> arg[06] = -syncSem=JSTARTUP_WAIT_ON_2964
-> arg[07] = -jvmOutFile=C:\usr\sap\J2E\JC00\work\jvm_sdm.out
-> arg[08] = -stdOutFile=C:\usr\sap\J2E\JC00\work\std_sdm.out
-> arg[09] = -locOutFile=C:\usr\sap\J2E\JC00\work\dev_sdm
-> arg[10] = -mode=JCONTROL
-> arg[11] = pf=C:\usr\sap\J2E\SYS\profile\J2E_JC00_toshiba-user
-> lib path = PATH=C:\j2sdk1.4.2_08\jre\bin\server;C:\j2sdk1.4.2_08\jre\bin;C:\oracle\WAS\92\bin;C:\oracle\WAS\92\jre\1.4.2\bin\client;C:\oracle\WAS\92\jre\1.4.2\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\j2sdk1.4.2_08\bin;C:\oracle\WAS\92\Appache\perl\5.00503\bin\MSWin32-x86;C:\usr\sap\J2E\SCS01\exe;C:\usr\sap\J2E\JC00\exe;C:\usr\sap\J2E\SYS\exe\run
-> exe path = PATH=C:\j2sdk1.4.2_08\bin;C:\usr\sap\J2E\JC00\j2ee\os_libs;C:\oracle\WAS\92\bin;C:\oracle\WAS\92\jre\1.4.2\bin\client;C:\oracle\WAS\92\jre\1.4.2\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\j2sdk1.4.2_08\bin;C:\oracle\WAS\92\Appache\perl\5.00503\bin\MSWin32-x86;C:\usr\sap\J2E\SCS01\exe;C:\usr\sap\J2E\JC00\exe;C:\usr\sap\J2E\SYS\exe\run
[Thr 2968] Tue Aug 09 13:59:51 2005
[Thr 2968] JControlICheckProcessList: process SDM started (PID:1556)
[Thr 1188] Tue Aug 09 14:01:01 2005
[Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
[Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
[Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
[Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
[Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
[Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
[Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
[Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
[Thr 1188] Tue Aug 09 14:01:58 2005
[Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
[Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
[Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
[Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
[Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
[Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
[Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
[Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
[Thr 1188] Tue Aug 09 14:10:25 2005
[Thr 1188] JControlMSReadMessage: NiPeek() returns -5 NIETIMEOUT
[Thr 1188] Tue Aug 09 14:15:45 2005
[Thr 1188] JControlMSReadMessage: NiPeek() returns -5 NIETIMEOUT
[Thr 1188] Tue Aug 09 14:20:46 2005
[Thr 1188] JControlMSReadMessage: NiPeek() returns -5 NIETIMEOUT
[Thr 1188] Tue Aug 09 14:26:06 2005
[Thr 1188] JControlMSReadMessage: NiPeek() returns -5 NIETIMEOUT
[Thr 1188] Tue Aug 09 14:31:07 2005
[Thr 1188] JControlMSReadMessage: NiPeek() returns -5 NIETIMEOUT
[Thr 1188] Tue Aug 09 14:36:27 2005
[Thr 1188] JControlMSReadMessage: NiPeek() returns -5 NIETIMEOUT
[Thr 1188] Tue Aug 09 14:41:28 2005
[Thr 1188] JControlMSReadMessage: NiPeek() returns -5 NIETIMEOUT
Then i try to login the visual admin gives me a windows error and the msg_server process shuts down alone. Then i restart that node and agregate the following lines to the trace:
Thr 1188] Tue Aug 09 14:42:25 2005
[Thr 1188] *** ERROR => MsINiRead: NiBufReceive failed (NIECONN_BROKEN) [msxxi.c 2488]
[Thr 1188] *** ERROR => MsIReadFromHdl: NiRead (rc=NIECONN_BROKEN) [msxxi.c 1652]
[Thr 1188] Tue Aug 09 14:42:27 2005
[Thr 1188] ***LOG Q0I=> NiPConnect2: SiPeekPendConn (10061: WSAECONNREFUSED: Connection refused) [nixxi_r.cpp 8588]
[Thr 1188] *** ERROR => MsIAttachEx: NiBufConnect to toshiba-user/3601 failed (rc=NIECONN_REFUSED) [msxxi.c 633]
[Thr 1188] *** WARNING => Can't reconnect to message server (toshiba-user/3601) [rc = -100]-> reconnect [jcntrms.c 295]
[Thr 1188] Tue Aug 09 14:42:32 2005
[Thr 1188] *** ERROR => MsIAttachEx: NiBufConnect to toshiba-user/3601 failed (rc=NIECONN_REFUSED) [msxxi.c 633]
[Thr 1188] *** WARNING => Can't reconnect to message server (toshiba-user/3601) [rc = -100]-> reconnect [jcntrms.c 295]
[Thr 1188] Tue Aug 09 14:42:38 2005
[Thr 1188] *** ERROR => MsIAttachEx: NiBufConnect to toshiba-user/3601 failed (rc=NIECONN_REFUSED) [msxxi.c 633]
[Thr 1188] *** WARNING => Can't reconnect to message server (toshiba-user/3601) [rc = -100]-> reconnect [jcntrms.c 295]
[Thr 1188] Tue Aug 09 14:42:44 2005
[Thr 1188] *** ERROR => MsIAttachEx: NiBufConnect to toshiba-user/3601 failed (rc=NIECONN_REFUSED) [msxxi.c 633]
[Thr 1188] *** WARNING => Can't reconnect to message server (toshiba-user/3601) [rc = -100]-> reconnect [jcntrms.c 295]
[Thr 1188] Tue Aug 09 14:42:49 2005
[Thr 1188] JControlMSConnect: reconnected to message server (toshiba-user/3601)
[Thr 1188] Tue Aug 09 14:48:11 2005
[Thr 1188] JControlMSReadMessage: NiPeek() returns -5 NIETIMEOUT
[Thr 1188] Tue Aug 09 14:53:12 2005
[Thr 1188] JControlMSReadMessage: NiPeek() returns -5 NIETIMEOUT
[Thr 1188] Tue Aug 09 14:58:32 2005
[Thr 1188] JControlMSReadMessage: NiPeek() returns -5 NIETIMEOUT
I try to login the visual admin again and gives me the following error: "Cannot open connection on host: 191.9.6.22 and port: 50004"
Looking the log and trace files i see the following errors:
- SAPEngine_System_Thread[impl:5]_5##0#0#Error#1#/System/Server#Plain###Encomi: failed to connect to toshiba-user/3201(Connection refused: connect)#
- java.net.SocketException: socket closed
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353)
at java.net.ServerSocket.implAccept(ServerSocket.java:448)
at java.net.ServerSocket.accept(ServerSocket.java:419)
at com.sap.engine.core.port.impl0.ServerSocketListener.run(ServerSocketListener.java:87)
- erver socket listener opened by service on socket encountered error. The listener will be stopped.#2#p4#ServerSocket[addr=/0.0.0.0,port=0,localport=50004]
I dont know whats happening, if somebody knows i hope that helps me. Please is urgent.
Thx and Rgds.
GregoryHi, thx a lot both.
Respect the link
http://<hostname>:50<instanceno>00/sap/monitoring/SystemInfo , i cant access it. I cant access by telnet, by visual admin.
In the work folder under \usr\sap\<sid>\JC00 i found that the last updated files are:
- available.txt that contains the following data:
Unavailable 08.08.2005 10:46:53 - 08.08.2005 10:58:54
Available 08.08.2005 10:59:54 - 08.08.2005 13:52:54
Unavailable 08.08.2005 13:53:54 - 08.08.2005 13:53:54
Available 08.08.2005 13:54:54 - 08.08.2005 14:03:54
Unavailable 08.08.2005 14:04:54 - 08.08.2005 14:04:54
Available 08.08.2005 14:05:54 - 08.08.2005 14:34:54
Unavailable 08.08.2005 14:35:54 - 08.08.2005 14:39:44
Unavailable 08.08.2005 14:56:17 - 08.08.2005 16:24:13
Unavailable 08.08.2005 16:28:07 - 08.08.2005 16:29:07
Unavailable 08.08.2005 16:34:36 - 08.08.2005 17:17:58
Unavailable 09.08.2005 08:13:36 - 09.08.2005 08:54:33
Unavailable 09.08.2005 08:57:04 - 09.08.2005 12:46:25
Available 09.08.2005 12:47:25 - 09.08.2005 13:26:25
Available 09.08.2005 13:43:56 - 09.08.2005 13:55:56
Unavailable 09.08.2005 13:56:40 - 09.08.2005 14:04:57
Available 09.08.2005 14:05:57 - 09.08.2005 16:16:57
Unavailable 09.08.2005 16:17:57 - 09.08.2005 17:27:12
Unavailable 10.08.2005 08:10:30 - 10.08.2005 08:35:39
Available 10.08.2005 08:36:39 - 10.08.2005 09:16:39
Available 10.08.2005 12:33:51 - 10.08.2005 14:01:51
- dev_jcontrol that contains the information displayed in the developer trace of jcontrol process(and y mentioned above)
- dev_dispatcher that contains the following info:
[Thr 2664] Wed Aug 10 08:33:04 2005
[Thr 2664] JHVM_RegisterNatives: registering methods in com.sap.bc.proj.jstartup.JStartupFramework
[Thr 2664] JLaunchISetClusterId: set cluster id 5761000
[Thr 2664] JLaunchISetState: change state from [Initial (0)] to [Waiting for start (1)]
[Thr 2664] JLaunchISetState: change state from [Waiting for start (1)] to [Starting (2)]
[Thr 3320] Wed Aug 10 08:33:21 2005
[Thr 3320] JLaunchISetP4Port: set p4 port 50004
[Thr 3528] Wed Aug 10 08:33:26 2005
[Thr 3528] JLaunchISetTelnetPort: set telnet port 50008
[Thr 3528] JLaunchISetTelnetPort: set telnet port 50008
[Thr 3584] Wed Aug 10 08:33:55 2005
[Thr 3584] JLaunchISetHttpPort: set http port 50000
[Thr 2664] Wed Aug 10 08:34:02 2005
[Thr 2664] JLaunchISetState: change state from [Starting (2)] to [Running (3)]
[Thr 2568] Wed Aug 10 08:34:08 2005
[Thr 2568] JHVM_RegisterNatives: registering methods in com.sap.mw.rfc.driver.CpicDriver
[Thr 3660] Wed Aug 10 08:35:07 2005
[Thr 3660] JLaunchISetP4Port: set p4 port 50004
[Thr 3600] Wed Aug 10 08:36:34 2005
[Thr 3600] JLaunchISetHttpPort: set http port 50000
[Thr 3612] Wed Aug 10 12:43:40 2005
[Thr 3612] JLaunchISetHttpPort: set http port 50000
[Thr 3612] JLaunchISetP4Port: set p4 port 50004
[Thr 3612] JLaunchISetTelnetPort: set telnet port 50008
- dev_server0 that contains:
[Thr 2676] Wed Aug 10 08:33:06 2005
[Thr 2676] JHVM_RegisterNatives: registering methods in com.sap.bc.proj.jstartup.JStartupFramework
[Thr 2676] JLaunchISetClusterId: set cluster id 5761050
[Thr 2676] JLaunchISetState: change state from [Initial (0)] to [Waiting for start (1)]
[Thr 2676] JLaunchISetState: change state from [Waiting for start (1)] to [Starting (2)]
[Thr 4296] Wed Aug 10 08:34:58 2005
[Thr 4296] JHVM_RegisterNatives: registering methods in com.sap.mw.rfc.driver.CpicDriver
[Thr 4296] Wed Aug 10 08:35:00 2005
[Thr 4296] JHVM_RegisterNatives: registering methods in com.sap.mw.jco.util.SAPConverters
[Thr 4296] JHVM_RegisterNatives: registering methods in com.sap.mw.jco.util.SAPCharToNUCByteConverter
[Thr 4296] Wed Aug 10 08:35:01 2005
[Thr 4296] JHVM_RegisterNatives: registering methods in com.sap.mw.jco.util.SAPNUCByteToCharConverter
[Thr 2676] Wed Aug 10 08:35:07 2005
[Thr 2676] JLaunchISetState: change state from [Starting (2)] to [Starting applications (10)]
[Thr 208] Wed Aug 10 08:36:34 2005
[Thr 208] JLaunchISetState: change state from [Starting applications (10)] to [Running (3)]
I still dont know whats happening. And i need to solve the problem urgent. I hope u can help me.
Thx and Rgds.
Gregory. -
I´m having trouble with FormsCentral.
My form is running about 8 months with no problems.
Yesterday people started to complain that the system doesn´t accept any date.
That means the date field restricts date entries, from date dd/mm/aaaa (brazilian format) to another dd/mm/aaaa, but every date that users input in, is considered by the system as invalid, even it´s a correct and valid date right between the interval specified!
I need Help Urgent!!!
I depend on these forms to finish the payrol service from here.
Thanks
I´ll be waiting.
Maurício Galletti
Message was edited by: SNOWMAUSS
It look like the system accepts just dates starting from the date of today.
I´m testing.
Please help.
Thanks
Message was edited by: SNOWMAUSS
It looks like the system have some problem just with the date 20/10/2013?!
I´ve fixed the problem change the interval from 20/10/2013 to another date and used 21/10/2013 to another date and it works!
But I think something is wrong with the 20/10/2013 date?!
To reproduce the erros just create a new form with date feature with this exaclty configurations and the bug appears:
I´ll keep waiting
Message was edited by: SNOWMAUSSHi
I´ve concluded that the problem persist if the date interval starts at the
specific date "20/10/2013". Don´t know why?!
Look at the screen capture above, you aks for
Thanks a lot
image: Imagem inline 1
Maurício P. Galletti
Contador
[email protected]
( 55 11 3331-5567
www.cadt.com.br
2013/10/29 Genevieve Laroche <[email protected]>
Re: DATE FIELD PROBLEMS - URGENT created by Genevieve Laroche<http://forums.adobe.com/people/Genevieve+Laroche>in
FormsCentral - View the full discussion<http://forums.adobe.com/message/5797083#5797083 -
Details:
Hi i can not buy any thing from the app store and any thing from in side any games pls fix my problem urgent and as soon
Note this is second email pls answer and fix my problem
<Email Edited by Host>These are public forums, you are not talking to iTunes Support here (most of the people here, including myself, are fellow users) - I've asked the hosts to remove your email address from your post
If you are getting a message to contact iTunes support then you can do so via this page and ask them why the message is appearing (we won't know why) : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption
If it's a different problem ... ? -
HTML Link problem (Urgent!)
I'm writing a prrogram that displays an HTML file. I used a JEditorPane. I tryed using the hyperlinkListener but it doesn't work! here's the class I wrote...
can anyone help please?
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.util.*;
import javax.swing.*;
import browser.*;
import java.net.*;
import javax.swing.event.*;
* Classe :
* Description :
* Societe : Medias France
* @version 1.0
public class Aide extends JFrame implements HyperlinkListener
BrowserInterface bI;
URL url1;
static Interface parent;
public Aide(String titre, Interface i)
super(titre);
parent = i;
getContentPane().setLayout(new BorderLayout());
//bI = new BrowserInterface(jp);
setBounds(10,10,800,600);
addWindowListener(new WindowAdapter()
public void windowClosing(WindowEvent e)
quit(null);
try
url1 = new URL("file:/home/darkazan/java/BDO/tablegen-1.8/help/help.html");
//bI.URL_Process(url1);
catch (MalformedURLException e)
System.out.println("probleme " + e.toString());
JEditorPane editorPane = new JEditorPane();
editorPane.setEditable(false);
try
editorPane.setPage(url1);
catch (IOException e)
System.err.println("Attempted to read a bad URL: " + url1);
JScrollPane editorScrollPane = new JScrollPane(editorPane);
editorScrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
editorScrollPane.setPreferredSize(new Dimension(800, 600));
getContentPane().add(editorScrollPane, "Center");
pack();
setVisible(true);
public void hyperlinkListener(HyperlinkEvent e)
if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED)
// do something on HL click
System.out.println("ouverture");
if (e.getEventType() == HyperlinkEvent.EventType.ENTERED)
// do something on mouse over HL
// do something on HL click
System.out.println("bbbbbbbbbbbbbbbbbbbb");
if (e.getEventType() == HyperlinkEvent.EventType.EXITED)
// do something on HL click
System.out.println("ggggggggggggggggggg");
// do something on mouse moved away from HL
public void hyperlinkUpdate(HyperlinkEvent e)
public static void main(String[] args)
Aide aide1 = new Aide("Help", parent);
* Quitter l'application
* @param e L'evenement recu
* @return Sans objet.
void quit(ActionEvent e)
parent.bAide.setEnabled(true);
dispose();
}also check your file protocol it should look like this: file:/// with three slashes(i think?)
here Mr. Urgent, my html viewer: (and it works) ;P
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.text.*;
import javax.accessibility.*;
import java.awt.*;
import java.awt.event.*;
import java.net.URL;
import java.net.MalformedURLException;
import java.io.IOException;
public class iROCHelp extends JPanel implements HyperlinkListener{
//ATTRIBUTES
JEditorPane html;
private static boolean HelpShowing = false;
private static JFrame selTopic;
//METHODS
//Constructor
public iROCHelp(java.net.URL URLstr){
//setBorder(new EmptyBorder());
setLayout(new BorderLayout());
try{
URL url = URLstr;
if(url != null){
html = new JEditorPane(url);
html.setEditable(false);
html.addHyperlinkListener(this);
JScrollPane scroller = new JScrollPane();
JViewport vp = scroller.getViewport();
vp.add(html);
vp.setBackingStoreEnabled(true);
add(scroller, BorderLayout.CENTER);
catch (MalformedURLException e){
System.out.println("Malformed URL: " + e);
catch (IOException e){
System.out.println("IOException: " + e);
}//HelpTopic CONSTRUCTOR
public void hyperlinkUpdate(HyperlinkEvent e){
if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED){
linkActivated(e.getURL());
}//hyperlinkUpdate
protected void linkActivated(URL u){
Cursor c = html.getCursor();
Cursor waitCursor = Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR);
html.setCursor(waitCursor);
SwingUtilities.invokeLater(new PageLoader(u, c));
}//linkActivated
class PageLoader implements Runnable{
PageLoader(URL u, Cursor c){
url = u;
cursor = c;
public void run(){
if (url == null){
// restore the original cursor
html.setCursor(cursor);
Container parent = html.getParent();
parent.repaint();
else{
Document doc = html.getDocument();
try{
html.setPage(url);
catch (IOException ioe){
html.setDocument(doc);
finally{
// schedule the cursor to revert after
// the paint has happended.
url = null;
SwingUtilities.invokeLater(this);
}//else
}//run
URL url;
Cursor cursor;
}//PageLoader
public static void spawnHelp(java.net.URL URLStr){
if (!HelpShowing){
selTopic = new JFrame();
selTopic.getContentPane().setLayout(new BorderLayout());
selTopic.getContentPane().add(new iROCHelp(URLStr),BorderLayout.CENTER);
Dimension dim = selTopic.getToolkit().getScreenSize();
selTopic.setLocation((int)dim.getWidth()/2-selTopic.getWidth()/2,(int)dim.getHeight()/2-selTopic.getHeight()/2);
selTopic.setSize(500, 400);
selTopic.setTitle("Remote Operators Console Help");
selTopic.addWindowListener(new WindowAdapter(){
public void windowClosing(WindowEvent e){
closeHelp();
}//windowClosing
selTopic.show();
HelpShowing = true;
}//if help showing
}//spawnHelp
public static void closeHelp(){
if (HelpShowing){
selTopic.dispose();
HelpShowing = false;
}//closeHelp
}//HelpTopic CLASS -
Hi all,
iam getting a problem regarding pricing.
When i make a Sales doc. with reference to an invoice,
everything is being copied from invoice to the sales doc.-customer, material and its no. , sales area, payment terms, incoterms, and material qty. also.
But the pricing of the invoice is not getting copied on to the sales doc.
I have maintained all checks available in the sales doc. type and the item category of the sales doc. type i.e
Pricing: X
and then in OVKK , i have maintained the doc. pric. procedure of the sales doc. type with the pricing procedure of the invoice
and again in the copy control measures, i have maintained
Pricing type: D
But i still not able to copy pricing procedure from the invoice to the Sales doc.
I want the soltn. urgently.
Thanks in advance
Souravrun VTAF for your sales doc type/bil type
and check item category
set flag for "update doc flow"
and pricing type B -
Media reconnection problem URGENT!
I am in a very urgent situation.
Working on a feature length project and today after opening 2 sequences I was working on yesterday I had to relink media, because my scratch disks were not connected.
While relinking, final cut pop up says that some clips' media start & end has changed , continue with relinking or cancel. I had to continue work so I went on. Alas, now i am in front of a nightmare!
Both sequencies have been altered. In some areas the edits look the same but the content is different, in other areas cuts have been totaly removed.
please help.Thank you for trying to help. These file were imported by log and capture and were atomaticaly converted to prores 422 LT. I did not mess around with file names, as the names were given during the log and transfer proccess.
This is definetely a final cut bug.
The problem dissapeared (not solved though, as the reasons remain unknown) with the folowing way:
a) I open one of the backed up files and looked at my rough cut wich consists of sequencies.
b) By playing the 2 specific sequencies on the rough cut, there was no error in the edit.
c) By opening these 2 sequencies on the project browser, there was a different edit !!!!
d) By going back to the rough cut and double clicking on the nested sequence, I could see the original edit.
e) Now I had one specific sequence in the timeline, the same name, the identical sequence, opened in two different tabs. In one tab (the sequence that i entered to through the rough cut) the edit was the original, in the other tab (the one that i opened through the project browser) the edit was distorted !!!
f) I copied the clips of the original edit to a newly created sequence.
g) I deleted the old- problematic sequence
h) i repeated the process with the second sequence that was altered by final cut on its own will.
I hope this will help someone in a similar situation and I keep this question as unsolved, because in reality noone really knows - until now- the reason for this situation. Thank god it was solved. -
MSI 6368 with USB problem (URGENT)
I have an urgent need to solve this problem.
Client has a computer based on this motherboard, with Celeron 1.1 Ghz, WIN 98 Second Edition.
The USB port works with a Microsoft mouse. Client tries to install a Canon digital camera (D60), but the USB port cannot see the camera.
Is there something I should be doing?
Thanks a lottry a different cable? Not sure about Canon but they might need a program that they supply with the camera to move the files off of the camera. Sort of like MP3 players and how they ship with their own proprietary software to move files onto the player and etc.
-
JViewport Resize problem -- Urgent!
I am trying to make a program that allows the user to dynamically resize a scrollable JPanel. I have added resize buttons that work well. The JScrollPane works well, but when the JViewport's View is set to the bottom right corner of the JPanel, and the user attempts to resize the JPanel, the JViewport repaints its view to the top left corner, hence undoing any resizing. Resizing should not change the View, even if the component is no longer visible in the view.
Here is a code example (please pardon the length and lack of comments):
import javax.swing.*;
import java.awt.*;
import javax.swing.event.*;
import java.awt.event.*;
public class JViewportBug extends JPanel implements Scrollable, ComponentListener
public JViewportBug()
this.setLayout( null );
public Dimension getPreferredScrollableViewportSize()
return getPreferredSize();
public boolean getScrollableTracksViewportHeight()
return false;
public boolean getScrollableTracksViewportWidth()
return false;
public int getScrollableBlockIncrement( Rectangle visibleRect, int orientation, int direction )
if( orientation == SwingConstants.VERTICAL )
return (int)( visibleRect.getHeight() * 9 / 10 );
return (int)( visibleRect.getWidth() * 9 / 10 );
public int getScrollableUnitIncrement( Rectangle visibleRect, int orientation, int direction )
return 5;
public void componentHidden(ComponentEvent e)
public void componentMoved(ComponentEvent e)
public void componentResized(ComponentEvent e)
Dimension size = ( (Component)e.getSource() ).getSize();
this.setBounds( 0, 0, 20 + size.width, 20 + size.height );
this.setPreferredSize( new Dimension( 20 + size.width, 20 + size.height ) );
public void componentShown(ComponentEvent e)
public static void main( String[] args )
JViewportBug bug = new JViewportBug();
JFrame frame = new JFrame( "JViewport Bug" );
frame.setExtendedState( JFrame.MAXIMIZED_BOTH );
JScrollPane jsp = new JScrollPane( bug );
JPanel viewable = new JPanel();
bug.add( viewable );
viewable.addComponentListener( bug );
viewable.setBounds( 10, 10, 200, 200 );
JDesktopPane jdp = new JDesktopPane();
jdp.setLayout( null );
for( int i = 0; i < 8; i++ )
ResizeButton rb = new ResizeButton( viewable, i, true );
bug.add( rb );
viewable.addComponentListener( rb );
frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
viewable.setBackground( Color.white );
frame.getContentPane().add( jdp, BorderLayout.CENTER );
JInternalFrame jif = new JInternalFrame( "", true, true, true, true );
jif.getContentPane().add( jsp );
jdp.add( jif );
jif.setSize( 500, 500 );
bug.setPreferredSize( new Dimension( viewable.getWidth() + 20, viewable.getHeight() + 20 ) );
jif.setVisible( true );
frame.setVisible( true );
class ResizeButton extends JComponent implements MouseMotionListener, MouseListener, ComponentListener
public static final int NW_RESIZE_BUTTON = 0;
public static final int N_RESIZE_BUTTON = 1;
public static final int NE_RESIZE_BUTTON = 2;
public static final int E_RESIZE_BUTTON = 3;
public static final int SE_RESIZE_BUTTON = 4;
public static final int S_RESIZE_BUTTON = 5;
public static final int SW_RESIZE_BUTTON = 6;
public static final int W_RESIZE_BUTTON = 7;
JComponent resize;
int buttonType;
boolean enabled;
public ResizeButton( JComponent aComponent, int type, boolean isEnabled )
resize = aComponent;
buttonType = type;
setBounds();
enabled = isEnabled;
this.addMouseMotionListener( this );
this.addMouseListener( this );
public int getType()
return buttonType;
public void mouseEntered( MouseEvent e )
if( enabled )
switch( ( (ResizeButton)e.getSource() ).getType() )
case 0:
getParent().setCursor( new Cursor( Cursor.NW_RESIZE_CURSOR ) );
break;
case 1:
getParent().setCursor( new Cursor( Cursor.N_RESIZE_CURSOR ) );
break;
case 2:
getParent().setCursor( new Cursor( Cursor.NE_RESIZE_CURSOR ) );
break;
case 3:
getParent().setCursor( new Cursor( Cursor.E_RESIZE_CURSOR ) );
break;
case 4:
getParent().setCursor( new Cursor( Cursor.SE_RESIZE_CURSOR ) );
break;
case 5:
getParent().setCursor( new Cursor( Cursor.S_RESIZE_CURSOR ) );
break;
case 6:
getParent().setCursor( new Cursor( Cursor.SW_RESIZE_CURSOR ) );
break;
case 7:
getParent().setCursor( new Cursor( Cursor.W_RESIZE_CURSOR ) );
public void mouseExited( MouseEvent e )
if( enabled )
getParent().setCursor( new Cursor( Cursor.DEFAULT_CURSOR ) );
public void mouseClicked( MouseEvent e )
public void mousePressed( MouseEvent e )
public void mouseReleased( MouseEvent e )
public void mouseMoved( MouseEvent e )
public void mouseDragged( MouseEvent e )
if( enabled && e.getSource() instanceof ResizeButton )
int clickedX = e.getX();
int clickedY = e.getY();
int width, height;
switch( ( (ResizeButton)e.getSource() ).getType() )
case NW_RESIZE_BUTTON:
width = resize.getX() + resize.getWidth() - this.getX() - clickedX > 1 ? resize.getX() - this.getX() - clickedX + resize.getWidth() : 1;
height = ( resize.getY() + resize.getHeight() - this.getY() - clickedY > 1 ? resize.getY() - this.getY() - clickedY + resize.getHeight() : 1 );
resize.setBounds( resize.getX() + resize.getWidth() - this.getX() - clickedX > 1 ? this.getX() + clickedX : resize.getX() + resize.getWidth() - 1,
resize.getY() + resize.getHeight() - this.getY() - clickedY > 1 ? this.getY() + clickedY : resize.getY() + resize.getHeight() - 1,
width,
height );
break;
case N_RESIZE_BUTTON:
height = resize.getY() + resize.getHeight() - this.getY() - clickedY > 1 ? resize.getY() - this.getY() - clickedY + resize.getHeight() : 1;
resize.setBounds( resize.getX(),
resize.getY() + resize.getHeight() - this.getY() - clickedY > 1 ? this.getY() + clickedY : resize.getY() + resize.getHeight() - 1,
resize.getWidth(),
height );
break;
case NE_RESIZE_BUTTON:
width = this.getX() + clickedX - resize.getX() > 1 ? this.getX() + clickedX - resize.getX() : 1;
height = resize.getY() + resize.getHeight() - this.getY() - clickedY > 1 ? resize.getY() - this.getY() - clickedY + resize.getHeight() : 1;
resize.setBounds( resize.getX(),
resize.getY() + resize.getHeight() - this.getY() - clickedY > 1 ? this.getY() + clickedY : resize.getY() + resize.getHeight() - 1,
width,
height );
break;
case E_RESIZE_BUTTON:
width = this.getX() + clickedX - resize.getX() > 1 ? this.getX() + clickedX - resize.getX() : 1;
resize.setBounds( resize.getX(),
resize.getY(),
width,
resize.getHeight() );
break;
case SE_RESIZE_BUTTON:
width = this.getX() + clickedX - resize.getX() > 1 ? this.getX() + clickedX - resize.getX() : 1;
height = this.getY() + clickedY - resize.getY() > 1 ? this.getY() + clickedY - resize.getY() : 1;
resize.setBounds( resize.getX(),
resize.getY(),
width,
height );
break;
case S_RESIZE_BUTTON:
height = this.getY() + clickedY - resize.getY() > 1 ? this.getY() + clickedY - resize.getY() : 1;
resize.setBounds( resize.getX(),
resize.getY(),
resize.getWidth(),
height );
break;
case SW_RESIZE_BUTTON:
width = resize.getX() + resize.getWidth() - this.getX() - clickedX > 1 ? resize.getX() - this.getX() - clickedX + resize.getWidth() : 1;
height = this.getY() + clickedY - resize.getY() > 1 ? this.getY() + clickedY - resize.getY() : 1;
resize.setBounds( resize.getX() + resize.getWidth() - this.getX() - clickedX > 1 ? this.getX() + clickedX : resize.getX() + resize.getWidth() - 1,
resize.getY(),
width,
height );
break;
case W_RESIZE_BUTTON:
width = resize.getX() + resize.getWidth() - this.getX() - clickedX > 1 ? resize.getX() - this.getX() - clickedX + resize.getWidth() : 1;
resize.setBounds( resize.getX() + resize.getWidth() - this.getX() - clickedX > 1 ? this.getX() + clickedX : resize.getX() + resize.getWidth() - 1,
resize.getY(),
width,
resize.getHeight() );
public void setBounds()
switch( buttonType )
case NW_RESIZE_BUTTON:
this.setBounds( resize.getX() - 5,
resize.getY() - 5,
5,
5 );
break;
case N_RESIZE_BUTTON:
this.setBounds( (int)( ( resize.getWidth() + 2 * resize.getX() ) / 2 ) - 2,
resize.getY() - 5,
5,
5 );
break;
case NE_RESIZE_BUTTON:
this.setBounds( resize.getWidth() + resize.getX(),
resize.getY() - 5,
5,
5 );
break;
case E_RESIZE_BUTTON:
this.setBounds( resize.getWidth() + resize.getX(),
(int)( ( resize.getHeight() + 2 * resize.getY() ) / 2 ) - 2,
5,
5 );
break;
case SE_RESIZE_BUTTON:
this.setBounds( resize.getWidth() + resize.getX(),
resize.getHeight() + resize.getY(),
5,
5 );
break;
case S_RESIZE_BUTTON:
this.setBounds( (int)( ( resize.getWidth() + 2 * resize.getX() ) / 2 ) - 2,
resize.getHeight() + resize.getY(),
5,
5 );
break;
case SW_RESIZE_BUTTON:
this.setBounds( resize.getX() - 5,
resize.getHeight() + resize.getY(),
5,
5 );
break;
case W_RESIZE_BUTTON:
this.setBounds( resize.getX() - 5,
(int)( ( resize.getHeight() + 2 * resize.getY() ) / 2 ) - 2,
5,
5 );
public void componentHidden(ComponentEvent e)
public void componentMoved(ComponentEvent e)
public void componentResized(ComponentEvent e)
this.setBounds();
public void componentShown(ComponentEvent e)
public void setEnabled( boolean enable )
enabled = enable;
public boolean isEnabled()
return enabled;
public void paint( Graphics g )
( (Graphics2D)g ).fillRect( 0, 0, 5, 5 );
}Hi bbritta,
Thanks for the time. I guess the setLocation MIGHT be off, tho ideally, it should place the tv somewhere near the right bottom corner of the screen.
The basic requirement I have is in the code written. This is what I want. When I start my application, I want the small tv screen only to appear, with the two colored panels (that shall obviously contain some other code). When my mouse hovers on this small screen, the buttons should appear in a panel just below the small screen. So I have used a JLayered pane that displays two separate gifs, one for the small screen, and one for the buttons panel. On the small screen gif, I have added two panels to layer 1, and on the button panel gif, I have added 3 buttons.
What is happening is that if I set the frame size to the size of the small screen at startup (before show()), then on mouse hover, the frame size increases, but the layered pane size stays the same, and hence i cannot see the button panel. But if I start out with the button panel showing (frame size initially set to the larger value), then on mouse exit, the button panel disappears, and reappears properly on mouse enter. But I don't want to set the original size to the larger value, since only the small screen must be seen first.
Did I make my self clear? The whole problem is that on mouse hover, u cannot see the button panel, till u change the setSize() code in initializeFrame() to use c_o_FULL_TV_SIZE instead of c_o_TV_SIZE. That u cannot see the buttons IS my problem!
Thanks,
Shefali. -
PROCEDURE PROBLEM, URGENT ...
Hi ,
I am geting an error while puting hint in a sub query. The query is like this
SELECT /*+ INDEX (EMP EMPIDX) */
EMPNO
FROM EMP
WHERE DEPTNO IN (SELECT /*+ INDEX (DEPIDX) */ DEPTNO FROM DEP);
My query is similar to the above one. And this query is part of Cursor defination in a Procedure. So when i try to compile the procedure it gives me error like
PDE-USW002 The source of the stored program unit source is incomplete.
QUESTION IS HOW TO AVOID THE ERROR. Because if i remove the hint this statement takes about 21 mins, if I put the hint it runs in 30 seconds. So I need the hints put in place badly . Please suggest something . This is very urgent .
Thanks
FerozIf that is really what is causing the problem and it won't compile in Forms Builder, then about the only way would be to create a server-side package/procedure, and call the procedure from the form and do the work on the server, and pass back the results to the form via parameters in the procedure call.
-
File Related problem--- Urgent
Hi Friend's
I have a Problem that and i am Looking for the solution. please Help me.
There is a big file that content 5 lack record or may be more then this. my task is that i have to read this file and if there is any duplicate record then i have to remove this. for that i take two file.
1. out.csv
2. Reject.csv
out.csv content unique record and that record witch are duplicate i have to keep this on reject.csv
Logic...................
1. First i read my main file and keep this record in a vector. now i again read a record from main file and check that this record is in vector or not. if yes-- then keep this in reject and if not then keep this in out file. but this logic fail because of that when record reached till 2.5 lack then exception come out of memory. vector size is too much big.
2. in second for i read a record from main file and then write this in out file. next time when i read this file
then at the same time i read out.csv and match main file reaord with the record of out file. if match then keep this in Reject.csv else write this in out.csv. this will also fail becouse it is taking more then 10 hours as i feel.
so i want help in the problem so that i can form my task in very short time period.......................................
it's very urgent for me. my project is dependent on this thing. Help me.
ThanksWell 2.5 lakh records is a huge number as far as applying logic is concerned and keeping that in memory like a vector or something is certainly a bad idea.
If the Stated was a give case to me.I'd try apply data pagination here is a sample logic which i can think off.
1).I'd first define what is so called a Records as an entity or a javabean which overides equality method of two objects depending on stated logic
2).I'd first fix a constant pagesize depending applying some probablity logic.
3).Now i'd choose three set of files on which i delete the second file once the merging process is completed.
4).Now on the first go i'd like to parse the the intial file and extract records and save them as JavaBean instances and save in a SortedSet / TreeSet interface.
5).Consequtively, i'd be running a different thread which works on a Random Access file and inserts records in that temp random access file.
6).Now,if the size of Set attains the fixed page size cache the results in Random Access file using the other thread and the empty the set once
7).Would repeat the process uptil end of the parent file.
8).Now,from the second file apply your initial logic only change is you'd using a Set of Entites.
9).That should reduce the your memory problem to a larger extent.
and The reason why i'm going for Set doesn't save duplicate records.
or as said adviced by my fellow posters you might think of using a database in place and solve the issue with simple database queries and expressing the entities accordingly.
REGARDS,
RaHuL -
Confirmation Mail Problem (urgent Solution) Please
Dear Guys,
After over the Registration Process, I want to send one confirmation mail. Mail Coding is properly worked. Only mail sent to my company id. But not to send yahoo, rediff and other things. what is the problem. I have changed the coding lot of time. But i was confused. I don't know what is the exact solution. If anybody knows please tell me. Urgent thing.Hi This is My JSP mail coding. Any problem in my mail coding. Please see that and tell me what did i do the errors. I dont know what errors?
String host="mail.myCompany.com";
String from="[email protected]";
String to=ss; // �ss� is JSP requestParameter name "to address";
String subject="Confirmation Mail From MyCompany";
String text = � Hereafter You will Access my Company mails�;
boolean sessionDebug = false;
Properties props = System.getProperties();
props.put("mail.host", host);
props.put("mail.transport.protocol", "smtp");
Session mailSession = Session.getDefaultInstance(props, null);
mailSession.setDebug(sessionDebug);
Message msg = new MimeMessage(mailSession);
msg.setFrom(new InternetAddress(from));
InternetAddress[] address = {new InternetAddress(to)};
msg.setRecipients(Message.RecipientType.TO, address);
msg.setSubject(subject);
msg.setText(text.toString());
Transport.send(msg);
out.println("To: " + to);
out.println("Subject:"+subject);
out.println();
out.println(text);
response.sendRedirect("jseeken.jsp");
Now I have installed the free smtp server. But I don't know how to configure. Please tell me the exact solutions. I am awating for your reply.
regards
pooja -
READ statement problem-URGENT.
hai experts,
I am facing problem with read statement.
<b>read table itab with key f1 = '10'."it works.</b>
But,
now i store value '<b>10'</b> in variable <b>f</b> and use it as follows.
<b>read table itab with key f1 = f."it isn't working</b>.
My requirement is as above.I have to read a particular record from a internal table with key value stored in a variable ,key should not be hardcoded.
Do any one have any idea abt this.
Plz, help me. Its very urgent.
Thanks & Regards.
ShivaaHi Shiva
That isn't a way to access the internal table via variable. Please refer transaction ABAPDOCU to know more information querying internal table(or transparent table) via a Variable and many more..
<b> Helpfull: Reward points </b>
Thanks and Kind Regards
Mohan -
JTable: renderer problem-urgent
Thanx "pasteven". That url is too good.
I wrote my own renderer for each cell in JTable that uses JCombobox for rendering purpose. But when i select an item in that combo box, some times renderer is not setting the selected item in that combobox. Sometimes when i change the selection of item in the previous cell,it is getting reflected in all other cells of that particular column.
Here is my code. Please help me.
import java.util.*;
import java.io.*;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.event.*;
import javax.swing.text.*;
import javax.swing.table.TableCellEditor.*;
import javax.swing.table.*;
import javax.swing.DefaultCellEditor;
public class Render extends javax.swing.JFrame {
JTextField textField0=new JTextField();
JComboBox cmb_Editor1=new JComboBox();
JComboBox cmb_Editor2=new JComboBox();
JComboBox cmb_Editor3=new JComboBox();
EachRowRenderer rend;
EachRowEditor eee;
/** Creates new form Render */
public Render() {
initComponents ();
rend=new EachRowRenderer();
eee=new EachRowEditor(table);
table.setDefaultRenderer(java.lang.Object.class,rend);
table.setDefaultEditor(java.lang.Object.class,eee);
cmb_Editor3.addItem("Y");
cmb_Editor3.addItem("N");
eee.setEditorAt(0,1,new DefaultCellEditor(cmb_Editor3));
eee.setEditorAt(1,1,new DefaultCellEditor(cmb_Editor3));
eee.setEditorAt(2,1,new DefaultCellEditor(cmb_Editor3));
eee.setEditorAt(0,2,new DefaultCellEditor(new JCheckBox()));
rend.add(0,2,new CheckBoxCellRenderer());
rend.add(0,1,new ComboBoxCellRenderer(cmb_Editor3));
rend.add(1,1,new ComboBoxCellRenderer(cmb_Editor3));
rend.add(2,1,new ComboBoxCellRenderer(cmb_Editor3));
JCheckBox chk=new JCheckBox();
pack ();
public class EachRowEditor implements TableCellEditor {
protected Hashtable editors;
protected TableCellEditor editor, defaultEditor;
JTable table;
public EachRowEditor(JTable table) {
this.table = table;
editors = new Hashtable();
defaultEditor = new DefaultCellEditor(new JTextField());
public void setEditorAt(int row,int column, TableCellEditor editor) {
editors.put(""+row+column,editor);
public Component getTableCellEditorComponent(JTable table,
Object value, boolean isSelected, int row, int column) {
return editor.getTableCellEditorComponent(table,
value, isSelected, row, column);
public Object getCellEditorValue() {
return editor.getCellEditorValue();
public boolean stopCellEditing() {
return editor.stopCellEditing();
public void cancelCellEditing() {
editor.cancelCellEditing();
public boolean isCellEditable(EventObject anEvent) {
selectEditor((MouseEvent)anEvent);
// editor.isCellEditable(anEvent);
return true;
public void addSeperateCellEditorListener(int row,int column,CellEditorListener l) {
editor=(TableCellEditor)editors.get(""+row+column);
editor.addCellEditorListener(l);
public void addCellEditorListener(CellEditorListener l) {
editor.addCellEditorListener(l);
public void removeCellEditorListener(CellEditorListener l) {
editor.removeCellEditorListener(l);
public boolean shouldSelectCell(EventObject anEvent) {
selectEditor((MouseEvent)anEvent);
return editor.shouldSelectCell(anEvent);
protected void selectEditor(MouseEvent e) {
int row;
int column;
if (e == null) {
row = table.getSelectionModel().getAnchorSelectionIndex();
column=table.getSelectionModel().getLeadSelectionIndex();
} else {
row = table.rowAtPoint(e.getPoint());
column=table.columnAtPoint(e.getPoint());
editor = (TableCellEditor)editors.get(""+row+column);
if (editor == null) {
editor = defaultEditor;
public class CheckBoxCellRenderer extends JCheckBox implements TableCellRenderer
CheckBoxCellRenderer() {
setHorizontalAlignment(JLabel.CENTER);
public Component getTableCellRendererComponent(JTable table, Object value,
boolean isSelected, boolean hasFocus,
int row, int column) {
setSelected((value != null && ((Boolean)value).booleanValue()));
setToolTipText("checkbox");
return this;
public class TextFieldCellRenderer extends JTextField implements TableCellRenderer
JTextField textField;
TextFieldCellRenderer(JTextField textField) {
this.textField=textField;
public Component getTableCellRendererComponent(JTable table, Object value,
boolean isSelected, boolean hasFocus,
int row, int column) {
setText((textField.getText() != null) ? textField.getText() : "");
return textField;
public class ComboBoxCellRenderer extends JComboBox implements TableCellRenderer
JComboBox comboBox=null;
ComboBoxCellRenderer(JComboBox comboBox) {
this.comboBox=comboBox;
public Component getTableCellRendererComponent(JTable table, Object value,
boolean isSelected, boolean hasFocus,
int row, int column) {
setSelectedItem(comboBox.getSelectedItem());
return this;
public class EachRowRenderer implements TableCellRenderer {
protected Hashtable renderers;
protected TableCellRenderer renderer, defaultRenderer;
public EachRowRenderer() {
renderers = new Hashtable();
defaultRenderer = new DefaultTableCellRenderer();
public void add(int row,int column ,TableCellRenderer renderer) {
renderers.put(""+row+column,renderer);
public Component getTableCellRendererComponent(JTable table,
Object value, boolean isSelected, boolean hasFocus,
int row, int column) {
renderer = (TableCellRenderer)renderers.get(""+row+column);
if (renderer == null) {
renderer = defaultRenderer;
return renderer.getTableCellRendererComponent(table,
value, isSelected, hasFocus, row, column);
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the FormEditor.
private void initComponents() {
jScrollPane1 = new javax.swing.JScrollPane();
table = new javax.swing.JTable();
addWindowListener(new java.awt.event.WindowAdapter() {
public void windowClosing(java.awt.event.WindowEvent evt) {
exitForm(evt);
table.setModel(new javax.swing.table.DefaultTableModel (
new Object [][] {
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null}
new String [] {
"Title 1", "Title 2", "Title 3", "Title 4"
Class[] types = new Class [] {
java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class
public Class getColumnClass (int columnIndex) {
return types [columnIndex];
jScrollPane1.setViewportView(table);
getContentPane().add(jScrollPane1, java.awt.BorderLayout.CENTER);
/** Exit the Application */
private void exitForm(java.awt.event.WindowEvent evt) {
System.exit (0);
* @param args the command line arguments
public static void main (String args[]) {
new Render ().show ();
// Variables declaration - do not modify
private javax.swing.JScrollPane jScrollPane1;
private javax.swing.JTable table;
// End of variables declaration
Please help me.I ran into the same problem in Java 1.4. The problem is that the JTable is not feeding the initial value to the cell editor. I found the following workaround. You have to override the JTable method prepareEditor() like this:
<CODE>
public Component prepareEditor(TableCellEditor editor, int row, int column) {
Component ret = super.prepareEditor(editor, row, column);
// Translate column to the data model coordinates by using the
// identifier. We'll check only for the JComboBox columns (in
// this example columns 8 and 9).
int col = 0;
String id = (String)getColumnModel().getColumn(column).getIdentifier();
if ( id.equals( tableModel.getColumnName(8) ) )
col = 8;
else if ( id.equals( tableModel.getColumnName(9) ) )
col = 9;
if (col == 8 || col == 9) {
String item = (String)tableModel.getValueAt(row, col);
((JComboBox)((DefaultCellEditor)editor).getComponent()).setSelectedItem( item );
return ret;
</CODE>
You have to translate from table coordinates to table model coordinates in case the user reorders column - if you don't allow this for your table then you won't have to do this. -
CRS 4 Realtime Snapshot Data Writing problem - urgent!
Hi,
I have been having a strange problem recently. I have been trying to get the real time CSQ data to be written to the db_cra database (RtCSQsSummary table). So, I did as described in the documentation - enabled Data Writing, IPCC Express CSQs Summary and IPCC Express System Summary in the Real Time Snapshot Configuration in CRA Administration. However, no data appears in either RtCSQsSummary or RtICDStatistics - those tables are empty. However, ContactServiceQueue table does contain the list of the CSQs.
I tried restarting the CRS Engine in the Control Center, however that didn't affect the tables - they are still empty.
Am I missing something here?
This is pretty urgent, so I would be grateful for any replies.
And yes, I will rate all the replies.
Thank you.Could it be the bug CSCsc09160?
Here's the URL with the details, of it:
http://www.cisco.com/cgi-bin/Support/Bugtool/onebug.pl?bugid=CSCsc09160
For some reason I can't access it. If you can, could you please copy the details of the bug here and, if mentioned, possible fixes/workarounds?
Thank you.
Maybe you are looking for
-
Iphone 6 plus led light not working in 8.3
I updated to 8.3 a few days ago and have just noticed that my led light does not work. I backed up the phone, reset it to factory settings and it's still not working. Ay ideas on what I can do next?
-
Event handling in Network UI element in Webdynpro
Hi , I am developing a hierarchial graph using Network UI element.I want to incorporate event handling so that the graph will respond to user actions like on double clicking a node an URL will be opened.I can notproceed with the event handling.
-
Problem with reading English UK date format in Excel
When I build and debug the rulebase I get the following error: Error in rulebase: "Cannot perform comparison expression on right expression with type number". The actual problem is that it does not read the date correctly in Excel. I have got the fol
-
Slide Title Export from iPhoto to iMovie
iPhoto has a selection to "show titles" in "Settings." How do I get the slide titles to export to iMovie?
-
Saving Interactive form filled with data onto Application server
Hi All, I am able to save Interactive PDF filled with data on my local machine.But my requirement is to save it onto the application server.Could you please help me out. Thanks in Advance, Praveena