javax.swing.border.SoftBevelBorder Java Examples

The following examples show how to use javax.swing.border.SoftBevelBorder. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ProgressBarDemo.java    From Darcula with Apache License 2.0 5 votes vote down vote up
public void createProgressPanel() {
getDemoPanel().setLayout(new BorderLayout());

JPanel textWrapper = new JPanel(new BorderLayout());
textWrapper.setBorder(new SoftBevelBorder(BevelBorder.LOWERED));
textWrapper.setAlignmentX(LEFT_ALIGNMENT);
progressTextArea = new MyTextArea();
progressTextArea.getAccessibleContext().setAccessibleName(getString("ProgressBarDemo.accessible_text_area_name"));
progressTextArea.getAccessibleContext().setAccessibleName(getString("ProgressBarDemo.accessible_text_area_description"));
textWrapper.add(new JScrollPane(progressTextArea), BorderLayout.CENTER);

getDemoPanel().add(textWrapper, BorderLayout.CENTER);

JPanel progressPanel = new JPanel();
getDemoPanel().add(progressPanel, BorderLayout.SOUTH);

progressBar = new JProgressBar(JProgressBar.HORIZONTAL, 0, text.length()) {
    public Dimension getPreferredSize() {
	return new Dimension(300, super.getPreferredSize().height);
    }
};
progressBar.getAccessibleContext().setAccessibleName(getString("ProgressBarDemo.accessible_text_loading_progress"));

progressPanel.add(progressBar);
progressPanel.add(createLoadButton());
progressPanel.add(createStopButton());
   }
 
Example #2
Source File: ProgressBarDemo.java    From Darcula with Apache License 2.0 5 votes vote down vote up
private void createProgressPanel() {
    setLayout(new BorderLayout());

    JPanel textWrapper = new JPanel(new BorderLayout());
    textWrapper.setBorder(new SoftBevelBorder(BevelBorder.LOWERED));
    textWrapper.setAlignmentX(LEFT_ALIGNMENT);
    progressTextArea = new MyTextArea();

    progressTextArea.getAccessibleContext().setAccessibleName(
            resourceManager.getString("ProgressBarDemo.accessible_text_area_name"));
    progressTextArea.getAccessibleContext().setAccessibleName(
            resourceManager.getString("ProgressBarDemo.accessible_text_area_description"));
    textWrapper.add(new JScrollPane(progressTextArea), BorderLayout.CENTER);

    add(textWrapper, BorderLayout.CENTER);

    JPanel progressPanel = new JPanel();
    add(progressPanel, BorderLayout.SOUTH);

    progressBar = new JProgressBar(JProgressBar.HORIZONTAL, 0, text.length()) {
        public Dimension getPreferredSize() {
            return new Dimension(300, super.getPreferredSize().height);
        }
    };
    progressBar.getAccessibleContext().setAccessibleName(
            resourceManager.getString("ProgressBarDemo.accessible_text_loading_progress"));

    progressPanel.add(progressBar);
    progressPanel.add(createLoadButton());
    progressPanel.add(createStopButton());
}
 
Example #3
Source File: ProgressBarDemo.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
private void createProgressPanel() {
    setLayout(new BorderLayout());

    JPanel textWrapper = new JPanel(new BorderLayout());
    textWrapper.setBorder(new SoftBevelBorder(BevelBorder.LOWERED));
    textWrapper.setAlignmentX(LEFT_ALIGNMENT);
    progressTextArea = new MyTextArea();

    progressTextArea.getAccessibleContext().setAccessibleName(
            resourceManager.getString("ProgressBarDemo.accessible_text_area_name"));
    progressTextArea.getAccessibleContext().setAccessibleDescription(
            resourceManager.getString("ProgressBarDemo.accessible_text_area_description"));
    textWrapper.add(new JScrollPane(progressTextArea), BorderLayout.CENTER);

    add(textWrapper, BorderLayout.CENTER);

    JPanel progressPanel = new JPanel();
    add(progressPanel, BorderLayout.SOUTH);

    progressBar = new JProgressBar(JProgressBar.HORIZONTAL, 0, text.length()) {
        @Override
        public Dimension getPreferredSize() {
            return new Dimension(300, super.getPreferredSize().height);
        }
    };
    progressBar.getAccessibleContext().setAccessibleName(
            resourceManager.getString("ProgressBarDemo.accessible_text_loading_progress"));

    progressPanel.add(progressBar);
    progressPanel.add(createLoadButton());
    progressPanel.add(createStopButton());
}
 
