How to get JHeader Type on Left side of JTable and...
Hi,
I want two things...
1) Header of JTable should display icons how to do this
2)A Header Type thing displayed on left side of table like microsoft grid have
Thanks
-Rana-
The JScrollPane component contains two methods:
1) setColumnHeaderView()
2) setRowHeaderView()
When you add a JTable to a scroll pane, the table component automatically creates the column header for you using the TableDataModel.
If you want to add a component on the left side then you must create a component and add it to the scroll pane using the setRowHeaderView() method.
I have an sample program that uses the row header to display line numbers for a related JTextPane.
http://www.discoverteenergy.com/files/LineNumber.java
This LineNumber component can also be used to show row numbers for a given table by adding this code to you program:
LineNumber lineNumber = new LineNumber( table );
lineNumber.setLineHeight( table.getRowHeight() );
scrollPane.setRowHeaderView( lineNumber );
Similar Messages
-
ICal 5: day view: how can the list on the left side be hidden?
hi fellows
how can the list on the left side in the day-view of iCal 5 be hidden, so that the computer-screen only shows the graphic-bars (right side)?
Thanks a lot for your help
MullikaSorry, but there was nothing in your last post.
-
How to get data type of variable in program..
Hi ABAP Guru.
I need to know how to get data type of variable or any structure field.. because I got short dump when use command REPLACE ALL OCCURANCE ... with variable/structure field that has data type I or P, I think it should be used with data type CHAR only, So I need to check the data type first.
Please give me your advice
Thank you all.
Nattapash C.data : v_value type i,
v_char(10) type c.
v_value = 10.
move v_value to v_char.
REPLACE ALL OCCURRENCES of '#' from v_char....
Best regards,
Prashant -
How to get wage type for every time record
Hi Pros,
I am using DS 0CA_TS_IS_1, it includes report time type (0REPTT), but not have wage type. in CATSDB, I fied fields for attendance/absence type and wage type. but not every time record has wage type. can you please tell me how to get wage type for every time record? what is relation between reporting time type, attendance/absence type and wage typs?Hello,
Can you talk to your HR/T&E functional consultant if they populate these values in CATSDB table using standard way or if there are custom fields that are in CATSDB OR any other table which can be used to meed the requirements
Thanks
Abhishek Shanbhigue -
How to get SAPGUI type (wingui or java) from an ABAP program
Hi everyone,
I am looking for a way to determine the sapgui type; that is if it is a wingui or javagui, from an abap program.
I know how to get the gui version with
CL_GUI_FRONTEND_SERVICES=>GET_GUI_VERSION
call and I also know how to get the platform with
CL_GUI_FRONTEND_SERVICES=>GET_PLATFORM
I simply want to determine if a certain sapgui running on a windows pc is a wingui or a javagui.
Any ideas?
Thanks,
MenelaosOk, I finally found it myself!
It is the function module:
RSAN_WB_TEST_GET_GUI_TYPE
at least on a 640 release.
Can I award me points?
Menelaos -
How to get File type icon for files store on Amazons3
Hi,
i want to know about how to get file type icons for files that we store on Amazons3.i am a devloper ,i want to make gui for accessing amazons3.
so ,i want to know about how to get file type icons for files that we store on Amazons3.
thanx in advance.hi,
have u heard amazon simple storage service,that provides storage space for
storing files, i am a devloper,i want to know the files that we store on amazon,how we can get file type icon for that files.
i want to sample code in java for this.
thanx in advance. -
Urgent : how I get tree type group total result
hi master
sir now system give me this type for result
PARENT ACCID DRBAL CRBAL
K1
K11
11 K1101 46291132
11 K1102 13182173
11 K1103 23784045
11 K1104
11 K1105
11 K1106
11 K1107 10001795
11 K1108 9083529
11 K1109
11 K1110 4224350
11 K1111
11 K1112 6696832
11 K1113 7963381
11 K1114 742766
1 K12
12 K1201 1486082
12 K1202
12 K1203
1 K13
13 K1301
1301 K130101
1301 K130102
1301 K130103
1301 K130104 1977616
1301 K130105
1301 K130106 736266
1301 K130107 396673
1301 K130108 42751
1301 K130109 298362
1301 K130110 187696
1301 K130111 537
1301 K130112 942
1301 K130113 987
1301 K130114 1272
1301 K130115 40000
13 K1302
1302 K130201
1302 K130202
1302 K130203
1302 K130204
1302 K130205 259941
13 K1303
1303 K130301
1303 K130302
1303 K130303 177716
13 K1304
1304 K130401
1304 K130402
1304 K130403
1304 K130404
1304 K130405
1304 K130406 809719
1304 K130407
1304 K130408 1786091
13 K1305
1305 K130501
1305 K130502
13 K1306
1306 K130601
13 K1311
1311 K131101 788780
K2
2 K21
21 K2101
2101 K210101
2101 K210104
21 K2102
2102 K210201
2102 K210202
22 K2205
2205 K220501
2205 K220502
220502 K22050201
220502 K22050202
220502 K22050203
220502 K22050204
22 K2206
2206 K220601
2206 K220602
but sir i need this type of result
PARENT ACCID DRBAL CRBAL
GROUP NAME K1
GROUP NAME K11
11 K1101 46291132
11 K1102 13182173
11 K1103 23784045
11 K1104
11 K1105
11 K1106
11 K1107 10001795
11 K1108 9083529
11 K1109
11 K1110 4224350
11 K1111
11 K1112 6696832
11 K1113 7963381
11 K1114 742766
TOTAL
1 K12
TOTAL
GROUP NAME
12 K1201 1486082
12 K1202
12 K1203
TOTAL
1 K13
13 K1301
1301 K130101
1301 K130102
1301 K130103
1301 K130104 1977616
1301 K130105
1301 K130106 736266
1301 K130107 396673
1301 K130108 42751
1301 K130109 298362
1301 K130110 187696
1301 K130111 537
1301 K130112 942
1301 K130113 987
1301 K130114 1272
1301 K130115 40000
13 K1302
1302 K130201
1302 K130202
1302 K130203
1302 K130204
1302 K130205 259941
13 K1303
1303 K130301
1303 K130302
1303 K130303 177716
13 K1304
1304 K130401
1304 K130402
1304 K130403
1304 K130404
1304 K130405
1304 K130406 809719
1304 K130407
1304 K130408 1786091
13 K1305
1305 K130501
1305 K130502
13 K1306
Sir I need total group by group father group total and child group total
Please help me how I get tree type group total resultHi master
thankyou for your reply
Sir,
i know and you see my working i get code form master table and get detal amount form other table
I have two table see table
Acctab Baltab
PARENT PCID
CHILD title
PCID amount
I need heretical result use this type of query but not success
please see my query and give me idea how I get here full tree
select test.child,test.pcid,baltab.pcid from (select acctab.child,acctab.parent,acctab.pcid
from acctab
start with acctab.parent is null
connect by prior acctab.child= acctab.parent) test,baltab
where test.pcid=baltab.pcid ;
CHILD PCID PCID
1 1 1
2 2 2
3 3 3
11 111 111
12 112 112
13 113 113
21 221 221
22 222 222
23 223 223
31 331 331
32 332 332
33 333 333
but I need this type result
CHILD PCID
1 1
11 111
12 112
13 113
2 2
21 221
22 222
23 223
3 3
31 331
32 332
33 333 -
Reg: how to get notification type QMART
Hi experts,
how to get notification type QMART
BAPI_DOCUMENT_GETLIST2..
regards,
ramesh..Hi
Get the same from <b>QMEL table
Master table is TQ80
and texts are TQ80_T</b>
Reward points if useful
Regards
Anji -
How to get the PO no in the smart form and in the print program from ME23N
hello all,
I am new to smart form printing.I want to make a smartform along with print program that will show PO Details.It has to be created as an o/p type in ME23N. I have created an o/p type ZPO using NACE ..Can some one tell me how to get the PO number in the smart form and in the print program from ME23N ,so that I can then program the necessary calculations?plz help me with the code.Thanks in advance.
Subhabrata.Hello Everyone,
I am new to the forum and also to abap.
Excuse me if it is a basic question.
I am taking care of the output types.
This is 1st time SAP will be implemented .
For purchase order , I go to NACE ---EF----NEU---Processing routines
print output---SAPFM06P---ENTRY_NEU----MEDRUCK
FAX-----------SAPFM06P---ENTRY_NEU----MEDRUCK
EDI------------RANASTED--EDI_PROCESSING
DISTRIBUTION(ALE)---RANASTED---ALE_PROCESSING
Are the above settings fine ?
What are the standard programs for the PO outputs . I am looking for the smartforms and the driver program .
I searched and found that IN ECC 6 , we have to install OSS notes .
Gurus, please help me . Let me know what all oss notes be implemented and how to proceed from here .
Any help will be greatly appreciated ,
Monalisa -
How to get the current logged in username from windows and put it into an AS var
Hello,
I was hopeing someone would know how to get the current logged in username from windows and put it into a var, so I can create a dynamic text box to display it.
Thanks in advance
MichaelJust for everyone’s info, this is the script I have used to get the logged in windows username into flash ---- not and air app.
In the html page that publishes with the .swf file under the <head> section:-
<script language="JavaScript" type="text/javascript">
function findUserName() {
var wshell=new ActiveXObject ("wscript.shell");
var username=wshell.ExpandEnvironmentStrings("%username%");
return username;
</script>
The ActionScript:-
import flash.external.ExternalInterface;
var username:String = ExternalInterface.call ("findUserName");
trace (username); // a quick test to see it in output -
Turning the left side navigation on and off dynamically
I need to have the navigation on the left side turn on and off pending what community the current user is it. I can do this (kind of) by creating a class implementing NavigationCommonVerticalView and IView. My over riding methods check the community ID and return null need be.
The problem is that whatever class is calling this still creates a table cell with a width of 200 for the navigation bar wether it is there or not. I imagine I can fix this one of two ways.
1 - Set the cell width to be 0 all the time. When there is content the browser should force this to be expanded. I however can not find this setting anywhere
2 - Override the class that calls my NavigationCommonVerticalView class. Hopefully this will provide a mechanism to turn that cell of completely. However I have not determined what class this. I thought it might be "com.plumtree.portalpages.browsing.myportal.myPortal" by when I try to override this class, I can not get it to load at startup by adding it to the customActivitySpaces.xml file.
Please help.Hi Jeff,
Unfortunately, there is currently no setting to allow you to set the cell width.
In our next release there is a setting available in NavigationSettings.xml. Also, the page checks to see if the value returned from the Display method of your View is null before inserting a cell for the View's content.
The only thing that you could do before the next release would be to override com.plumtree.portalpages.common.uiparts.PlumtreeDP. I hesitate to suggest doing this because PlumtreeDP controls the display of almost all pages in the portal. -
How to get the most current file based on date and time stamp using SSIS?
Hello,
Let us assume that files get copied in a specific directory. We need to pick up a file and load data. Can you guys let me know how to get the most current file based on date and time stamp using SSIS?
Thanks
thx regards dinesh vvhi simon
i excuted this script it is giving error..
Microsoft SQL Server Integration Services Script Task
Write scripts using Microsoft Visual C# 2008.
The ScriptMain is the entry point class of the script.
using System;
using System.Data;
using Microsoft.SqlServer.Dts.Runtime;
using System.Windows.Forms;
namespace ST_9a6d985a04b249c2addd766b58fee890.csproj
[System.AddIn.AddIn("ScriptMain", Version = "1.0", Publisher = "", Description = "")]
public partial class ScriptMain : Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase
#region VSTA generated code
enum ScriptResults
Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success,
Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure
#endregion
The execution engine calls this method when the task executes.
To access the object model, use the Dts property. Connections, variables, events,
and logging features are available as members of the Dts property as shown in the following examples.
To reference a variable, call Dts.Variables["MyCaseSensitiveVariableName"].Value;
To post a log entry, call Dts.Log("This is my log text", 999, null);
To fire an event, call Dts.Events.FireInformation(99, "test", "hit the help message", "", 0, true);
To use the connections collection use something like the following:
ConnectionManager cm = Dts.Connections.Add("OLEDB");
cm.ConnectionString = "Data Source=localhost;Initial Catalog=AdventureWorks;Provider=SQLNCLI10;Integrated Security=SSPI;Auto Translate=False;";
Before returning from this method, set the value of Dts.TaskResult to indicate success or failure.
To open Help, press F1.
public void Main()
string file = Dts.Variables["User::FolderName"].Value.ToString();
string[] files = System.IO.Directory.GetFiles(Dts.Variables["User::FolderName"].Value.ToString());
System.IO.FileInfo finf;
DateTime currentDate = new DateTime();
string lastFile = string.Empty;
foreach (string f in files)
finf = new System.IO.FileInfo(f);
if (finf.CreationTime >= currentDate)
currentDate = finf.CreationTime;
lastFile = f;
Dts.Variables["User::LastFile"].Value = lastFile;
Dts.TaskResult = (int)ScriptResults.Success;
thx regards dinesh vv -
how to get reading list in my all my devices and computer (window 7). i have installed ios 6 on iphone and icloud control panel on both PC's (home and office) but i dont get updated reading list on all my devices.
Hi bluegrandpanash,
Thanks for visiting Apple Support Communities.
If you backed up your iPhone to iCloud before updating the software, first try the steps under "Restore from an iCloud backup" in this article to recover your data:
iOS: Back up and restore your iOS device with iCloud or iTunes
http://support.apple.com/kb/HT1766
Best Regards,
Jeremy -
How to get my images always order by arquive name, and not by time of captur, in all the folders in the library?
Sorry for the poor english, but im portugues.
In the library we can change the order of classification of image by, time of capture, name of file etc... I'm wondering if its possible define to be always by the name of file.
It ´s possible?
And i have other question, in print label we have an option to auto rotate to feet in page to have the image using the maximum area in the page (auto rotate, zoom etc), its possible to change the orientation of the rotation to be always in the other direction?The Muvos are USB Mass Storage devices and do not have the ability to display track information based upon ID3 tags.
The Zens all read and display track info based upon ID3 tag information that is either gathered from an online source or entered by the end-user.
If you want the track information displayed instead of the ID3 tag information, you could edit the ID3 tags and rename the title to whatever you have as the file name. Not sure why your file names would differ so much from the ID3 tag info though, almost all of my content has the same name for the filename as it does on the ID3 tag title. -
i accidentally deleted my iMovie off my mac, anyone know how to get it back because it came for free and is now 15 dollars to buy back??? pls help
If you mean you accidentally removed the icon for iMovie from the Dock (the array of icons at the bottom of the window), you can add it back easily.
Open the Applications folder (if you open it from the Dock you may then need to click the Open in Finder icon), locate the iMovie program.
Drag the icon for iMovie down to the Dock, somewhere between the icon for Finder and the dashed line toward the right.
Wait for the icons at that spot to move aside, then drop it in.
Maybe you are looking for
-
Problems after iOS 7.1.2 on Ipod Touch 5th Gen
At about 3 hours ago my Ipod Touch 5th Gen turned off on me. It came back on itself, so I accessed the lock screen correctly put my password in and thats where my problems started. I put in the correct password it accepted it. The screen then changed
-
Hello, I am trying to repair my Firefox profile, but I cannot open profile manager in Mac OS 10.5.8. When I follow the directions for opening profile manager in my Terminal utility, I get the following error: "dyld: unknown required load command 0x80
-
How to change pounds to dollars
I live in the UK but I am from the US, and I have to create an invoice, but it sets everything to pounds. I can not find out how to set it to dollars, is there a way without have to change the setting for the computer location? Thanks for the help, D
-
RDS 2012 R2 best design possible with wildcard certificate
Hi! I am looking for some guidance for my RDS 2012 R2 design flaw. What I would like to achieve? *I would like my users either internal or external to be able to connect to RDWeb via one single webaddress ( remote.mydomain.com) What I have in place?
-
Cancelled migration assistant, lost files!
hi, i set up migration assistant wirelessly between my old mac and my new macbook. when it gave the estimated time as 19 hours i cancelled it. it was only running for about half an hour however some of the files on my old mac are missing - and are no