How to put Color on JInternalFrame?
Hi
I have a internalframe ... when it is maximized and selected we found it that a title is in blue color(That is a indication that this internalframe is selected).
The same way i have minimized my internal frame .. but now even on dragging it the color is not getting changed.. Plz let me know how to put the same blue color on minimized JInternalFrame??
Swing related questions should be posted in the Swing forum.
The [url http://java.sun.com/docs/books/tutorial/uiswing/components/internalframe.html]Internal Frame Demo from the Swing tutorial works fine for me.
Similar Messages
-
How to put color combination like red/blue tag in the XML file
Hi experts,
i have developed one program to capture some DATA in one internal table.it contains 2 fields called addition flag and dedletion flag.then i have wriiten the following code for converting the XML file for the above internal table data.i am passing this internal table in the following FM ''SDIXML_DATA_TO_DOM'.But as per our requirement,they need the REd color tag for addition flag and blue Color tag for the deletion flag in the Above XML File for the respective addition data item and deletion data item.how to do???
Any suggestion can be Appreciated.its very urgent
Thanx in advance.
Regards,
HPP.
The code is wriiten for converting internal table to XML file.
DATA: l_dom TYPE REF TO if_ixml_element,
m_document TYPE REF TO if_ixml_document,
g_ixml TYPE REF TO if_ixml,
w_string TYPE xstring,
w_size TYPE i,
w_result TYPE i,
w_line TYPE string,
it_xml TYPE dcxmllines,
s_xml LIKE LINE OF it_xml,
w_rc LIKE sy-subrc.
DATA: xml TYPE dcxmllines.
DATA: rc TYPE sy-subrc,
BEGIN OF xml_tab OCCURS 0,
d LIKE LINE OF xml,
END OF xml_tab.
*XML conversion -internal table to XML Format.
CLASS cl_ixml DEFINITION LOAD.
g_ixml = cl_ixml=>create( ).
CHECK NOT g_ixml IS INITIAL.
m_document = g_ixml->create_document( ).
CHECK NOT m_document IS INITIAL.
WRITE: / 'Converting DATA TO DOM 1:'.
CALL FUNCTION 'SDIXML_DATA_TO_DOM'
EXPORTING
name = 'it_prop'
dataobject = it_prop[]
IMPORTING
data_as_dom = l_dom
CHANGING
document = m_document
EXCEPTIONS
illegal_name = 1
OTHERS = 2.
IF sy-subrc = 0.
WRITE 'Ok'.
ELSE.
WRITE: 'Err =',
sy-subrc.
ENDIF.
CHECK NOT l_dom IS INITIAL.
w_rc = m_document->append_child( new_child = l_dom ).
IF w_rc IS INITIAL.
WRITE 'Ok'.
ELSE.
WRITE: 'Err =',
w_rc.
ENDIF.
CALL FUNCTION 'SDIXML_DOM_TO_XML'
EXPORTING
document = m_document
IMPORTING
xml_as_string = w_string
size = w_size
TABLES
xml_as_table = it_xml
EXCEPTIONS
no_document = 1
OTHERS = 2.
IF sy-subrc = 0.
WRITE 'Ok'.
ELSE.
WRITE: 'Err =',
sy-subrc.
ENDIF.
LOOP AT it_xml INTO xml_tab-d.
APPEND xml_tab.
ENDLOOP.
CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
bin_filesize = w_size
filename = 'C:\prop.XML'
filetype = 'BIN'
TABLES
data_tab = xml_tab
EXCEPTIONS
OTHERS = 10.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.TailOfGon wrote:
Do you want to extract all the data with type='unknown'?
Then try the XPath like this:
resource[type='unknown']/code
Hi,
Yes I want to extract all the data of the type = "unknown", I tried Xpath resource[type='unknown']/code but it didnt work , I still getting all other data of different type .
Thanks,
Ankit G -
How use eyedropper on one document then put color into 2nd document's swatch?
How can you use eyedropper on one document then put color into 2nd document's swatch?
Thanks for any advice.Please state your Illustrator version.
-
How to put the current timer in the frame
I am doing one application and i am using frame. I want to show the current time( hour and minute). But i don't know how to implement it. Please help me to solve my problem. Below is the sample code of my program. How to put the timer in the bottom part.
//AdminMenu.java
import java.io.*;
import javax.swing.*;
import java.awt.event.*;
import java.awt.*;
public class AdminMenu extends JFrame{
private JLabel lblmenu;
private JLabel lblvideo;
private JLabel lbladmin;
private JButton cmdaddvideo, cmddeletevideo, cmdeditvideo;
private JButton cmdaddadmin, cmddeleteadmin, cmdchangepass;
private Container c;
private GridBagLayout gdlayout;
private GridBagConstraints gdconstraints;
private Color colorValues[] =
{ Color.black, Color.blue, Color.red, Color.green };
public AdminMenu()
super("Administration Menu");
JMenu fileMenu = new JMenu( "File" );
fileMenu.setMnemonic( 'F' );
JMenu openMenu = new JMenu ("Open");
openMenu.setMnemonic('O');
fileMenu.add( openMenu );
JMenuItem exitItem = new JMenuItem( "Exit" );
exitItem.setMnemonic( 'x' );
exitItem.addActionListener(
new ActionListener() {
public void actionPerformed( ActionEvent event )
System.exit( 0 );
} // end anonymous inner class
); // end call to addActionListener
fileMenu.add( exitItem );
// create menu bar and attach it to MenuTest window
JMenuBar bar = new JMenuBar();
setJMenuBar( bar );
bar.add( fileMenu );
setSize(300,250);
setLocation(350,200);
this.setResizable(true);
show();
//---------------------- Main -------------------------------
public static void main(String args[])
AdminMenu app = new AdminMenu();
app.setDefaultCloseOperation(
JFrame.EXIT_ON_CLOSE );
Thanks for helping mee.g. use a thread that invokes new Date() (every minute), format the Date with SimpleDateFormat and print the result String on a Label that you can put on your frame ...
-
How to put the file name in notepad file
dear frank,
how to put the file name in notepad file via power shell. I mean i want to put the file name in that notepad file
for example,
my file name is ABL and in this file data is
02/06/2015,180.00,182.00,176.01,180.50,1575500
02/06/2015,4.20,4.20,4.20,4.20,500
02/06/2015,113.50,113.70,112.91,113.09,157800
02/06/2015,682.01,695.90,682.00,683.19,4250
02/06/2015,213.98,215.00,213.00,214.87,326200
02/06/2015,21.52,21.65,21.52,21.60,4000
02/06/2015,111.00,111.25,108.25,108.91,17100
02/06/2015,52.00,52.00,52.00,52.00,500
and i want to data in this form
ABL,02/06/2015,180.00,182.00,176.01,180.50,1575500
ABL,02/06/2015,4.20,4.20,4.20,4.20,500
ABL,02/06/2015,113.50,113.70,112.91,113.09,157800
ABL,02/06/2015,682.01,695.90,682.00,683.19,4250
ABL,02/06/2015,213.98,215.00,213.00,214.87,326200
ABL,02/06/2015,21.52,21.65,21.52,21.60,4000
ABL,02/06/2015,111.00,111.25,108.25,108.91,17100
ABL,02/06/2015,52.00,52.00,52.00,52.00,500
There are many file like this that i want to be edit
plese tell me how can i do it, i think it is possible via windows power shell.
thanks in advance.Hi
Just for completeness, what version of VB.NET are you using?
Here is a complete project to copy all the files with the added "ABL," at the start of each line. You need to start a new Project with a BLANK default Form1, and replace all of Form1 code with the code below. When you run this project, you
need to use the 2 buttons to set up the ORIGINAL file folder and a folder to place the copies. You need to check if the file EXTENSION is correct (I assumed txt), and check the text to add to each line is correct. Once all is set up you should have a
big red button to start the operation.
NOTE: it is important that you try this out on a copy of some of the files to verify accuracy BEFORE trying on original files. Make sure you have a good back up of the original files before doing anything else.
' new project with default BLANK Form1
' replace all Form1 code with this code
' WARNING: make sure you have a backup of
' any files you use this application to
' operate on.
Option Strict On
Option Infer Off
Option Explicit On
Public Class Form1
Dim OrigFileFolderPath As String = Nothing
Dim CopyToFolderPath As String = Nothing
Dim lab1, lab2, lab3 As New Label
Dim tb1, tb2, tb3 As New TextBox
Dim b1, b2, b3, b4 As New Button
Dim fb As New FolderBrowserDialog
Dim bgw As New System.ComponentModel.BackgroundWorker
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles Me.Load
Me.Size = New Size(731, 300)
With lab1
.Text = "Original Files Folder Path"
.Location = New Point(15, 5)
End With
With tb1
.Width = 560
.Location = New Point(10, 30)
.BackColor = Color.Khaki
.ForeColor = Color.Maroon
.Font = New Font(Me.Font.FontFamily, 12)
.BorderStyle = BorderStyle.FixedSingle
.Anchor = AnchorStyles.Top Or AnchorStyles.Left Or AnchorStyles.Right
End With
With lab2
.Text = "Copy Files to Folder Path"
.Location = New Point(15, 125)
End With
With tb2
.Width = 665
.Location = New Point(10, 150)
.BackColor = Color.Khaki
.ForeColor = Color.Maroon
.Font = New Font(Me.Font.FontFamily, 12)
.BorderStyle = BorderStyle.FixedSingle
.Anchor = AnchorStyles.Top Or AnchorStyles.Left Or AnchorStyles.Right
End With
With lab3
.Text = "File Ext"
.Location = New Point(600, 5)
.Anchor = AnchorStyles.Top Or AnchorStyles.Right
End With
With tb3
.Text = ".txt"
.Width = 80
.Location = New Point(590, 30)
.BackColor = Color.Khaki
.ForeColor = Color.Maroon
.TextAlign = HorizontalAlignment.Center
.Font = New Font(Me.Font.FontFamily, 12)
.BorderStyle = BorderStyle.FixedSingle
.Anchor = AnchorStyles.Top Or AnchorStyles.Right
End With
With b1
.Text = "Choose Original Files Folder Path"
.AutoSize = True
.Location = New Point(10, 65)
End With
With b2
.Text = "Choose Copy Files to Folder Path"
.AutoSize = True
.Location = New Point(10, 185)
End With
With b3
.Text = "DO THE COPY"
.AutoSize = False
.Size = New Size(240, 50)
.BackColor = Color.Red
.ForeColor = Color.White
.Font = New Font(Me.Font.FontFamily, 20, FontStyle.Bold)
.Location = New Point(420, 80)
.Anchor = AnchorStyles.Top Or AnchorStyles.Right
.Visible = False
End With
With b4
.Text = "CANCEL JOB"
.AutoSize = False
.Size = New Size(240, 50)
.BackColor = Color.Red
.ForeColor = Color.White
.Font = New Font(Me.Font.FontFamily, 20, FontStyle.Bold)
.Location = New Point(420, 80)
.Anchor = AnchorStyles.Top Or AnchorStyles.Right
.Visible = False
End With
Me.Controls.AddRange({lab1, lab2, lab3, tb1, tb2, tb3, b1, b2, b3, b4})
With bgw
.WorkerReportsProgress = True
.WorkerSupportsCancellation = True
End With
AddHandler bgw.DoWork, AddressOf bgw_DoWork
AddHandler bgw.RunWorkerCompleted, AddressOf bgw_Completed
AddHandler b1.Click, AddressOf b1_Click
AddHandler b2.Click, AddressOf b2_Click
AddHandler b3.Click, AddressOf b3_Click
AddHandler b4.Click, AddressOf b4_Click
End Sub
Private Sub b1_Click(sender As Object, e As EventArgs)
fb.SelectedPath = My.Computer.FileSystem.SpecialDirectories.MyDocuments
fb.ShowNewFolderButton = False
Dim r As DialogResult = fb.ShowDialog
If r = Windows.Forms.DialogResult.OK Then
tb1.Text = fb.SelectedPath
If IO.Directory.Exists(tb1.Text) AndAlso IO.Directory.Exists(tb2.Text) AndAlso Not (tb1.Text = tb2.Text) Then
If tb3.Text = Nothing Then
redo: tb3.Text = InputBox("Enter the file extension that you want to copy/change", "FILE EXTENSION")
If tb3.Text = Nothing Then GoTo redo
End If
b3.Visible = True
Else
b3.Visible = False
End If
End If
End Sub
Private Sub b2_Click(sender As Object, e As EventArgs)
fb.SelectedPath = My.Computer.FileSystem.SpecialDirectories.MyDocuments
fb.ShowNewFolderButton = True
Dim r As DialogResult = fb.ShowDialog
If r = Windows.Forms.DialogResult.OK Then
tb2.Text = fb.SelectedPath
If IO.Directory.Exists(tb1.Text) AndAlso IO.Directory.Exists(tb2.Text) AndAlso Not (tb1.Text = tb2.Text) Then
If tb3.Text = Nothing Then
redo: tb3.Text = InputBox("Enter the file extension that you want to copy/change", "FILE EXTENSION")
If tb3.Text = Nothing Then GoTo redo
End If
b3.Visible = True
Else
b3.Visible = False
End If
End If
End Sub
Private Sub b3_Click(sender As Object, e As EventArgs)
b3.Visible = False
b4.Visible = True
If Not tb3.Text.StartsWith(".") Then tb3.Text = "." & tb3.Text
bgw.RunWorkerAsync()
End Sub
Private Sub b4_Click(sender As Object, e As EventArgs)
bgw.CancelAsync()
End Sub
Private Sub ReadPWFile(fn As String)
Dim filename As String = My.Computer.FileSystem.GetName(fn)
Dim barename As String = IO.Path.GetFileNameWithoutExtension(fn)
Dim copyto As String = tb2.Text & "\" & filename
Dim line As String = Nothing
Dim lines As New List(Of String)
Using sr As IO.StreamReader = New IO.StreamReader(fn)
Do
line = sr.ReadLine()
If Not line = Nothing Then
lines.Add(barename & "," & line)
End If
Loop Until line = Nothing
End Using
Using sw As IO.StreamWriter = New IO.StreamWriter(copyto)
For Each s As String In lines
sw.WriteLine(s)
Next
End Using
End Sub
Private Sub bgw_DoWork(sender As Object, e As System.ComponentModel.DoWorkEventArgs)
Dim ftc As Collections.ObjectModel.ReadOnlyCollection(Of String) = My.Computer.FileSystem.GetFiles(tb1.Text)
For Each f As String In ftc
If bgw.CancellationPending Then
e.Cancel = True
Exit For
End If
Dim ex As String = My.Computer.FileSystem.GetFileInfo(f).Extension.ToLower
If My.Computer.FileSystem.GetFileInfo(f).Extension.ToLower = tb3.Text.ToLower Then
ReadPWFile(f)
End If
Next
End Sub
Public Sub bgw_Completed(sender As Object, e As System.ComponentModel.RunWorkerCompletedEventArgs)
tb1.Text = Nothing
tb2.Text = Nothing
b3.Visible = False
b4.Visible = False
MessageBox.Show("Finished copying files", "Job Completed")
End Sub
End Class
Regards Les, Livingston, Scotland -
How to input color in a data sheet under dropdown
Hey,
i have set up a drop down selection on the column per cell, but how can i define the select color and represent that on the datasheet
example... Column name is "project status"----> drop down per cell options --> "TBD", "GREEN", "Yellow", "Red"
...--> how i can in put color Green on the "Green" and Yellow color for "Yellow" and etc.Hi,
It’s not possible to achieve this type of conditional formatting in a datasheet view. You could implement conditional formatting for a standard list view using SharePoint Designer. More info here:
http://blogs.msdn.com/b/balsharfi/archive/2011/10/20/sharepoint-lists-conditional-formatting-using-sharepoint-designer-2010.aspx
Cheers
Matt -
How to put water mark in web dynpro abap Adobe forms
Hi
Can any body tell me how to put water mark in web dynpro Abap adobe forms ,
actually I need to print water mark as back ground in gray color.
Points will be rewarded of Helpful answer..!
Regards,
SidramHi,
for more information about layout options in forms, go to your form in transaction SFP, layout view and choose Help -> Adobe LifeCycle Designer Help. There you find information on page layout, e.g. " Objects can be placed anywhere on a master page, inside or outside the content area. As a general rule, do not place objects inside the content area unless your intention is to have other objects laid down on top of the master page objects when the form is rendered. If you are setting up a watermark, place it inside the content area. "
Besides, there's an Adobe forum where you might get more information for such Adobe questions.
Regards, Heidi -
Rwclient, how to put E-mail body
Dear Gurus,
On Oracle AS, by using below comand I am able to generate reports and able to send them by Email but I would like to put Mail Body so could you please help me on this.
How to put E-mail body on this comand.
rwclient server=servicename report=reportname.rdf userid=dbusername/password@dbaliasname desformat=pdf destype=mail DESNAME=mailDESNAME=[email protected]@amazegifts.com SUBJECT="Amaze Gifts Mail"
Regards,
Satish Kumar Sadhu.Since email messages are text-based, only some email programs allow them to be viewed with html code to add color, style changes, etc. What you need to do is read some tutorials on basic html coding. i.e. <b>BOLD</b> would show BOLD with bold lettering.
Allen
Sun Developer Support -
How to put multiple photos on 1 A4 page
Hi
Can someone tell me how to put multiple photos on 1 A4 page,
many thanksTry this:
File >> New
Set your width and height dimensions of A4 in mm.
Set resolution e.g. 72 for web use/email or 240-300 for printing.
Set background color to white (or whatever you prefer) and click OK
Now get your first image
File >> Place Embedded
Select your first image and click place
Drag to position and scale with the corner handles whilst holding down Shift.
Click the check-mark to commit.
Repeat for each of your other images. -
How to put web app to Oracle 8i Jserver ?
I've developed a web app with JDev3.1 , Oracle8i 8.1.6 on NTServer4.0.
and want to put it on Oracle Jserver 8.1.6:
The app works well within JDev3.1.
I depolyed my Business Components project and test well.
I would like to know how to put web app to Jserver. Is it possible?when you say "web app" i am assuming you mean an applet, servlet or java server page(jsp) ??
if you mean this, then you need to move to the rdbms 8.1.7 environment for this support.
rdbms 8.1.7 supports servlets and jsp's in two different ways :
externally -- on the rdbms 8.1.7 platform
they can be run in an external apache front end included with the 8.1.7 rdbms.
internally -- inside the rdbms 8.1.7
they can be deployed internally to 8.1.7 in the "oracle servlet engine" (ose)
applets and html static pages still need to be deployed to a web server on the mid-tier OR the external apache front end included with the 8.1.7 rdbms to optimize performance.
i hope this helps ...
p.s. if i've misunderstood your question , please restate it.
null -
How to put a few pages together as a panel group in the same screen ?
Dear Friends,
Hello. I am developing the accounting application of Journal Entry module. I have developed 5 pages for a journal entry: Journal header, Journal Line, Journal total, Journal Error and Journal Approval. I want to put 5 pages together as a panel group in the same screen so that users are convenient to use them. The format is as follows:
Header | Lines | Total | Error | Approval
When a user click on Header or Lines or Total or Error or Approval, its related page is displayed below it on the screen. But I don't understand how to put "Header", "Lines", "Total", "Error" and "Approval" together as above format and link them to its related page. Can anybody tell me how to do that ? Thanks.
LucyMike,
It's correct to make 5 pages as a seperate component.
I am developing an accounting system using PeopleTools by myself.
Because you understand PeopleSoft financial application, please tell me the 2 questions as follows:
First, In Journal Line page, when select "edit Journal" and click button "process", the system check the Journal against Budget, if it's Ok, the System assign Journal ID for the Journal and put "valid" into the field of "Budget Status" and "Journal Status" in Total page. If it's not OK, the system send error message into Error page. Do you know how developer do that ?
Second, In Journal Line Page, when select "Submit Journal" and click button "process", the system send the Journal to Approval page for approval. Do you know how developer do that ?
Lucy -
How to put text line just for a moment ?
Hi,
Do you know how to put a text line just for one photo? I mean I have more photos in one portfolio but i need the text line to be seen just for one photo for the others no.
Thank you in advance.You can use composition for this , where you can insert text frame for that specific photo where you want to add some description and for rest dont use text frame.
Thanks,
Sanjit -
How to put separator lines in menu items in a gui status ?
Hi,
I have created gui status for my z transaction
I need the separator lines in the menu items like it is seen in std transactions
For example, in any screen , in the Help menu, we can see the following.
Application Help
SAP Library
Glossary
(line)
Release notes
(line)
SAP Service Marketplace
could you please help me how to put the lines ?
thanksHi,
Goto Your GUI status.click on your MENU bar.
under the menu bar you will have your own menu items.
where ever you want separator line do the following way.
you will have 2 columns under menu bar
1) code
2) text.
under code dont put anything.
but under text column you put dashes and enter or select right click there and choose separator line.
you will get separator line.
activate and run the ztcode.you will get .
code text
Application Help
SAP Library
Glossary
Release notes
SAP Service Marketplace
Thanks
Parvathi -
i have an ipod touch and i put cds on itunes onmy computer , but i cant figure out how to put the music from the cds on my ipod touch can anyone help me?
ok i select th e music from my music libary and go to file and click sync to my ipod and when it gets to step 3.. it says waiting for changes to be made.. yes the songs play on the itunes .. and no it wasnt the same computer i used last time
-
First off, I'm a Newbie to Dreamweaver. So. I'm in a real
learning phase.
I can't figure out how to "Put" my development file to my web
Server. I have an ftp connection. At least I think I do since I
have file list that seems to be pointing to the files I have on
webserver. I manually copied my files from my development folder to
my web server. Now I want to use Dreamweaver to put my files and
then I want to have Dreamweaver manage my file so that next time I
one have to upload my "Changed" files. I searched Dreamweaver Help
and didn't understand what I read. Sorry..
Appreciate any help you can give me, or point me to somewhere
on the web that my a step by step procedure.
Thanks....Please tell me this - when you look at the name of the site
in the drop-down
list of defined sites on the left top of the Files panel, do
you see a
folder icon, or a little computer icon?
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"bruceaj" <[email protected]> wrote in
message
news:epr3mt$4mu$[email protected]..
> First off, I'm a Newbie to Dreamweaver. So. I'm in a
real learning phase.
>
> I can't figure out how to "Put" my development file to
my web Server. I
> have
> an ftp connection. At least I think I do since I have
file list that seems
> to
> be pointing to the files I have on webserver. I manually
copied my files
> from
> my development folder to my web server. Now I want to
use Dreamweaver to
> put my
> files and then I want to have Dreamweaver manage my file
so that next
> time I
> one have to upload my "Changed" files. I searched
Dreamweaver Help and
> didn't
> understand what I read. Sorry..
>
> Appreciate any help you can give me, or point me to
somewhere on the web
> that
> my a step by step procedure.
>
> Thanks....
>
Maybe you are looking for
-
i just did the restart in 'services', and my ipod mini is now recognized in itunes 7. thanks to all who offered advice....especially ivan. hp pavillion ze1210 windows xp ipod mini software 1.4.1 * itunes 7 * *itunes 7 and software 1.4.1 were both ins
-
Case-sensitive search for equipments
Hello gurus, when looking for certain equipments using F4 (program RIEQUI20), I can search for all equipments of a certain manufacturer (field HERST). Unfortunatelly this search is always case-sensitive, i.e when I enter "BOSCH", equipments with manu
-
Is it possible Encrypt files in document library after uploading OOB
Is it possible Encrypt files in document library after uploading using OOB? if so please share how the above can be achieved. V Jean
-
Minimum hardware for VPDN scenario (LAC&LNS)
Hi, I've need help with hardware platform selection for vpdn scenario. This deployment will serve up to 20 users max. Can anyone say me which is the minimum router platform and IOS version to use for LAC? And for LNS? Thank you. Best regards.
-
I pad applications kept crashing all the time
After the last update all my apps kept crashing every time I tried to open them. Also after recharging my ipad it appears like it was a new one, and it asked to restore all the info. I did it but the ipad keep asking me to restore again and again. Fi