Example #4
Source File: SoftBevelBorderBeanInfo.java    From netbeans with Apache License 2.0 5 votes vote down vote up
@Override
protected PropertyDescriptor[] createPropertyDescriptors() throws IntrospectionException {
    PropertyDescriptor[] pds = new PropertyDescriptor[] {
        createRO(SoftBevelBorder.class, "bevelType"), // NOI18N
        createRO(SoftBevelBorder.class, "highlightOuterColor"), // NOI18N
        createRO(SoftBevelBorder.class, "highlightInnerColor"), // NOI18N
        createRO(SoftBevelBorder.class, "shadowOuterColor"), // NOI18N
        createRO(SoftBevelBorder.class, "shadowInnerColor"), // NOI18N
    };
    pds[0].setPropertyEditorClass(BevelBorderBeanInfo.BevelTypePropertyEditor.class);
    return pds;
}
 
Example #5
Source File: ProgressBarDemo.java    From beautyeye with Apache License 2.0 5 votes vote down vote up
private void createProgressPanel() {
    setLayout(new BorderLayout());

    JPanel textWrapper = new JPanel(new BorderLayout());
    textWrapper.setBorder(new SoftBevelBorder(BevelBorder.LOWERED));
    textWrapper.setAlignmentX(LEFT_ALIGNMENT);
    progressTextArea = new MyTextArea();

    progressTextArea.getAccessibleContext().setAccessibleName(
            resourceManager.getString("ProgressBarDemo.accessible_text_area_name"));
    progressTextArea.getAccessibleContext().setAccessibleName(
            resourceManager.getString("ProgressBarDemo.accessible_text_area_description"));
    textWrapper.add(new JScrollPane(progressTextArea), BorderLayout.CENTER);

    add(textWrapper, BorderLayout.CENTER);

    JPanel progressPanel = new JPanel();
    add(progressPanel, BorderLayout.SOUTH);

    progressBar = new JProgressBar(JProgressBar.HORIZONTAL, 0, text.length()) {
        public Dimension getPreferredSize() {
            return new Dimension(300, super.getPreferredSize().height);
        }
    };
    progressBar.getAccessibleContext().setAccessibleName(
            resourceManager.getString("ProgressBarDemo.accessible_text_loading_progress"));

    progressPanel.add(progressBar);
    progressPanel.add(createLoadButton());
    progressPanel.add(createStopButton());
}
 
Example #6
Source File: HotelPropertiesWindow.java    From Hotel-Properties-Management-System with GNU General Public License v2.0 5 votes vote down vote up
private void setType() {
    int locationPoint = 323;
    for (int i = 0; i < 3; i++) {

        roomTypes = new JTextField();
        roomTypes.setColumns(10);
        roomTypes.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));
        roomTypes.setBounds(locationPoint, 97, 86, 20);
        roomTypes.setVisible(false);
        bottomPanel.add(roomTypes);

        roomTypeFields[i] = roomTypes;
        locationPoint = locationPoint + 96;
    }
}
 
Example #7
Source File: ProgressBarDemo.java    From littleluck with Apache License 2.0 5 votes vote down vote up
private void createProgressPanel() {
    setLayout(new BorderLayout());

    JPanel textWrapper = new JPanel(new BorderLayout());
    textWrapper.setBorder(new SoftBevelBorder(BevelBorder.LOWERED));
    textWrapper.setAlignmentX(LEFT_ALIGNMENT);
    progressTextArea = new MyTextArea();

    progressTextArea.getAccessibleContext().setAccessibleName(
            resourceManager.getString("ProgressBarDemo.accessible_text_area_name"));
    progressTextArea.getAccessibleContext().setAccessibleName(
            resourceManager.getString("ProgressBarDemo.accessible_text_area_description"));
    textWrapper.add(new JScrollPane(progressTextArea), BorderLayout.CENTER);

    add(textWrapper, BorderLayout.CENTER);

    JPanel progressPanel = new JPanel();
    add(progressPanel, BorderLayout.SOUTH);

    progressBar = new JProgressBar(JProgressBar.HORIZONTAL, 0, text.length()) {
        public Dimension getPreferredSize() {
            return new Dimension(300, super.getPreferredSize().height);
        }
    };
    progressBar.getAccessibleContext().setAccessibleName(
            resourceManager.getString("ProgressBarDemo.accessible_text_loading_progress"));

    progressPanel.add(progressBar);
    progressPanel.add(createLoadButton());
    progressPanel.add(createStopButton());
}
 
