Why do images not show up for buttons?
Netters,
Here is my simple code:
oItem.Top = top;
oItem.Left = left;
oItem.Width = wd;
oItem.Height = ht;
SAPbouiCOM.Button oButton = ((SAPbouiCOM.Button)(oItem.Specific));
string sPath = System.Windows.Forms.Application.StartupPath;
string fullPath = sPath + "\MyImage.bmp";
oButton.Image = fullPath;
I have verified that the image exists at the specified location. However, it is still not being shown in the UI. The button does show up though.
Is there something more that I must do?
Thank you in advance for your help.
Pradeep
Hello Pradeep,
If you want to use a button as image button, you need to sign the type as bt_Image.
oButton.type = bt_Image
Hope this help,
Nick
Similar Messages
-
Why does is not show the radio buttons
I want to display the buttons in a row then radio button in a row under the button and then log scroll pane under the radio buttons. This is my code:
//Add the buttons and the log to this panel.
add(buttonPanel, BorderLayout.PAGE_START);
add(radioPanel, BorderLayout.CENTER);
add(logScrollPane, BorderLayout.CENTER);When i run it it display the buttons and the logsrollpane. Why does it not display the radio buttons?Thanks guys.
This is my problem. We have a big system that produce lots of log files and the software testers have to manually have to go through the logs file and look for a certain XML tags in the log file.
What I want to do is help the software testers my developing a small tool that will allow them to open a log file and then click on a radio button corresponding to a xml tags that they are looking for and automatically highlight the tags in the file in yellow color .
I am not sure how feasible this is and I am stuck.
This is what I have done so far.
Can you please guys help me go forward.
import java.io.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.filechooser.*;
public class FileChooserDemo extends JPanel
implements ActionListener {
static private final String newline = "\n";
JButton openButton;
JButton clearButton;
JTextArea log;
JFileChooser fc;
// Radio Buttons
static String em01 = "EM01";
static String em07 = "EM07";
/*static String dogString = "Dog";
static String rabbitString = "Rabbit";
static String pigString = "Pig";*/
public FileChooserDemo() {
super(new BorderLayout());
//Create the radio buttons.
JRadioButton em01Button = new JRadioButton(em01);
em01Button.setMnemonic(KeyEvent.VK_B);
em01Button.setActionCommand(em01);
em01Button.setSelected(true);
JRadioButton em07Button = new JRadioButton(em07);
em07Button.setMnemonic(KeyEvent.VK_C);
em07Button.setActionCommand(em07);
//Group the radio buttons.
ButtonGroup group = new ButtonGroup();
group.add(em01Button);
group.add(em07Button);
//Register a listener for the radio buttons.
em01Button.addActionListener(this);
em07Button.addActionListener(this);
//Put the radio buttons in a column in a panel.
JPanel radioPanel = new JPanel(new GridLayout(0, 1));
radioPanel.add(em01Button);
radioPanel.add(em07Button);
//Create the log first, because the action listeners
//need to refer to it.
log = new JTextArea(40,60);
log.setMargin(new Insets(5,5,5,5));
log.setEditable(false);
JScrollPane logScrollPane = new JScrollPane(log);
//Create a file chooser
fc = new JFileChooser();
//Uncomment one of the following lines to try a different
//file selection mode. The first allows just directories
//to be selected (and, at least in the Java look and feel,
//shown). The second allows both files and directories
//to be selected. If you leave these lines commented out,
//then the default mode (FILES_ONLY) will be used.
//fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
//fc.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);
//Create the open button. We use the image from the JLF
//Graphics Repository (but we extracted it from the jar).
openButton = new JButton("Open File");
openButton.addActionListener(this);
//Create the save button. We use the image from the JLF
//Graphics Repository (but we extracted it from the jar).
clearButton = new JButton("Clear Text Area");
clearButton.addActionListener(this);
//For layout purposes, put the buttons in a separate panel
JPanel buttonPanel = new JPanel(); //use FlowLayout
buttonPanel.add(openButton);
buttonPanel.add(clearButton);
//Add the buttons and the log to this panel.
add(buttonPanel, BorderLayout.PAGE_START);
add(radioPanel, BorderLayout.LINE_START);
add(logScrollPane, BorderLayout.CENTER);
public void actionPerformed(ActionEvent e) {
//Handle open button action.
if (e.getSource() == openButton) {
int returnVal = fc.showOpenDialog(FileChooserDemo.this);
if (returnVal == JFileChooser.APPROVE_OPTION) {
log.setText("");
File file = fc.getSelectedFile();
try{
BufferedReader in = new BufferedReader(new FileReader(file));
String data;
while ((data = in.readLine()) != null) {
log.append(data + newline);
}catch(IOException ioe){
log.setCaretPosition(log.getDocument().getLength());
//Handle save button action.
}else if (e.getSource() == clearButton) {
log.setText("");
* Create the GUI and show it. For thread safety,
* this method should be invoked from the
* event-dispatching thread.
private static void createAndShowGUI() {
//Create and set up the window.
JFrame frame = new JFrame("PROGRESS Message Viewer");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
//Create and set up the content pane.
JComponent newContentPane = new FileChooserDemo();
newContentPane.setOpaque(true); //content panes must be opaque
frame.setContentPane(newContentPane);
//Display the window.
frame.pack();
frame.setVisible(true);
public static void main(String[] args) {
//Schedule a job for the event-dispatching thread:
//creating and showing this application's GUI.
javax.swing.SwingUtilities.invokeLater(new Runnable() {
public void run() {
createAndShowGUI();
} -
Image not showing up for Contacts
I recently added some contacts. All the info is ok, except the contact image which I uploaded on Microsoft Outlook (which appears on MO) does not appear on the iPod. Anyone know how to fix this?
Hi 255344,
Is this your own HTML DB installation? Do you see any errors when you try to bring up the image directly in the browser (by typing the full image path in the Location bar)? Do you see any errors in Apache's error_log?
Sergio -
Why is iTunes not showing updates for my iPod Touch 1G
I have an iPod Toch 1G and i want to upgrade it to 3.3.1, but when i click on Check For Updates, it says "The version of iPod software(2.2.1) is the current version". It also says that it will automatically check for updates on 9/25/11. Please help me with this issue. Thanks
You'll have to buy the software in order to upgrade. Purchasing iOS 3.1 Software Update for iPod touch (1st generation)
-
HOw can I get my messages that I have sent or received to appear on my iPad mini as well as my phone?
Me too, ipad mini can't get YouTube app to function via the official app and the same error message," ...tap to retry", but to no avail. The app launches but it will not allow me to sign in. The drop arrow just tilts up and down and ...nothing. I can still access YouTube through Safari browser but strange, I can't find a solution to the app not opening or being able to sign in on either ipad mini or phone even though they are up to date apps.
-
why does adobe photoshop elements 6.0 not show up for a download choice of putting my photos into my computer, I'm on windows7. I'm sure it did when I first got my computer. Could it be that I have lots of other photo software that may be interfering?@@
If you open the Organizer and go to Edit>Preferences>Camera or Card Reader, do you have Auto Launch Adobe Photo Downloader on Device Connect checked?
Try checking that if you don't. -
' delete an app. All apps wiggle incl. the one in questions. However the app I want to delete does not show the x button. I reseted, also restrictions are on with on for apps delete. Suggestions?
mardemar wrote:
... - the only one without an x delete button.
What is the name of this App and where did you get it...? -
I bought the season 7 pass for Doctore Who, but the new episodes are not showing up for download. I've been all over the support page, I even looked up my purchase history and there is are none showing and I even bought last weeks episode, The Bell's of St. John. Who can I contact to find out why I'm not getting the rest of season 7 for download?
Thanks,
ChristyQGarmin is sending you to Apple because it is Apple that would have to give you a refund as the actual point of sale. However, Apple states all sales are final.
Apple is sending you to Garmin because it is Garmin's fault their maps are out of date and Apple doesn't write the software. They may not even be looking that deeply and simply perceiving it as a programming "bug" it is up to Garmin to solve.
Who know whose fault it is that Garmin isn't getting up to date data to put in their maps.
Ultimately I think you stand the best chance in getting a refund from Apple though it isn't guaranteed. Apple is the cashier. You just have to convince them this isn't just a line of code omitted from an application and isn't something that will be soon corrected by Garmin. Make it clear it isn't a problem with the application running on your device, it is a problem with the data it contains. Either that or you have to hope Garmin will feel so bad about it they will delve down into their slush fund and send you a refund. -
Why is there not an option for none because i dont have a credit card and there is no none button
Create a new ID by following the steps in this article exactly as written: http://support.apple.com/kb/ht2534. Pay attention to step 3; you must first download and install any free app then create the ID.
-
Why are TV show episides for last three days not showing up for purchase on iTunes?
TV episodes for 10/25 and 10/26 are still not showing up for purchase in iTunes. Am I the only one? The latest episodes that show up are from last Thursday. What gives?
I am also having the same exact problem. Put in a ticket with Apple 2 days ago when I first noticed the problem. No one has contacted me reagarding this, and you can't get anyone on the phone!!! So frustrating!!! I went back and put in a dispute for all episodes that charged me and I was never allowed to watch, some season passes others were single episodes. All in all Apple owes me about $150 as of now. We are an Apple family, love their products, but this is ridiculous!!! Glad I'm not the only frstrated party, hoping there is some resolve. Really would like to get what I paid for!!!!!
-
Audibook not showing up for synching
Hi there,
I've got an iPhone v4, running iTunes v10 on PC Windows 7.
I downloaded my first audiobook from iTunes last night. Saw that it shows up in iTunes under Library/Books and did my whole synch/update iPhone and thought no more of it. Tried to find it this morning and couldn't find it on my phone. So I figured I must have forgotten to check some button - but I've gone in and checked - yes the files are there (3 parts) in Library/Books, but if I go to Devices/iPhone/Books nothing is there to synch??! I have two PDFs in my iBooks and they are the only things that show up.
I've clicked on each of the three chapters and gone to Get Info and stepped through the options and ensured their Media Type is listed as Audiobook.
They are .m4b files and they are AAC protected files. I've got both the phone and iTunes at full update status. I've logged out and restarted.
I created a Playlist called Audiobooks and transferred a copy of the files to there, thinking I could 'trick' it into recognising them, but no joy.
I've played the beginning of each chapter to also try and get iTunes to recognise the files, but still no joy.
HELP! why aren't they showing up for me to be able to synch them??yeesh *facepalm* do I feel like a complete n00b
I really really thought I'd done that - what a complete doofus!
Well, thank you so much for pointing it out and not making me feel like an idiot - I can do that myself!!
Hope you're having a great Easter -
Another Images not Showing up thread
I know there are multiple threads out there about images not showing up on the login page of application express, and I have browsed most of them without success.
My images folder is in:
C:\oracle\product\10.1.0\db_1\Apache\Apache\images\
My dads.conf file has specified:
Alias /i/ "C:\oracle\product\10.1.0\db_1\Apache\Apache\images\"
Address of missing image in I.E. is:
http://<host>:7777/i/htmldb/apex_logo.gif
When I ran @apexins I specified /i/ for the virtual images directory.
I am running Oracle Database 10gR2, with Oracle HTTP Server that came with the Oracle Database 10g Companion CD Release 2.
I am using APEX 3.2.
When I try to go to
http://<host>:7777/i/
I get:
You don't have permission to access /i/ on this server.
I also cannot login to APEX. When I type my username/password and click the Login button, it does nothing (nothing loads, nothing changes... nothing happens). I don't know if this is related?
Thank you,
~TomI found the problem -
In my dads.conf file I had:
Alias /i/ "C:\oracle\product\10.1.0\db_1\Apache\Apache\images\"
When I really needed:
Alias /i/ "C:\oracle\product\10.1.0\db_1\Apache\Apache\images/"
Note the end slash after images changed from backslash to forward.
Silly me. -
Crystal Report Images Not Showing - JSP inside /WEB-INF folder
Hi Experts,
I am using Crystal report for Eclipse and also using Struts2 and tiles framework combination.
The problem is when viewing the report all I've got is red X on all images and the graph image also not showing. This is when I use tiles and my jsp is inside the web-inf folder.
This is my struts link: href="s:url value='/report/reportOpen.action?report=1'
I've checked that the path to the viewer generated HTML is not correct. see code below.
src="../../../crystalreportviewers/js/crviewerinclude.js"
But when I test to access a simple jsp viewer that resides on the web root folder, this works fine but of course this is not what I want to have. I need to have my banner and menus on top of the report page (using tiles)
This is my jsp link: href="s:url value='/ReportViewer.jsp?report=1'
Viewer generated HTML below.
src="crystalreportviewers/js/crviewerinclude.js"
This might be a common problem and that you can share to me your solution.
Note: I removed the script tags because I can't submit this entry.
Thank you in advance,
Regards,
Rulix Batistil
Crystal Report Images Not Showing - JSP inside /WEB-INF folderHi Saravana,
After a few experimentation from your idea i was able to figure out the problem and now it is working.
I don't have to copy the folder to where my jsp resides but still maintains it in the root location: web/crystalreportviewers
The changes should always be in web.xml.
1st: change the crystal_image_uri value to ../crystalreportviewers
2nd: change crystal_image_use_relative value to "web"
Change to "web" instead of webapp because that is what I named my web root folder.
<context-param>
<param-name>crystal_image_uri</param-name>
<param-value>../crystalreportviewers</param-value>
</context-param>
<context-param>
<param-name>crystal_image_use_relative</param-name>
<param-value>web</param-value>
</context-param>
Thank you. You showed me the way on how to solve the 3 day problem.
BTW, my next problem is when clicking on any buttons prev/next/print/export, I got this error HTTP Status 404.
Well, at least for now I can view my initial report. I just need to figure out the next issue and with the help of the great people here in the forum.
Thanks a lot.
Regards,
Rulix
Edited by: Rulix Batistil on Nov 26, 2008 7:27 AM -
Plz. help,table does not show value for one field
hi all,
i have a really strange problem , i have a string field in access database that contains the date and time value,this field for some strange reason does not show in my table created through html,
i tried all combination(arranging the fields) ,renaming it w/o help, it shows the value using out.println(but then why is it not showing me in the table???)
plz. help ASAP.
the code is as under
<HTML>
<HEAD><TITLE> LOGGED IN ok</TITLE> </HEAD>
<BODY bgcolor = "yellow">
<%@ page import = "java.sql.*" %>
<%! // declaring variables
String s = "";
java.sql.ResultSet rs=null,rs1=null,rs2=null;
java.sql.Connection con;
java.sql.Statement stmt,stmt1;
String empId = "",compid ="",calltype ="",probheader="",probdescription ="",probcomment ="",priority ="",a="";
%>
Following are the pending complaints ..
<TABLE BORDER=1 CELLSPACING=0 CELLPADDING=0 width="100%">
<TR>
<TD> ComplainD </TD>
<TD> ComplainId </TD>
<TD> ProbHeader </TD>
<!--
<TD> ProblemDescription </TD>
<TD> Problem Comments </TD>
-->
</TR>
<%
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
java.sql.Connection con = java.sql.DriverManager.getConnection("jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};" +"DBQ=c:/vishal/HelpDesk.mdb;DriverID=22;READONLY=false","","");
//java.sql.Connection con = java.sql.DriverManager.getConnection("jdbc:odbc:Portal");
java.sql.Statement stmt = con.createStatement(java.sql.ResultSet.TYPE_SCROLL_INSENSITIVE,java.sql.ResultSet.CONCUR_READ_ONLY);
s = "select * from Complains";
java.sql.ResultSet rs = stmt.executeQuery(s);
while(rs.next())
//getting data from database
empId = rs.getString("EmpId"); // out.print(" " + empId);
compid = rs.getString("ComplainId");
// out.print(" " + compid);
calltype = rs.getString("CallType");
// out.print(" " + calltype);
a = rs.getString("Complaindate"); //problem with this field
out.print(a); // prints value
%>
<TR>
<TD> <%=compid %> </TD>
<TD> <%=calltype %> </TD>
<TD <%=a %> </TD>
</TR>
<%
}//while loop
%>
</TABLE>
<%
}//try
catch(Exception ep)
out.println(ep);
System.exit(1);
%>
</BODY>
</HTML>
value in database is as follows :-
Complaindate
5/18/2003 1:30:27 PM
5/18/2003 7:32:43 PM
5/18/2003 7:34:02 PM
5/18/2003 7:49:19 PM
5/18/2003 7:50:27 PM
5/18/2003 10:49:42 PM
5/18/2003 10:58:24 PM
thanking u ,plz ask if any further clarificationsHi
I am seeing nothing wrong with ur code..
what about "view source" result.....plz check with that...
whether u r getting all the trs and tds...
revert back on this Issue..
Mars Amutha -
Calculate result as average in the report not showing average for all
Hello,
I have a calculated key figure in the query where its result should show average. I have made a setting for this calculated key figure as:
1. Calculations tab: Calculate result as "average" and calculate single value as "nothing defined"
2. Aggreagation tab: exception aggregation: Total and reference char: []
Now coming to report, BEX it showing correct average for all cells but when i run it in portal few values it is showing correct average but for few it is showing as blank. I exported this to excel then cell shows blank but cell has some values in the custom format and display values when i change the format to general from "format cells" option.
Please help me in resolving the issue- why portal not showing value for all.
Thanks,
VijayaSAP note solved the purpose.
Thanks & Regards,
Vijaya
Maybe you are looking for
-
The most confusing broadband problem I've ever com...
Well, This all started about 3-4 days ago now. I was online one night and suddenly, everything Disconnected. However, not entirely. The network shows that I am online with Internet access (Hence how I'm here right now posting this) But this is where
-
How to create database link between 2 servers to exports schemas
Could any one please give Steps to create database link between 2 servers (linux) to exports schemas like AR, INV, GL.......etc
-
Is it allowed to make a rmi call from within an ejb??
Hello, Am I allowed to make a rmi call from within an ejb such as: String host = "localhost"; RemoteObject ro = (RemoteObject) Naming.lookup("rmi://"+host+"/MonServeur"); ro.myMethod(); package pack; import java.rmi.Naming; import java.rmi.RemoteExce
-
Why does my itouch 1st generation have app store, how do i get it on?
I have a itouch 1st generation, how do i get the app store on it, i do not have the app store logo on my dest top at all
-
451 4.7.0 Timeout waiting for client input
My organization is running Small Business Server 2008 with Exchange. After installing Exchange users reported not reciveing emails from Comcast and a few other domains. Looking at the logs, domains including gmail and comcast are unable to deliver