Creating a editor pane
I want to create a Editor pane like notepad, but in that i want to access images also. can any anybody suggest me.. please
Take a look at the Java editor pane (jEditorPane).
Here is some info to get you started:
http://www.apl.jhu.edu/~hall/java/Swing-Tutorial/Swing-Tutorial-JEditorPane.html
Similar Messages
-
JInternalFrame - how to add an editor pane to it
hello
i have created a internalframe by using JDesktopPane. And i want to display some external file in that internal frame(JInternalFrame) through the editor pane. But i couldnt get it.
help meAnd i want to display some external file in that
internal frame(JInternalFrame) through the editor
pane. But i couldnt get it.By "editor pane", do you mean JEditorPane or JTextArea, etc.? Are we talking about HTML here or plain text? Please try to be more specific. Here's a tutorial on the JEditorPane: http://java.sun.com/docs/books/tutorial/uiswing/components/editorpane.html
Here's one on JTextArea:
http://java.sun.com/docs/books/tutorial/uiswing/components/textarea.html -
I am using Snow Leopard and have created a movie in 16:9 format (SD not HDV) I created a movie which stays in the 16:9 format in fcp file, .mov fiule and MP4 file. I created an iDVD pane in 16:9 but when I play the movie in the iDVD preview window the iDVD pane switches to 4:3 and it burns the DVD in 4:3. How can I stop this so I get a16:9 DVD. Thanks for any help offered
James BowmanHi
As I see this I see two parts
• Howto go from FinalCut to iDVD
• Howto set iDVD right
In FinalCut Express (to 4) or Pro (to 6 - most probably 7 too)
• One has to set Anamorphic in the Browser window - menu columns
• Export as QuickTime movie .mov - NO QUICKTIME CONVERSION
In iDVD there are TWO places to set - WideScreen
- Start a NEW iDVD project - AND HERE SELECT WideScreen 16:9
- in Project - select Projectinfo
- now set WideScreen 16:9 - Here too
This use to work for me.
FOR FinalCut Pro-X - I have not a Clue - as I don't use it. SORRY
BTW - There is a good practice to before BURNING the DVD do
• Save as a DiskImage
• Test this by using DVD-Player tool
And if it is OK Size and All - then burn it by using
• Disk Util tool
• here set down burn speed to x4 or less (less burn errors = plays on more devices and better)
• Not using Memorex or NoName etc cheap media - as they usually DO NOT WORK as Video-DVDs
• I use Verbatim DVD-R as they play on more and even older DVD-players
Yours Bengt W -
hai
who will create form editor
is it functional consultants or abapers
suitable answer will be given suitable points
kumariHi Aruna,
Form Editor is a standard tool available in SAP. nobody needs to 'create' it. (Tcode - PE51)
But if are asking about who uses it to create new forms - HR Consultant would use it to create new forms or copy existing ones and modify them to get the form he requires.
For example if you want to create a payslip form using form editor - here is the procedure
Re: payslip creation...............
Hope that helped
Regards,
Anand -
Create a Navigation Pane for a Page Hierarchy
Hi,
I am writing a Oracle ADF fusion web application using JDeveloper 11.1.2.0.0. I want to create
a navigation pane. For that I hope to use a declarative component. Please give me a tip to create a tree model as follows
URL : http://jdevadf.oracle.com/adf-richclient-demo/faces/components/pagehierarchy/index.jspx?_afrRedirect=3006461401899918
and how to put it in a jsf which looks as following page's box
URL : http://jdevadf.oracle.com/adf-richclient-demo/faces/components/pagehierarchy/page.jspx?_afrRedirect=3007271059448986
Thanks
SameeraHi,
within one post, you covered three topics. If you are new to ADF what about starting with a tutorial. The way you ask your questions will give you answers based on a POJO components model and not ADF. Many of the implementation details however are not required using ADF. So is it really that you only want to use the ADF Faces components ? If so then the demo sources you pint us to can be downloaded from here
http://www.oracle.com/technetwork/developer-tools/adf/documentation/adf-faces-rc-demo-083799.html
Frank -
If I change a font, editor pane doesn't display multibyte character.
When I use a default font(DialogInput), editor pane display multibyte character correctly.
But If I change a code editor's font(anonymous, proFontWindows etc.), editor pane does not display multibyte character correctly.
Jeff.I found "fontconfig.properties.src" file in <JDEV_HOME>/jdk/jre/lib.
And it has below setting as a part of.
# @(#)fontconfig.properties 1.5 04/01/28
# Copyright 2003 Sun Microsystems, Inc. All rights reserved.
# Version
version=1
# Component Font Mappings
allfonts.chinese-ms936=SimSun
allfonts.chinese-gb18030=SimSun-18030
allfonts.chinese-hkscs=MingLiU_HKSCS
allfonts.devanagari=Mangal
allfonts.dingbats=Wingdings
allfonts.lucida=Lucida Sans Regular
allfonts.symbol=Symbol
allfonts.thai=Lucida Sans Regular
serif.plain.alphabetic=Times New Roman
serif.plain.chinese-ms950=MingLiU
serif.plain.hebrew=David
serif.plain.japanese=MS Mincho
serif.plain.korean=Batang
.....................(omitted)
Assuming the configuration, there is no Korean setting for allfonts sector.
If you add some configuration and adjust "search sequence" properly, Korean font will be shown in code editor.
Unfortunately, I don't know how can I rebuild the font configuration in JDevelper.
Gurus, please leave useful information for rebuilding font configuration in JDeveloper or JDK 1.5 -
An error has occurred when creating this editor
I had created a View in a WDC project which I had also deployed and run successfully in GP several times. Once I closed and opened NetWeaver Developer Studio, and tried to open this View again I get an error saying 'An error has occurred when creating this editor'. Please let me know what could be the reason.
AnilI also faced with this problem several times but without fatal consequences. To be sure you can check the log in your workspace and paste it to the thread.
Also, try to close all the views and reopen the studio, usually it solves the problem.
Aliaksei -
Error while creating WPC editor component...
Hi,
I was trying to create WPC editor component based on [Creating Editor Components for Composite Web Form Elements|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/30c46426-829b-2b10-4286-ec70189e5de5&overridelayout=true] tutorial.
Basically i want to display the dropdown list component in WPC form. Please find below error i am getting when i try to open the form.
Error
com.sapportals.portal.prt.component.PortalComponentException: Error in service call of Resource
Component : com.sap.nw.wpc.designtime.EditorTool
Component class : com.sap.nw.wpc.editor.EditorTool
Thanks in advance,
VasuHi,
Any Suggestions?
Regards
Vasu -
Google's search results page has a font that is miniscule compared to other pages.
I have tried adjusting the font in the tools>options>content>advanced with no change.
I've also tried resetting the view>zoom feature to no avail.
Blogger's "create new post" pane had an even smaller font, if that's possible.
So far the tiny font phenomenon seems to only affect Google pages, though *'''''not'''''* my iGoogle page.
Any help would appreciated :)
Thank you!You can do that with a custom stylesheet in userContent.css or with the Stylish extension.
*http://kb.mozillazine.org/userContent.css
* http://kb.mozillazine.org/Editing_configuration
* Stylish: https://addons.mozilla.org/firefox/addon/stylish/
<pre><nowiki>@-moz-document
domain(google.com) {
body, body * { font-size: 1em !important; }
}</nowiki></pre>
You can add more domains to use that rule by adding the domains as a comma separated list like
domain(google.com), domain(blog.com)
*https://developer.mozilla.org/en/CSS/@-moz-document -
Editor pane crashes when run more that once
Hello,
I'm using an editor pane in my application to display an html file for on-line help.
The page runs fine, with all the hyperlinks working fine as well.
The problem is when I call the editor pane for a second time it always crashes in the middle of loading.
Anyone got an ideas????
Cheers for any help,
AlMNot that I'm aware of. Here's the code:
public class OnLineHelp extends JDialog implements HyperlinkListener
//Component Initialisation------------------------------------------------------
JScrollPane editorScrollPane;
JEditorPane finalPane;
JEditorPane editorPane = new JEditorPane();
GridBagLayout gridBagLayout1 = new GridBagLayout();
//Constructor-------------------------------------------------------------------
public OnLineHelp(Frame parent)
super(parent);
enableEvents(AWTEvent.WINDOW_EVENT_MASK);
try
jbInit();
catch(Exception e)
e.printStackTrace();
pack();
private void jbInit() throws Exception
this.setTitle("Rift Modeller Help"); //frame title
this.getContentPane().setLayout(gridBagLayout1);
setResizable(true);
editorPane.setPreferredSize(new Dimension(700, 500));
editorPane.setMinimumSize(new Dimension(700, 500));
editorPane.setDisabledTextColor(Color.black);
editorPane.setEditable(false);
try
editorPane.setPage(ClassLoader.getSystemResource("Images/help.htm"));
editorPane.setVisible(true);
catch(IOException e)
System.err.println("Error: URL Not Recognised");
finalPane = editorPane;
editorPane.addHyperlinkListener(this);
editorScrollPane = new JScrollPane(editorPane);
editorScrollPane.setHorizontalScrollBarPolicy
(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
editorScrollPane.setVerticalScrollBarPolicy
(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
editorScrollPane.setMinimumSize(new Dimension(700, 500));
editorScrollPane.setPreferredSize(new Dimension(700, 500));
finalPane.setMinimumSize(new Dimension(700, 500));
this.getContentPane().add(editorScrollPane,
new GridBagConstraints(0, 0, 1, 1, 1.0, 1.0,
GridBagConstraints.CENTER, GridBagConstraints.BOTH,
new Insets(2, 2, 2, 2), 0, 0));
//method to enable hyperlink----------------------------------------------------
public void hyperlinkUpdate(HyperlinkEvent he)
try
if(he.getEventType() == HyperlinkEvent.EventType.ACTIVATED)
finalPane.setPage(he.getURL());
catch (Exception e)
System.out.println(System.err);
//Overridden so we can exit when window is closed-------------------------------
protected void processWindowEvent(WindowEvent e)
if (e.getID() == WindowEvent.WINDOW_CLOSING)
cancel();
super.processWindowEvent(e);
//Close dialog------------------------------------------------------------------
void cancel()
dispose();
} -
How can you create a swish pan in Final Cut X?
How can you create a swish pan in Final Cut X?
Andy's - http://andymees.wordpress.com/swish-transitions/
How's that for service?
Cheers! -
Ringtones - I cannot get the Create Ringtone editor to open
I click on the Bell but no editor opens. I try to find Create Rington in the menu and I cannot find it. I have the latest version of iTunes. What am I doing wrong. I have purchased the songs I want to have as ringtones but they just won't work.
I am so frustrated! HELP!Thank you. You have validated what I finally figured out. I purchased the song I wanted as a ringtone. It did have the bell so it was available. The song downloaded and I did a sync on my phone. Still no ringtone. I finally did go to the purchased folder under Store in the left navigation window. I found the song I wanted to create as a ringtone and I did a right click. Sure enough in the window was the Create Ringtone option. I had to sign into the store again and agree to the terms. Then I had to right click and select Create Ringtone again. Then the editor came up and I was able to create and purchase my ringtone. Hurray!
-
Using Two JTextPanes to create an editor..help
Hi
I am writing a language editor ( english to native language). The editor would use the tranliteration. I need to make this both an application and an applet(for obvious reasons). Any suggestions on what container should be used? I am planning to use two text panes on a Frame? It this the right approach? The editor would have the standard features an editor has.Any examples to look at?
Thanks
krisJames
Thanks for responding
I need some direction here, the following is what i am trying to accomplish
have something like this
------------------------------------------------THIS IS FRAME----------
---------JTextPane1---------------------------------
| |
| |
| |
| |
| |
----------JTextPane2--------------------------------
| |
| |
| |
| |
| |
I will use the below box for entry in to english and above box for transliterated text, how do I get the text from box below to the box above(plain english would be ok right now). And WHY do I need a box?
Any code on how to do it is appreciated -
Creating resizeable tabbed panes like an IDE
Hello all
I'm pretty new to JavaFX and GUI building in general so I apologise if this is a simple question. I have had a little experience with Swing but it is limited.
The title is pretty self explanatory. I want to lay out a few panels sort of like an IDE with a tree view down the left hand side, my directly applicable content in a panel on the upper right and a sort of results panel below the "content" panel containing a table that would show search results etc.
Both the "results" panel and the "content" panel would probably be tabbedpanes because whenever someone performed a certain operation a new tab would need to appear in one of those panels.
Is this sort of thing possible with JavaFX 2 and do you guys have any tips on how I would go about it?
EDIT: sorry forgot to clarify that I also want the user to be able to resize the panels sort of like you do with an IDE. Click and drag the margin to make each panel wider or narrower for example.
Edited by: moondoggie on 2012/03/26 6:10 AM
Edited by: moondoggie on 2012/03/26 6:11 AMAh figured it out. I can use SplitPane to create separate panes that are resizeable. Simple and effective. I am really enjoying JavaFX 2. For the first time I'm actually keen on building GUIs. :)
-
hi all
i am creatin a small application which performs some type of functionallity as any java ide does but i have a problem in one area in my application when i create a demo.java file i compile it through runtime.exec("javac "+filepath)
this creates class file now i want to run the applicaiton and want to show the output in output window. i run the class file through runtime.exec("java "+filepath) but i dont know how can i show the output in myapplication's output window.i mean how can i fetch the output generated by program .
any smallhelp will be appriciated
thankshi
sorry for cross posting and thanks for ur reply but i have added this code in amy applicaiton but didnt find expected output this is my code plz help
try
tf4.setText( ta1.getText() );
p =t.exec ("java "+tf4.getText());
String line;
BufferedReader output = new BufferedReader( new InputStreamReader( p.getInputStream() ) );
while ( (line = output.readLine()) != null )
System.out.println("inside while ");
if (line.trim().length() > 0)
System.out.println( line );
p.waitFor();
catch(Exception b)
b.printStackTrace();
JFrame f8 = new JFrame("Exception Occured"); // Frame for find dialog box
Sample6Dialog d9 ; //dialog box
d9 = new Sample6Dialog(f8 , "Exception Occured");
d9.setVisible(true);
}
Maybe you are looking for
-
Problem placing buttons on top of a background image
My knowledge of Java isn't the greatest and I am currently having problems placing buttons on top of a background image within a JApplet (this is also my first encounter with Applets). I'm using a Card Layout in order to display a series of different
-
Quicktime 7.2 not playing videos on Apple site
When I try to play the video on the Apple site about Leopard or the one about iLife, it plays a couple of seconds and then freezes up. If I click the arrow to start it again, it goes back to the beginning of the clip, plays and freezes again. I have
-
What is the differences on customer
what is the differences in customer both technical and functional areas.
-
Report for initial fill of marketing attributes for contact persons
Hello, i have an excel document with contact persons and marketing attributes. What way do you recommend to bring this attributes into SAP CRM? The contact persons are already in SAP CRM. Thank you Best regards Manfred
-
Non-root wireless bridge speed issue
I have a wireless bridge connecting two buildings, using Cisco Aironet 1262's. The root Bridge allows for bonding 2 channels on the A radios and talks at 40MHz, the non-root does not alloow me to do this configuration in the gui, and the band width i