Example #8
Source File: LicenseWindow.java    From Hotel-Properties-Management-System with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Create the frame.
 */
public LicenseWindow(final String path) {
	
	setTitle("Coder HPMSA - [License]");
	setBounds(100, 100, 550, 550);
	setBackground(Color.decode("#066d95"));
	setLocationRelativeTo(null);
	setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
	
	this.setIconImage(Toolkit.getDefaultToolkit().
			getImage(getClass().getResource(LOGOPATH)));
	
	final JScrollPane scrollPane = new JScrollPane();
	scrollPane.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));
	getContentPane().add(scrollPane, BorderLayout.CENTER);
	
	editorPane = new JTextPane();
	editorPane.setBackground(new Color(255, 255, 240));
	editorPane.setFont(new Font("Verdana", Font.PLAIN, 13));
	editorPane.setBorder(new EtchedBorder(EtchedBorder.RAISED, null, null));
	editorPane.setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);
	editorPane.setEditable(false);
	scrollPane.setViewportView(editorPane);
	
	final StyledDocument doc = editorPane.getStyledDocument();
	final SimpleAttributeSet center = new SimpleAttributeSet();
	StyleConstants.setAlignment(center, StyleConstants.ALIGN_CENTER);
	doc.setParagraphAttributes(0, doc.getLength()-1, center, false);
	
	fillEditorPane(path);
	setVisible(true);
}
 
Example #9
Source File: UwExperimentTab.java    From FoxTelem with GNU General Public License v3.0 4 votes vote down vote up
public UwExperimentTab(FoxSpacecraft sat, int displayType)  {
	super();
	fox = sat;
	foxId = fox.foxId;
	NAME = fox.toString() + " CAN PACKETS";
	
	int j = 0;
	layout = new BitArrayLayout[ids.length];
	 for (int canid : ids)
		 layout[j++] = Config.satManager.getLayoutByCanId(6, canid);

	splitPaneHeight = Config.loadGraphIntValue(fox.getIdString(), GraphFrame.SAVED_PLOT, FoxFramePart.TYPE_REAL_TIME, UWTAB, "splitPaneHeight");
	
	lblName = new JLabel(NAME);
	lblName.setMaximumSize(new Dimension(1600, 20));
	lblName.setMinimumSize(new Dimension(1600, 20));
	lblName.setFont(new Font("SansSerif", Font.BOLD, 14));
	topPanel.add(lblName);
	
	lblFramesDecoded = new JLabel(DECODED + CAN_DECODED);
	lblFramesDecoded.setFont(new Font("SansSerif", Font.BOLD, 14));
	lblFramesDecoded.setBorder(new EmptyBorder(5, 2, 5, 5) );
	topPanel.add(lblFramesDecoded);

	healthPanel = new JPanel();
	
	healthPanel.setLayout(new BoxLayout(healthPanel, BoxLayout.Y_AXIS));
	healthPanel.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));
	healthPanel.setBackground(Color.DARK_GRAY);
	
	topHalfPackets = new JPanel(); 
	topHalfPackets.setBackground(Color.DARK_GRAY);
	bottomHalfPackets = new JPanel(); //new ImagePanel("C:/Users/chris.e.thompson/Desktop/workspace/SALVAGE/data/stars5.png");
	bottomHalfPackets.setBackground(Color.DARK_GRAY);
	healthPanel.add(topHalfPackets);
	healthPanel.add(bottomHalfPackets);

	initDisplayHalves(healthPanel);
	
	centerPanel = new JPanel();
	centerPanel.setLayout(new BoxLayout(centerPanel, BoxLayout.X_AXIS));

	addModules();
	
	splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT,
			healthPanel, centerPanel);
	splitPane.setOneTouchExpandable(true);
	splitPane.setContinuousLayout(true); // repaint as we resize, otherwise we can not see the moved line against the dark background
	if (splitPaneHeight != 0) 
		splitPane.setDividerLocation(splitPaneHeight);
	else
		splitPane.setDividerLocation(DEFAULT_DIVIDER_LOCATION);
	
	SplitPaneUI spui = splitPane.getUI();
    if (spui instanceof BasicSplitPaneUI) {
      // Setting a mouse listener directly on split pane does not work, because no events are being received.
      ((BasicSplitPaneUI) spui).getDivider().addMouseListener(new MouseAdapter() {
          public void mouseReleased(MouseEvent e) {
        	  splitPaneHeight = splitPane.getDividerLocation();
        	  Log.println("SplitPane: " + splitPaneHeight);
      		Config.saveGraphIntParam(fox.getIdString(), GraphFrame.SAVED_PLOT, FoxFramePart.TYPE_REAL_TIME, UWTAB, "splitPaneHeight", splitPaneHeight);
          }
      });
    }
	//Provide minimum sizes for the two components in the split pane
	Dimension minimumSize = new Dimension(100, 50);
	healthPanel.setMinimumSize(minimumSize);
	centerPanel.setMinimumSize(minimumSize);
	add(splitPane, BorderLayout.CENTER);
			
	showRawBytes = new JCheckBox("Show Raw Bytes", Config.displayRawRadData);
	bottomPanel.add(showRawBytes );
	showRawBytes.addItemListener(this);
	

	addBottomFilter();
	
	radTableModel = new CanPacketRawTableModel();
	radPacketTableModel = new CanPacketTableModel();
	addTables(radTableModel,radPacketTableModel);

	addPacketModules();
	topHalfPackets.setVisible(false);
	bottomHalfPackets.setVisible(false);
	
	// initial populate
	parseRadiationFrames();
}
 
