o
k
q
u
e
s
t
i
o
n
s
.
c
o
m

Setting up a JScrollPane -

Im trying to create a JScrollPane that contains a JList which is populated with entries which are just Strings. For some reason i get nothing visually at all. When i set the JScrollPane to use scrollbars all of the time what is the default size of the JScrollPane?

Code:
public GUI(){
JScrollPane jsp = new JScrollPane();
  jsp.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS); 
  jsp.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
}

 

Setting up a JScrollPane -
Im trying to create a JScrollPane that contains a JList which is populated with entries which are just Strings. For some reason i get nothing visually at all. When i set the JScrollPane to use scrollbars all of the time what is the default size of the JScrollPane? Code: public


Combine JEditorPane,JScrollPane,JTabbedPane,JSplitPane{Resolved} -
Can this be done? I tried multiple ways to combine them but none work. If i add a JEditorPane to a JScrollPane then add the JScrollPane to a JTabbedPane then the JTabbedPane to a JSplitPane i get tab at the top but no JEditorPane. If i add the JEditorPane to the JTabbedPane then add


Collor of scroll bar in jScrollPane -
How can I change the color of the scroll bar in a jScrollPane?


JScrollPane problem -
I am adding a JPanel to a JScrollPane. Within the panel, I am running graphics that sometimes go off the screen. I cannot get the scrollbars to work when the graphics are off the screen. I've tried to revalidate and repaint, but that doesn't help. I appreciate any help anyone can


JViewPort and JScrollPane -
Hello I have a JScrollPane, now in the View I havea JPanel, and in the two viewports (top and left side) I have another 2 JPanels. On these JPanels i have added my components. The Centra View works fine, and my components react as i wold expect. How ever, non of my mouse Listene


who make the JScrollPane work -
Hi, In my example I put a JTable on a JFrame. I also put a JScrollPane to the JTable. I give the JTable a 100 rows with some values. For some reason I can 't scroll. Is it possible to make it work in this example because I really want to keep the line "contentPane.setLayout(n


JScrollPane and ViewPorts containing JPanels -
Right I'm not having much luck with this thing I'm trying to build: I need to build a Screen where the Column and Row Headers do not move merely scroll along with the COntents of the main area. Now i have this kind of set up: Code: public class Matrix extends JScrollPane


How to save modified user setting -
I want to write a program on saving the user modified setting when the user have just used Tool -> Options -> to change the setting. After clicking "OK" the setting will be saved even the program have been closed and when restart again, the new/saved setting will be in


-
Does VB have a setting ini file? I want my VB setting at work to look like the setting at home.


changing network setting -
i wanted to know is ther any way of changing you tcp/ip setting from VB. as i have a laptop which i take from work to home and i need to use different setting at each location and would like a quick way to change them.


Setting -
Hy, I am desining my application when the computer setting is set to 800 by 600 pixel. When I am changing the setting to 640 by 480 pixel, I am loosing part of my form. Do you have any idea of how can I solve this problem??


Screen Setting -
I have a problem...... I want to change the setting Large - Small Font from Visual Basic. Did any know how can i do that. Maybe if i change from Registry this setting. I don't know. Please help me.


how to save settings enter by user -
i am doing a program that lets the user select the volume and other setting like zoom, focuz, mute..... by using sliders and option button. in the same form, i have a command button that is to save the new setting input by the user. is there anyway to write the code so that the next


Setting printers to default -
i can find all the printers on my network using vb code but need to be able to write code that picks up the current default printer setting and stores it then user selects the new setting and after printing has been done the old default setting automatically comes back in, im writing t


My.Setting Application -
OK this is probably a simple question but I'm lost. I careted a Setting in the projects (LastBackupName) as a String setting Scope of application. When the user backs up the database ghe want to save the last location and file name it was performed as so that the next time he goe


Setting up FTP server with DSL -
Hi, I'm trying to install my FTP server with DSL. I'm trying Serv-U and GuildFTP, but I can't get success setting up them. I also have a DNS supplied by DNS2GO because my IP is dynamic. I never had set up a FTP server before and I'm in trouble. Can somebody help me to setting


JTextArea -
Code: //... myTextArea1 = new JTextArea(); myTextArea1.reshape (0,100,500,200); c.add (myTextArea1); c.add (new JScrollPane(myTextArea1)); //... why that do not work ? I want a scoll bar in the JTextArea


Panel problem... -
I have made a panel and then added components to the panel. I then added the panel to a JScrollPane, which was added to a JFrame... The problem is that all the components in the panel appear to be frozen. They do respond to mouse clicks and key presses, but the changes are not made


Maintain Windows Standard color setting -
I would like the GUI for my APP to maintain the Windows Standard color setting, even when the user goes through Control Panel / Display and changes the setting to something else. In other words, I want a command button backcolor to be GREY, regardless of the user's Control Panel setti