Example #10
Source File: javax_swing_border_SoftBevelBorder.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
protected SoftBevelBorder getObject() {
    return new SoftBevelBorder(BevelBorder.RAISED, Color.RED, Color.GREEN, Color.BLUE, Color.WHITE);
}
 
Example #11
Source File: javax_swing_border_SoftBevelBorder.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
protected SoftBevelBorder getAnotherObject() {
    return null; // TODO: could not update property
    // return new SoftBevelBorder(BevelBorder.LOWERED);
}
 
Example #12
Source File: javax_swing_border_SoftBevelBorder.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
protected SoftBevelBorder getObject() {
    return new SoftBevelBorder(BevelBorder.RAISED, Color.RED, Color.GREEN, Color.BLUE, Color.WHITE);
}
 
Example #13
Source File: javax_swing_border_SoftBevelBorder.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
protected SoftBevelBorder getAnotherObject() {
    return null; // TODO: could not update property
    // return new SoftBevelBorder(BevelBorder.LOWERED);
}
 
Example #14
Source File: javax_swing_border_SoftBevelBorder.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
protected SoftBevelBorder getObject() {
    return new SoftBevelBorder(BevelBorder.RAISED, Color.RED, Color.GREEN, Color.BLUE, Color.WHITE);
}
 
Example #15
Source File: javax_swing_border_SoftBevelBorder.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
protected SoftBevelBorder getAnotherObject() {
    return null; // TODO: could not update property
    // return new SoftBevelBorder(BevelBorder.LOWERED);
}
 
Example #16
Source File: javax_swing_border_SoftBevelBorder.java    From jdk8u_jdk with GNU General Public License v2.0 4 votes vote down vote up
protected SoftBevelBorder getObject() {
    return new SoftBevelBorder(BevelBorder.RAISED, Color.RED, Color.GREEN, Color.BLUE, Color.WHITE);
}
 
Example #17
Source File: javax_swing_border_SoftBevelBorder.java    From jdk8u_jdk with GNU General Public License v2.0 4 votes vote down vote up
protected SoftBevelBorder getAnotherObject() {
    return null; // TODO: could not update property
    // return new SoftBevelBorder(BevelBorder.LOWERED);
}
 
Example #18
Source File: StartupHelper.java    From javamoney-examples with Apache License 2.0 4 votes vote down vote up
/**
 * This method runs the program's startup process.
 */
public
static
void
runStartup()
{
  JFrame splash = createSplash();
  Panel panel = (Panel)splash.getContentPane();
  JProgressBar progress = new JProgressBar(0, 4);
  long timeTaken = System.currentTimeMillis();

  // Build panel.
  panel.add(getProperty("StartupHelper.loading"), 0, 0, 1, 1, 0, 50);

  panel.setFill(GridBagConstraints.HORIZONTAL);
  panel.add(progress, 0, 1, 1, 1, 100, 50);

  panel.setBorder(new SoftBevelBorder(BevelBorder.RAISED));
  panel.setInsets(new Insets(5, 10, 5, 10));

  // Show frame.
  splash.setVisible(true);

  // Do all startup processes and update progress bar after each action.
  progress.setBorderPainted(true);
  progress.setStringPainted(true);

  ApplicationProperties.read();
  progress.setValue(1);

  if(passwordRequired() == true)
  {
    checkPassword(splash);
  }

  if(useDefaultDataFile() == true)
  {
    if(getFileMap().get(DATA).exists() == true)
    {
      DataManager.read();
    }
    else
    {
      createStarterKit();
    }
  }
  else
  {
    DataManager.read(getDataFile(), true, passwordRequired());
  }

  progress.setValue(2);

  doPreStartupProcesses();
  progress.setValue(3);

  // Finish off the progress bar and dispose the splash.
  progress.setValue(4);

  timeTaken = System.currentTimeMillis() - timeTaken;

  try
  {
    // Sleep to see the splash if the time taken is less than 2.5 seconds.
    long sleep = 2500 - timeTaken;

    if(sleep > 0)
    {
      Thread.sleep(sleep);
    }
  }
  catch(InterruptedException interruptedException)
  {
    // Ignored.
  }

  splash.dispose();
}
 
Example #19
Source File: AboutDialog.java    From opencards with BSD 2-Clause "Simplified" License 4 votes vote down vote up
private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    ResourceBundle bundle = ResourceBundle.getBundle("info.opencards.translation");
    JPanel panel3 = new JPanel();
    donateButton = new JButton();
    closeButton = new JButton();
    JPanel contentPanel = new JPanel();
    infoText = new JLabel();
    ocLabelIcon = new JLabel();

    //======== this ========
    setResizable(false);
    setTitle(bundle.getString("AboutDialog.this.title"));
    setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
    setModal(true);
    Container contentPane = getContentPane();
    contentPane.setLayout(new BorderLayout());

    //======== panel3 ========
    {
        panel3.setBorder(new EmptyBorder(5, 5, 5, 5));
        panel3.setLayout(new GridBagLayout());
        ((GridBagLayout) panel3.getLayout()).columnWidths = new int[]{0, 0, 95, 0};
        ((GridBagLayout) panel3.getLayout()).rowHeights = new int[]{0, 0};
        ((GridBagLayout) panel3.getLayout()).columnWeights = new double[]{0.0, 1.0, 0.0, 1.0E-4};
        ((GridBagLayout) panel3.getLayout()).rowWeights = new double[]{1.0, 1.0E-4};
        panel3.add(donateButton, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0,
                GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                new Insets(0, 0, 0, 0), 0, 0));

        //---- closeButton ----
        closeButton.setText(bundle.getString("General.close"));
        closeButton.setFont(null);
        closeButton.addActionListener(e -> closeButtonActionPerformed(e));
        panel3.add(closeButton, new GridBagConstraints(2, 0, 1, 1, 0.0, 0.0,
                GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                new Insets(0, 0, 0, 0), 0, 0));
    }
    contentPane.add(panel3, BorderLayout.SOUTH);

    //======== contentPanel ========
    {
        contentPanel.setBorder(new SoftBevelBorder(SoftBevelBorder.LOWERED));
        contentPanel.setLayout(new BorderLayout());

        //---- infoText ----
        infoText.setBorder(new EmptyBorder(20, 25, 25, 20));
        contentPanel.add(infoText, BorderLayout.CENTER);

        //---- ocLabelIcon ----
        ocLabelIcon.setBorder(new EtchedBorder());
        contentPanel.add(ocLabelIcon, BorderLayout.NORTH);
    }
    contentPane.add(contentPanel, BorderLayout.CENTER);
    setSize(485, 420);
    setLocationRelativeTo(null);
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}
 
Example #20
Source File: javax_swing_border_SoftBevelBorder.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
protected SoftBevelBorder getObject() {
    return new SoftBevelBorder(BevelBorder.RAISED, Color.RED, Color.GREEN, Color.BLUE, Color.WHITE);
}
 
Example #21
Source File: javax_swing_border_SoftBevelBorder.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
protected SoftBevelBorder getAnotherObject() {
    return null; // TODO: could not update property
    // return new SoftBevelBorder(BevelBorder.LOWERED);
}
 
Example #22
Source File: javax_swing_border_SoftBevelBorder.java    From jdk8u-dev-jdk with GNU General Public License v2.0 4 votes vote down vote up
protected SoftBevelBorder getObject() {
    return new SoftBevelBorder(BevelBorder.RAISED, Color.RED, Color.GREEN, Color.BLUE, Color.WHITE);
}
 