Mass Colour Setting -
Is there any way of setting the properties of controls all at once? For example to set the backcolour and forecolour of all controls all at once in code? I am asking this as I am allowing users to change to colour of my interface, and it will take ages to go through all the different c


Aligning Components -
I have 4 labels all with corresponding textfields to the right of each label. I also have 1 label with a textarea next to it. How can I align the labels? I would still like them all in the center of the form but I want the start of each label to be aligned and the start of each textb


looping for specified amount of time -
A Simple program i made has a text box were you specify the number of times to make the loop, a text box of the text to display in the loop and this is displayed in a JTextArea. It might be easer if i post the code: Code: import javax.swing.*; import java.awt.*; import jav


setting up a machine as a server -
Can anyone tell me a good source for information on setting up a machine as a server. Now I know I would need to get a static ip but what I need help on is setting up the machine. I have nerver done anything like this before so I would need something with a newbie in mind. Not sure if


Setting Width Based on screen size -
I have a javascript application where I am setting the wide of a scroller: var scrollerwidth=600 how can I set this width to be the size of the window, it works fine but when I go to a bigger resolution, it doesnt scroll from edge to edge. How would I go about setting that. T


using save setting -
i need help with save setting. what does key mean and all the other things like section and setting


Simple Hashing -
I want to write code for a simple hashing algo, which I think many will know. I want to store a few options for my application. Each option is Boolean type, so it can have a value of either True or False, or 1 or zero. If I decide to store each option in a separate setting in the


How to set default printer setting -
I'm using crystal report. I can preview the report in crystalReportViewer. But when I try to print the report, it follows the user pc's printer setting. Example: I set the printer setting in CR to A3 size, landscape but the output become A4 size and potrait when I click the print ic


[2005] Problem with Changing Printer Driver settings -
I need to set the duplex setting (as well as other settings) for a large number of printers. I have explored the Printersettings class but have run into the following issue: When I set the duplex setting for a printer with Duplex.Vertical, the setting does not get stored on the com


[02/03] Suggested setting file for an app -
hi there, now im on the setting part now in my program using .net 2003, just want a suggestion from you pips what's the best way to store a setting in a file (like those *.ini or *.txt files), i remove the the registry in my options, uhm, and also can someone provide a sample for it? o


Edit the taskbar settings with code -
If you right click the taskbar in windows and choose "properties", there are a couple of setting for you to edit. How is it possible to edit these with visual basic .net code? Im particularly interested in the "always put the taskbar on top" setting (might not be th


INi wil mulitpuill leavels -
I am looking for the best way of making an ini file with about 4 or 5 leavels of data storage. eg insted of the usale [header] line = setting to somthing like {header} [header1] line = setting [header leavel 1] line = setting {header} [header leavel 1] line = se


[2005] Help with XML Settings Keys -
Code: <?xml version="1.0" ?> <settings> <setting key="dancing-leds" type="boolean" value="false" /> <setting key="default-skin" type="string" value="/dscart/skin/default/" />


My date format vs user's date setting -
Hello ppl I have to use date in my application which I have set to be short date (mm/dd/yy). This application communicates with an Access 2000 database. In many cases users of applicaiton willl have different setting (Regional setting of date in their Windows), for example they can


[2.0] Deleting a node from XML -
Hi all: I'm trying to do some manipulation with an xml file. What I'm doing is trying to store and manipulate a small amount of data, but not with a database but an XML file. So the following xml file simply saves settings each with a name, head and tail value. For each new setting,


OFF Topic Question..... -
Don't kill me for this but do any of you have experience setting up the SMTP on a Win 2000 Server? If so please help me on setting it up. Thanks


Get The Browsers Current Text Size -
hey ya, I have enabled people to change the size of the font [zoom the text] in the browser on my chat app. anyhow, i want to be able to check the correct font size, and check the correct menu array item to the zoom level [like IE Does] now, i am guessing there is two ways to


I found the Proxy Setting, BUT! -
I found the proxy setting but how can I set/retrive it "HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections" is the setting, can someone tell me how to set & retrive it?


Beginner:Problem CreateObject in ASP -
I'm putting my asp page in IIS running NT4.0. My problem is when 2 or more client try to access this page at the same time, some of them failed to execute CreateObject but if user accessing this page sequentialy, no error occurs. Can someone help me how to solve this problem, maybe


How can I make all opend IE5 windows update -
I change IE5's proxy setting by chaning the registry setting, but after the changing, all IE5 windows opened before I changed the setting can't get update unless I open another IE5 window, so what should I do to let all the IE windows update after the changing?? (There is no such probl


Getsetting: -
Is there a way to get the setting, and save a setting outside of the visual studio folder in regedit or whatever? I have heard it isnt possible, but it must be...