Example #23
Source File: javax_swing_border_SoftBevelBorder.java    From jdk8u-dev-jdk with GNU General Public License v2.0 4 votes vote down vote up
protected SoftBevelBorder getAnotherObject() {
    return null; // TODO: could not update property
    // return new SoftBevelBorder(BevelBorder.LOWERED);
}
 
Example #24
Source File: javax_swing_border_SoftBevelBorder.java    From dragonwell8_jdk with GNU General Public License v2.0 4 votes vote down vote up
protected SoftBevelBorder getObject() {
    return new SoftBevelBorder(BevelBorder.RAISED, Color.RED, Color.GREEN, Color.BLUE, Color.WHITE);
}
 
Example #25
Source File: DialogFrame.java    From Hotel-Properties-Management-System with GNU General Public License v2.0 4 votes vote down vote up
public DialogFrame() {
	
	setType(Type.POPUP);
	setResizable(false);
	
	setModalExclusionType(ModalExclusionType.APPLICATION_EXCLUDE);
	this.setTitle("Approving question");
	this.setPreferredSize(new Dimension(400, 190));
	this.setAlwaysOnTop(isAlwaysOnTopSupported());
	this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	getContentPane().setLayout(new BorderLayout());
	
	final Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
	
	this.setLocation(screenSize.width / 2 - 150, screenSize.height / 2 - 75);
	
	this.setIconImage(Toolkit.getDefaultToolkit().
			getImage(getClass().getResource(LOGOPATH)));
	
	final JPanel panel = new JPanel();
	panel.setAutoscrolls(true);
	getContentPane().add(panel, BorderLayout.CENTER);
	panel.setLayout(null);
	
	btnYes = new JButton("YES");
	btnYes.setBorder(new SoftBevelBorder(BevelBorder.RAISED, null, null, null, null));
	btnYes.setBounds(291, 129, 91, 29);
	panel.add(btnYes);
	
	btnNo = new JButton("NO");
	btnNo.setBorder(new SoftBevelBorder(BevelBorder.RAISED, null, null, null, null));
	btnNo.setBounds(199, 129, 91, 29);
	panel.add(btnNo);
	
	lblIcon = new JLabel("");
	lblIcon.setIcon(new ImageIcon(DialogFrame.class.getResource("/com/coder/hms/icons/dialogPane_question.png")));
	lblIcon.setBounds(14, 40, 69, 70);
	panel.add(lblIcon);
	
	
	textArea = new JTextArea();
	textArea.setDisabledTextColor(new Color(153, 204, 255));
	textArea.setBounds(95, 32, 287, 85);
	textArea.setBackground(UIManager.getColor("ComboBox.background"));
	textArea.setBorder(null);
	textArea.setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);
	textArea.setEditable(false);
	textArea.setFont(new Font("Monospaced", Font.PLAIN, 14));
	textArea.setLineWrap(true);
	panel.add(textArea);
	
	this.pack();
}
 
Example #26
Source File: javax_swing_border_SoftBevelBorder.java    From dragonwell8_jdk with GNU General Public License v2.0 4 votes vote down vote up
protected SoftBevelBorder getAnotherObject() {
    return null; // TODO: could not update property
    // return new SoftBevelBorder(BevelBorder.LOWERED);
}
 
Example #27
Source File: javax_swing_border_SoftBevelBorder.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
protected SoftBevelBorder getObject() {
    return new SoftBevelBorder(BevelBorder.RAISED, Color.RED, Color.GREEN, Color.BLUE, Color.WHITE);
}
 
Example #28
Source File: javax_swing_border_SoftBevelBorder.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
protected SoftBevelBorder getAnotherObject() {
    return null; // TODO: could not update property
    // return new SoftBevelBorder(BevelBorder.LOWERED);
}
 
Example #29
Source File: javax_swing_border_SoftBevelBorder.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
protected SoftBevelBorder getObject() {
    return new SoftBevelBorder(BevelBorder.RAISED, Color.RED, Color.GREEN, Color.BLUE, Color.WHITE);
}
 
Example #30
Source File: javax_swing_border_SoftBevelBorder.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
protected SoftBevelBorder getAnotherObject() {
    return null; // TODO: could not update property
    // return new SoftBevelBorder(BevelBorder.LOWERED);
}